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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Enable / disable input focus from the mouse in a Spin box

Status
Not open for further replies.

Dalarna

Programmer
Mar 8, 2010
22
SE
Hi !
Is there any way to deactivate input from the mouse in a Read only Spin box?
And activate input when the Spin box is writable.
/Magne
 
Hi Magne,

Setting the spin control range does not seem to work for me as
?SpinControl{Prop:RangeLow} = CurrentSpinValue
?SpinControl{Prop:RangeHigh} = CurrentSpinValue

I would make it simpler by disabling the control ?SpinControl{Prop:Disable} = TRUE

May be someone else would have a better approach

HTH

Tuz
 
Hi!

Using PROP:Disable is the better approach. Another way is use hide/unhide a REGION control over the spin box to allow/disallow entry. The advantage of the REGION approach is that the control's appearance does not change i.e. greyed out when disabled.

Regards
 
Hi!
Thanks for your replies!!
I used the hide / unhide region which was a good option because the Spin box was not greyed out.
From Sweden
/Magne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top