Mouse box - action for button up?For Mouse box , the approach via
<
<
"fires" too often.
Adding a dead time feels extremely laggy.
Does the Mouse ox also "fire" when the button is released? Is there a special setting?
On the other hand: is there some function like IS CTRL() which returns the current status of the mouse buttons?
Automation and ScriptingRe: Mouse box - action for button up?w = New Window( "Mouse Messages", // modified from scripting index setClick
Border Box( Left( 20 ), Right( 20 ), top( 20 ), bottom( 20 ),
MouseBox( /* <<<<<<<< handler for mouse events */
window:tb = Text Box( "click me!", <<SETFONTSIZE></SETFONTSIZE>
You might want to ignore Moved as well as Ticked.
MouseBox<Three JSL Easter Eggs
Re: Mouse box - action for button up?Thanks. wonderful
very well documented in the scripting index - how could I miss it ...
Re: Mouse box - action for button up?And is there an action associated with hovering over the mouseBox - like with Hoverlabels?
I tried to add a JSL command to the Tooltip - but unfortunately the argument of << setTooltip is pre-evaluated.
Edited:
Putting the command inside Expr() stops JMP from evaluating the command while creating the window.
Unfortunately, it also doesn't get evaluated later.
new window("",Mouse Box (Text Box("Caption when mouseover?"),<<SETTOOLTIP></SETTOOLTIP>
My next try: use << setKeyEnabled(1) and use a key on the keyboard to trigger the action.
But the Mouse Box needs a < - so doesn't seem to be the right choice for a MouseOver.
Re: Mouse box - action for button up?Just the cursor change, I think. Great idea though.