Can I put advisory text in an 'ask' dialog?

Mark Schonewille m.schonewille at economy-x-talk.com
Tue Apr 10 13:19:13 EDT 2012


Hi Graham,

You can't do exactly what you want with the ask dialog, but the default text is select disappears as soon as the user starts typing. In msot cases, that should do the job.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Get the extIco2Png external for LiveCode here http://qery.us/1w6

On 10 apr 2012, at 19:02, Graham Samuel wrote:

> Sometimes one sees apps (on different platforms) where the user is invited to type something into a field, and the field is pre-filled with a text which disappears the moment the user starts typing - the initial text says stuff like 'type your name here'. This type of text is not preselected (apparently) - so it must be a special type of text, but I don't know how to make it appear. Specifically, in LC's iOS implementation, the 'ask' dialog scripting looks like this:
> 
> ask [ question | password ] prompt [ with initialAnswer ] [ titled title ]    
> 
> so the question resolves to: how do I make the initialAnswer text a 'ghost' text such as I have described, or is it impossible?
> 
> Graham





More information about the use-livecode mailing list