Hi all.
experimenting with app for mobile.
I have a series of text boxes for user input.
I wish to display in them the type of thing I want the user to put in them.
IE name, age, etc etc.
Is there an easy way to do this, or do I have to pre-fill the boxes with hint text (greyed out for example) in script,
Have been doing this in app inventor sucessfully, but unsure with Livecode.
Thanks
Brian
Having hint text in textbox
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 78
- Joined: Wed Apr 10, 2013 9:08 pm
Having hint text in textbox
Returning to try to learn livecode again.
But much greyer at the temples than the last time.
But much greyer at the temples than the last time.
Re: Having hint text in textbox
Hi.
Users are accustomed to grayed text as a hint. Pre-filling is easy. You would change the "foreGroundColor" of the field text from gray to black whenever anyone types into the field, and of course lose the hint text.
Are you OK with implementing this in LC?
Craig Newman
Users are accustomed to grayed text as a hint. Pre-filling is easy. You would change the "foreGroundColor" of the field text from gray to black whenever anyone types into the field, and of course lose the hint text.
Are you OK with implementing this in LC?
Craig Newman
-
- Posts: 78
- Joined: Wed Apr 10, 2013 9:08 pm
Re: Having hint text in textbox
Hi Craig, and thanks for the confirmation of what I thought.
Yes I can soon learn how to implement this. Just working on paper plans at moment so will take a week or so before I start playing with code.
Then comes the hard part... lol
Brian
Yes I can soon learn how to implement this. Just working on paper plans at moment so will take a week or so before I start playing with code.
Then comes the hard part... lol
Brian
Returning to try to learn livecode again.
But much greyer at the temples than the last time.
But much greyer at the temples than the last time.
Re: Having hint text in textbox
FieldFormatter can do this for you automatically...
See http://livecode.com/store/marketplace/fieldformatter
Hugh Senior
Code: Select all
set the DefaultText of fld 1 to "Search..."
Hugh Senior
The Flexible Learning Company
• ChartMaker: www.FlexibleLearning.com/chartmaker
• ControlManager: www.FlexibleLearning.com/controlmanager
• The Scripter's Scrapbook: www.FlexibleLearning.com/ssbk
• DatePicker: www.FlexibleLearning.com/datepicker
• ChartMaker: www.FlexibleLearning.com/chartmaker
• ControlManager: www.FlexibleLearning.com/controlmanager
• The Scripter's Scrapbook: www.FlexibleLearning.com/ssbk
• DatePicker: www.FlexibleLearning.com/datepicker