Home » Community » Newbie corner » EditDoubleSpin
EditDoubleSpin [message #37891] |
Tue, 20 November 2012 11:07 |
idkfa46
Messages: 155 Registered: December 2011
|
Experienced Member |
|
|
Hi guys,
how can i set an EditDoubleSpin with
initialized value = 100
upper limit = 100
lower limit = 1
spin = 1 ????
EditdoubleSpin(double inc =0.1) works and allow me to set spin.
EditdoubleSpin(double max, double min, double inc =0.1) doesnt work with me...
here the error
error C2274: 'function-style cast' : illegal as right side of '.' operator
Regards,
Matteo
|
|
|
Re: EditDoubleSpin [message #37892 is a reply to message #37891] |
Tue, 20 November 2012 12:40 |
|
idkfa46 wrote on Tue, 20 November 2012 11:07 | Hi guys,
how can i set an EditDoubleSpin with
initialized value = 100
upper limit = 100
lower limit = 1
spin = 1 ????
EditdoubleSpin(double inc =0.1) works and allow me to set spin.
EditdoubleSpin(double max, double min, double inc =0.1) doesnt work with me...
here the error
error C2274: 'function-style cast' : illegal as right side of '.' operator
Regards,
Matteo
|
Hi Matteo,
I'm not exactly sure what the error means (I'm not a windows programmer ), but the constructors for Edit*Spin are deprecated, so you should use it like this anyway:class App : public TopWindow {
EditDoubleSpin eds;
public:
typedef App CLASSNAME;
App(){
eds.MinMax(1,100);
eds.SetInc(1);
eds<<=100;
// ...
}
};
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Sat May 04 10:10:00 CEST 2024
Total time taken to generate the page: 0.02541 seconds
|