Wilful misuse of Revolution commands
Francis Nugent Dixon
effendi at wanadoo.fr
Fri Apr 21 05:30:14 EDT 2006
Hi from Paris,
I do a lot of data entry in my multiple card stacks.
In order to speed up execution, if I didn't like the
entered data, I always coded :
-- Error routine
--
push card
go to card 1
show field "ErrorMessage1"
wait 2 secs
hide field "ErrorMessage1"
pop card
-- etc.
This always pained me, 'cos it's not "elegant"
I didn't have the ErrorMessages in the data cards
for the obvious reason that they would waste space.
When I found (thanks Sarah and William) the pop-up
menu command, I thought I would use it for another
purpose (whereby wilful misuse):
on mouseUp
put field "ErrorMessage1" into button "MyErrorMenu"
popup button "MyErrorMenu" at the loc of field "xxx"
wait 2 secs
click at loc of field "xxx" -- to make the menu go away !
end mouseUp
OK ! I hadn't read the small print of the "popUp" command
which clearly states "While the popup menu is displayed,
the handler pauses." So THAT doesn't work !
Back to the drawing board (Sigh !)
Has anybody got any ideas about displaying an error
message in a card for a few seconds (without having
to click - I'm an anti-click fiend !), where the message
doesn't take up space in the card ?
-Francis
"Nothing should ever be done for the first time !"
More information about the use-livecode
mailing list