Slider min/max

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 30/08/2008 at 14:19, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   r10.1 
Platform:   Windows  ;   
Language(s) :   C.O.F.F.E.E  ;

---------
hi there, again:)
i've got my first dialog to work, now, how can i set the min and max values for a slider, so that it moves for example between 1 and 100 in 0.1 steps?

thanks in advance,
ello

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 30/08/2008 at 14:22, xxxxxxxx wrote:

oh, found it... sometimes asking brings the answers
SetInt(...) and such

cool 🙂

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 30/08/2008 at 14:49, xxxxxxxx wrote:

ok, but now i've got another problem..
how can i set the value of a slider from another function?
say i have such a slider:

...
AddStaticText(0,BFH_LEFT,0,0,cS7,0);
AddEditSlider(eSlider7,BFH_SCALEFIT,100,0);
SetInt(eSlider7,1,1,10000,1);
...

and i want to set eSlider7 to 200 ?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 30/08/2008 at 15:59, xxxxxxxx wrote:

Should be the same in any dialog class method. If you need to set it from another class for some reason, add a method to the dialog class which sets this field and call that.

MyDialog::SetSlider7(var val)
{
SetInt(eSlider7,val,1,1000,1);
}

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 30/08/2008 at 16:05, xxxxxxxx wrote:

thank you! just found it