Flushing the "flushEvents" command...
mlindley at telusplanet.net
Tue Feb 24 11:12:20 CST 2004
Ok, heres my problem: in my app I have groups that pop-up (not
groups that include graphics, buttons, fields, etc
) but they are
much smaller than the full window. I dont want the user to be able
click outside the area of the popped-up group until that groups actions
are completed. Ive been trying several things, all of which dont seem
to be working.
It would seem to me that using flushEvents should solve this problem,
but my app just seems to ignore this command and allow the user to click
where ever he/she wants.
Here is an example of my problem (I place this script in the popped-up
If the clickLoc is not within the rect of me then
The problem seems to persist even if I replace clickLoc with
mouseLoc. What am I doing wrong with this? Am I using this command
properly? Is there an easier way to solve this problem?
Ive been trying to use the exit mouseDown command [or mouseUp
whatever] to interrupt the users click, but it seems to be ignored too.
Im not sure what Im doing wrong with this
Heres my temporary workaround
I use a cumbersome if
then statement in
the Card script to identify if the groups visible is true or not. If
it is then I just hide the popped up group if the user clicks outside of
it. Obviously, thats not the smartest way to go. Help!
More information about the use-livecode