Page 1 of 1

How can i highlight the default text

Posted: Sat Jan 17, 2015 9:26 pm
by Ultravibe
Hi all!
I've got a stack:
Text labels and some text fields with sportsman's data (Number, Name, Surname etc).
When clicking on one of it runs the modal stack with text entry field. Initially, text field has "previous" value of field that we clicked in main window.
I need to highlight this "previous" text. But how?
Advise me some handlers or smthg else...

Re: How can i highlight the default text

Posted: Sat Jan 17, 2015 11:53 pm
by sritcp
The "ask" command opens a modal window with the default text highlighted, e.g.,

Code: Select all

ask "What is your surname?" with the text of field "Surname"
Is this what you wanted?

Regards,
Sri.

Re: How can i highlight the default text

Posted: Sun Jan 18, 2015 12:45 am
by Klaus
Hi Ultravibe,

not sure I understand, but I would add this to the "opencard" script of your modal stack:

Code: Select all

on opencard
  select text of fld "the one with the PREVIOUS text in it"
  ...
end opencard
Know what I mean?


Best

Klaus

Re: How can i highlight the default text

Posted: Sun Jan 18, 2015 1:08 am
by Ultravibe
Sri, thank U, but the way that advise Klaus is better, because no need to change structure of program code etc :)

Klaus, thank U so much!

Re: How can i highlight the default text

Posted: Sun Jan 18, 2015 4:00 pm
by sritcp
Hi Ultravibe:

Klaus is not just better, he is the best!

Sri.