Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I read the Spinner Value ??

Status
Not open for further replies.

TerryUrb

Programmer
Oct 3, 2005
40
CA
I need to read the true value residing in the Spinner. The number in the Spinner is correct, however there is some conflict of selected values when reading UpClick, DownClick and KeyPress. For eg. If the UpClick is selected to a value, say 5, and then the DownClick is selected to 4, and then if the entry of 6 is input on the keyboard, 6 is in the Spinner, but values 4 is in UpClick, 5 is in DownClick and 5 is also in KeyPress, not 6. If I hit 6 a second time, 6 will be in KeyPress.
Any Ideas on how to resolve this? Thanks
 
I think I have answered this myself playing around with the proceedures. If I selected "InteractiveChange", the value obtained from this proceedure was the same value that was showing up visually on the Spinner.
 
If I selected "InteractiveChange"

That's the usual technique. If you intercept the mouse clicks then you're reading values before Fox has finished deciding what you want to to do with the control.

MouseDown will be particularly weird on a Spinner because it has a delayed action - it alters the value, waits a little while and then spins the value continually.

Geoff Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top