Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » EditDoubleSpin
EditDoubleSpin [message #37891] Tue, 20 November 2012 11:07 Go to next message
idkfa46 is currently offline  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 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

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 Smile ), 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
Previous Topic: [SOLVED] WIN32 API "MoveFile" and LineEdit Ctrl issue
Next Topic: How to run a Skylark app in webserver?
Goto Forum:
  


Current Time: Fri Apr 26 20:25:52 CEST 2024

Total time taken to generate the page: 0.02627 seconds