Red ochre Posted July 9, 2015 Share Posted July 9, 2015 I have created a double slider"props.Add(new DoubleProperty(PropertyNames.ExpCont, 0, -1, 1));" in OncreatePropertyCollection()I am now trying to adjust the SliderLargeChange and SliderSmallChange in OnCreateConfigUI." configUI.SetPropertyControlValue(PropertyNames.ExpCont, ControlInfoPropertyNames.SliderLargeChange, 0.1); configUI.SetPropertyControlValue(PropertyNames.ExpCont, ControlInfoPropertyNames.SliderSmallChange, 0.1);"The UpDownIncrement works as expected - but I'm happy with the default of 0.01.Changing the values for SliderLarge/SmallChange doesn't appear to make any difference to the way the slider behaves?Hopefully I would like the double slider to behave almost like an int slider but at increments of 0.1 (from -1 to 1) with the user being able to select finer adjustment (0.01) via the up/down arrows. Is this possible?Setting both SliderLargeChange and SliderSmallChange to 0.1 does not work.Neither does setting them to 10.0 (thinking it may be a percentage). Have I completely misunderstood what these values are for? (very likely!).Any ideas?(I'm improving my GradientsGalore plugin and using VSExpress2010 and targeting 3.5.NET) Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
BoltBait Posted July 9, 2015 Share Posted July 9, 2015 Those increments are only used when the control has focus and you're using the arrows to move the slider. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Red ochre Posted July 9, 2015 Author Share Posted July 9, 2015 Sorry, I'm still not 'getting it'. As far as I can see the 'UpDownIncrement' completely controls what the arrows do.What parameters do 'SliderLargeChange' & 'SliderSmallChange' affect then?Just curious... I'll try to find another way.It doesn't materially affect the effect but may make it easier for the user. Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
BoltBait Posted July 9, 2015 Share Posted July 9, 2015 Small change is clicking the ^ v arrows by the number. Large change is using the keyboard arrows <- and -> to control slider. 2 Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Red ochre Posted July 9, 2015 Author Share Posted July 9, 2015 Thanks that explains it (partially).UpDownIncrement changes the ^v increment ... so small change does?... I thought maybe the mouse wheel, but thought that was set in control panel?Anyway - Many thanks for the info, they are not what I thought they were, so will not worry! IOU+1 done Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
midora Posted July 9, 2015 Share Posted July 9, 2015 Maybe a small hint. SmallChange and LargeChange map to the TrackBar control part of the IndirectUI slider control (and not to the NumericUpDown control part). So you could read the documentation of the c# TrackBar control. SmallChange will be used by the arrow keys. LargeChange by PageUp and PageDown plus by clicking to the left or right of the trackbar nub. UpDownIncrement is used for the NumericUpDown control part only. 2 Quote Link to comment Share on other sites More sharing options...
BoltBait Posted July 9, 2015 Share Posted July 9, 2015 midora is correct. I was quoting from memory and mine is somewhat faulty. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Red ochre Posted July 9, 2015 Author Share Posted July 9, 2015 Thanks both! (still out of 'reps') Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
midora Posted July 9, 2015 Share Posted July 9, 2015 I guess I did just more in this area while implementing the related controls in the OptionBasedLibrary. Quote Link to comment Share on other sites More sharing options...
Red ochre Posted July 9, 2015 Author Share Posted July 9, 2015 I get it now - for some reasom I didn't think of looking it up on Msdn.Anyway I've now found a way of keeping the standard double slider and just manipulating the decimal part, which works!But thanks again for the useful replies. Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.