P
Passiday
Hello,
I'd like to mimic the way how default windows application button
behaves. Simple click is, of course, trivial. I am looking for this
specific behaviour:
1) If user presses the mouse button on the screen button, it sinks,
but does not engage;
2) Still holding the mouse button, if user moves mouse off the button,
it pops back without engaging. If user moves the still-pressed mouse
around the screen, no events will fire (ie, toolbar buttons do not
react the same way when they are simply mouseovered).
3) Now, if user (still holding the mouse button) moves the mouse back
over the button, it sinks again. So, it remembers the fact it was
clicked. Actually, this single button is the only screen element that
reacts to mouse movements. There are two areas on the screen -- the
button and the rest of the screen, and the button state (sunk/normal)
changes depending on where the mouse cusros currently is located.
4) If the user would release mouse button while in step 2 (in this
numbered list), the button would not fire. However, if user releases
mouse button while in step 3, the button engages.
Now, I understand that one web page srcipt can not lock down the
controls out of this browser window. But, I am looking for help how to
mimic this behaviour at least in the boundaries of active window.
Thanks,
Passiday
I'd like to mimic the way how default windows application button
behaves. Simple click is, of course, trivial. I am looking for this
specific behaviour:
1) If user presses the mouse button on the screen button, it sinks,
but does not engage;
2) Still holding the mouse button, if user moves mouse off the button,
it pops back without engaging. If user moves the still-pressed mouse
around the screen, no events will fire (ie, toolbar buttons do not
react the same way when they are simply mouseovered).
3) Now, if user (still holding the mouse button) moves the mouse back
over the button, it sinks again. So, it remembers the fact it was
clicked. Actually, this single button is the only screen element that
reacts to mouse movements. There are two areas on the screen -- the
button and the rest of the screen, and the button state (sunk/normal)
changes depending on where the mouse cusros currently is located.
4) If the user would release mouse button while in step 2 (in this
numbered list), the button would not fire. However, if user releases
mouse button while in step 3, the button engages.
Now, I understand that one web page srcipt can not lock down the
controls out of this browser window. But, I am looking for help how to
mimic this behaviour at least in the boundaries of active window.
Thanks,
Passiday