Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Javascript
Mimic windows button behaviour
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Passiday, post: 4982516"] 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 [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Javascript
Mimic windows button behaviour
Top