Max CSliderCtrl value on TOP or BOTTOM!
Marc -- msd@cadcentre.co.uk Tuesday, August 27, 1996 Environment: VC++ 4.0, Windows NT 3.51, SP 4 Hi, I've looked at the MSDN and drawn a blank on this one... When I create a CSliderCtrl at runtime the SetRange/SetRangeMax/SetRangeMin functions all conspire to put the maximum value on the bottom of vertical sliders (and on the right of horizontal sliders). How can I have my max value on the top of my vertical slider? Many thanks, Marc. -- ----------------------------------------------------------------- CADCENTRE Ltd. Telephone +44(0)1223 556655 Ext.732 High Cross Fax +44(0)1223 556666 Madingley Road Email m.delamere@cadcentre.co.uk Cambridge CB3 0HB UK Home Page http://www.cadcentre.co.uk -----------------------------------------------------------------
Brian Jones -- BrianJ@apptechsys.com Friday, August 30, 1996 Marc, I had the same problem. The solution is to make a call to SetRange. Just make sure that your lower number is first in the call; ie - SetRange(1,100); >---------- >From: Marc[SMTP:msd@cadcentre.co.uk] >Sent: Tuesday, August 27, 1996 4:01 AM >To: mfc-l@netcom.com >Subject: Max CSliderCtrl value on TOP or BOTTOM! > > >Environment: VC++ 4.0, Windows NT 3.51, SP 4 > >Hi, > >I've looked at the MSDN and drawn a blank on this one... > >When I create a CSliderCtrl at runtime the >SetRange/SetRangeMax/SetRangeMin >functions all conspire to put the maximum value on the bottom of >vertical >sliders (and on the right of horizontal sliders). > >How can I have my max value on the top of my vertical slider? > >Many thanks, >Marc. > >-- > ----------------------------------------------------------------- > CADCENTRE Ltd. Telephone +44(0)1223 556655 Ext.732 > High Cross Fax +44(0)1223 556666 > Madingley Road Email m.delamere@cadcentre.co.uk > Cambridge > CB3 0HB UK Home Page http://www.cadcentre.co.uk > ----------------------------------------------------------------- >
Roger Onslow -- Roger_Onslow@compsys.com.au Monday, September 02, 1996 >When I create a CSliderCtrl at runtime the >SetRange/SetRangeMax/SetRangeMin >functions all conspire to put the maximum >value on the bottom of vertical >sliders (and on the right of horizontal sliders). > >How can I have my max value on the top of >my vertical slider? I know for spin controls you simply set values backwards to change the direction. ie: SetRangeMax to your *minimum* value and SetRangeMin to your *maximum* value. Perhaps sliders have a bit more to do? -- the online help does not help much here. Roger
Jim Tannenbaum -- jimt1@voicenet.com Monday, September 02, 1996 Marc, I am sure you can over ride the default slider control, but why should you want to? The only one who knows where the max and min of a control are is you. It is transparent to the user. If it really bothers you, use a little algebra to calculate the correct offsets for the inverse action. Jet JJM Systems, Inc Phone: (215) 672-3660 1 Ivybrook Blvd, Suite 190 Fax: (215) 672-5702 Ivyland, PA 19874 Net: jimt1@voicenet.com
| Вернуться в корень Архива |