Print Page | Close Window

Minus value for sliders

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=15222
Printed Date: 28 March 2024 at 4:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Minus value for sliders
Posted By: Pariksh*t
Subject: Minus value for sliders
Date 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.



Replies:
Posted By: Oleg
Date 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


Posted By: Pariksh*t
Date 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?


Posted By: Oleg
Date Posted: 23 September 2009 at 8:51am

Hi,

 
Still works for our sample . Did you try it ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Pariksh*t
Date 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?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net