Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Minus value for sliders
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Minus value for sliders

 Post Reply Post Reply
Author
Message
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post Topic: Minus value for sliders
    Posted: 22 September 2009 at 4:40am
Hi,
We are using sliders ie CXTPControlScrollBar in Ribbonbar.
We have set ranfe from -90 to +90 for rotation slider.
If i use the slider to set value as -45 it works fine but when
we press - button on slider, it sets the value to zero.
Why is it so? What is solution?

Thanks and Regards,
Pariksh*t.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2009 at 3:38am
Hi,
 
Just tried in our RibbonControls sample
 
  pControl->SetRange(-90, 90);
  pControl->SetPos(-45);
and it works for me.  Maybe you have handler for ScrollBar and manually set it to zero. or maybe its something that was fixed already if you have 12.x version.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2009 at 4:01am
when i do setpos(-45)it works fine but whrn i press - button on slider it sets value to 0 and not to -46...
how to solve this?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2009 at 8:51am

Hi,

 
Still works for our sample . Did you try it ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Pariksh*t View Drop Down
Groupie
Groupie
Avatar

Joined: 26 June 2008
Location: India
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote Pariksh*t Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2009 at 11:06pm
i guess there is no sample application which has -ve to +ve range for sliders
if there is a sample app please tell me which app handles this requirement?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.