hot to set the step value in spin
-
-
I had set the min value and max value to spin by m_spin.SetRange(250,500); But then, how to set the step value to spin. It should increment like 250, 300, 350, 400, 450, 500 Can anyone help me out, please. It is so urgent. I thank in advance. Mughilan
Could not find anything that will do that what you are asking for by default. You have i guess customise it.
MSN Messenger. prakashnadar@msn.com
-
I had set the min value and max value to spin by m_spin.SetRange(250,500); But then, how to set the step value to spin. It should increment like 250, 300, 350, 400, 450, 500 Can anyone help me out, please. It is so urgent. I thank in advance. Mughilan
Will
SetStep(50)
not do what you require?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Will
SetStep(50)
not do what you require?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
CSpinButtonCtrl doesn't have a SetStep() method that I can find. I'd try providing a handler for the NM_RELEASEDCAPTURE message that calls GetPos(), adds or subtracts 50, then calls SetPos(). Of course, someone more knowledgable might have a better solution.:-O Will Build Nuclear Missile For Food - No Target Too Small
-
CSpinButtonCtrl doesn't have a SetStep() method that I can find. I'd try providing a handler for the NM_RELEASEDCAPTURE message that calls GetPos(), adds or subtracts 50, then calls SetPos(). Of course, someone more knowledgable might have a better solution.:-O Will Build Nuclear Missile For Food - No Target Too Small
Indeed. I missed the reference to
CSpinButtonCtrl
. He'll need to useSetAccel()
instead.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Indeed. I missed the reference to
CSpinButtonCtrl
. He'll need to useSetAccel()
instead.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
DavidCrow wrote: use SetAccel() I wondered about that... I haven't used it, but is it possible to set the first element of the UDACCEL structure to [0,50]? If it doesn't choke on the 0 value for elapsed time I would expect it to do the job adequately, but the documentation doesn't elaborate on it much. Will Build Nuclear Missile For Food - No Target Too Small