Placeholder Text

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Placeholder Text

Post by djrikki »

Hello,

Does MUI/Royale support placeholder text for string fields?
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

Re: Placeholder Text

Post by Mazze »

Do you mean that the String object already has some content when it's shown? See "String.Contents" in MUIRoyale documentation.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Placeholder Text

Post by djrikki »

Like this:

http://davidwalsh.name/demo/html5-placeholder.php

When the text 'contents' are empty it shows 'Your first name...'
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

Re: Placeholder Text

Post by Mazze »

Hmm. Showing some text isn't a problem, but that text should disappear when someone enters text. I guess that requires a custom MUI class with own event handler. The MUI way of showing some hints to the user is to add "bubble help" with Area.ShortHelp
Post Reply