Achievable by rolling your own dialog and trapping keystrokes. If the field
is empty, then set the text of the field to the advisory text. If the field
is the advisory text and the selectedText is not empty, then set the text of
the field to empty.

Hugh Senior
FLCo

----------------------------------------------------------------------

Message: 1
Date: Tue, 10 Apr 2012 19:02:09 +0200
From: Graham Samuel <livf...@mac.com>
To: use-livecode@lists.runrev.com
Subject: Can I put advisory text in an 'ask' dialog?
Message-ID: <cddabb42-d169-489d-87bc-161563cf9...@mac.com>
Content-Type: text/plain; CHARSET=US-ASCII

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


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to