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 » Mon Jan 07, 2013 6:59 pm

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: 61
Joined: Thu May 06, 2010 8:08 pm

Re: Placeholder Text

Post by Mazze » Mon Jan 07, 2013 10:35 pm

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 » Tue Jan 08, 2013 12:03 am

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: 61
Joined: Thu May 06, 2010 8:08 pm

Re: Placeholder Text

Post by Mazze » Tue Jan 08, 2013 9:27 pm

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