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

FlexibleLearning admin at FlexibleLearning.com
Wed Apr 11 01:33:28 EDT 2012


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 <livfoss at mac.com>
To: use-livecode at lists.runrev.com
Subject: Can I put advisory text in an 'ask' dialog?
Message-ID: <CDDABB42-D169-489D-87BC-161563CF9630 at 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





More information about the use-livecode mailing list