Saturday, July 6, 2013

Adding a Textbox (or other HTML controls) to a HTML5 Canvas element

http://stackoverflow.com/questions/5073351/adding-textbox-and-other-controls-to-an-html5-game

This could be used to - allow the user to input text inside a Canvas element. (But the Input control itself will probably not become part of the Canvas.. Have to check this...One workaround could be - before posting the Canvas, we could capture the text that user has inputted, draw a box in the Canvas at the exact same location, add the text to it..And ask the user if it looks ok.. (we could limit the number of characters that the user enters)

No comments:

Post a Comment

Followers

Blog Archive