Re: Inhibit mouse Events possible?

2014-07-25 Thread hh
LC 6.7.0 introduces "set the ignoreMouseEvents of this stack to true". Doesn't inhibit mouseEvents at all but bypasses your stack window. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and mana

Re: Inhibit mouse Events possible?

2014-07-04 Thread William Prothero
Mark: What about a transparent graphic with: on mouseDown checkoption end mouseDown on mouseUp checkoption end mouseUp —Other mouse events could be added on checkoption if the option key is down then hide me end if end check option Best, Bill On

Re: Inhibit mouse Events possible?

2014-07-03 Thread Jerry Jensen
On Jul 3, 2014, at 10:45 AM, Mark Schonewille wrote: > > repeat forever with messages ??? repeat with messages ??? I think we've been through this before. The compiler doesn't mind, but the "with messages" part is not legal syntax and does nothing.

Re: Inhibit mouse Events possible?

2014-07-03 Thread Scott Rossi
Another option is to use a frontscript to intercept mouseup (or down) messages before they arrive at the controls on the card. A frontscript is foolproof and will handle all controls, but you need to plan this carefully because, as Mark mentioned, you don't want to leave the stack unable to fun

Re: Inhibit mouse Events possible?

2014-07-03 Thread Mark Schonewille
Hi Bill, If you like your own approach, just do what you think is best. I discourage such brute force approaches however, because if something goes wrong, the only way for the user to get out of the trap is to restart the software. My example can be adjusted fairly easily to provide a way out

Re: Inhibit mouse Events possible?

2014-07-03 Thread William Prothero
Folks: Actually, I like the method of putting a transparent rectangle over the stack window and trapping all mouse events. That makes the number of places where I have to modify my code much smaller. I have multiple buttons on the screen and they each call a number of handlers. I just thought t

Re: Inhibit mouse Events possible?

2014-07-03 Thread Peter Haworth
I guess you could lock messages but that would lock all messages not just mouse events. Pete lcSQL Software Home of lcStackBrowser and SQLiteAdmin On Thu, Jul 3, 2014 at 10:32 AM, William Pr

Re: Inhibit mouse Events possible?

2014-07-03 Thread Mark Schonewille
Hi Bill, One way to do this: local lBusy,lSecs on mouseUp if lBusy is true then beep exit mouseUp else if lBusy is not true then put true into lBusy put the seconds into lSecs repeat forever with messages // some long task here if the seconds

Re: Inhibit mouse Events possible?

2014-07-03 Thread Randy Hengst
Hi Bill, Check out: "Use the flushEvents function to prevent unwanted messages from being sent during a handler's execution." be well, randy - On Jul 3, 2014, at 12:32 PM, William Prothero wrote: > Folks: > > Is it possible to inhibit mouse events? Some of the operations that are > initi

Inhibit mouse Events possible?

2014-07-03 Thread William Prothero
Folks: Is it possible to inhibit mouse events? Some of the operations that are initiated by a mouse click require a bit of time and I don’t want the user to be able to click around until each operation is finished. One approach would be to put a transparent rectangle over the stack and not pass