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 » U++ community news and announcements » EditNumber
EditNumber [message #40251] Thu, 11 July 2013 13:48 Go to next message
mirek is currently offline  mirek
Messages: 14112
Registered: November 2005
Ultimate Member
In analogy with EditText function, there are now

bool EditNumber(int& n, const char *title, const char *label, int min = INT_MIN, int max = INT_MAX, bool notnull = false);

bool EditNumber(double& n, const char *title, const char *label, double min = DBL_MIN, double max = DBL_MAX, bool notnull = false);
Re: EditNumber [message #40252 is a reply to message #40251] Thu, 11 July 2013 17:56 Go to previous messageGo to next message
Novo is currently offline  Novo
Messages: 1371
Registered: December 2006
Ultimate Contributor
On Linux:
error: ‘DBL_MAX’ was not declared in this scope


Regards,
Novo
Re: EditNumber [message #40254 is a reply to message #40252] Fri, 12 July 2013 06:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 14112
Registered: November 2005
Ultimate Member
Well, it compiled in my distro.. But I have added #include "float.h", perhaps it will work now for you?

Mirek
Re: EditNumber [message #40256 is a reply to message #40254] Fri, 12 July 2013 14:46 Go to previous message
Novo is currently offline  Novo
Messages: 1371
Registered: December 2006
Ultimate Contributor
mirek wrote on Fri, 12 July 2013 00:20

Well, it compiled in my distro.. But I have added #include "float.h", perhaps it will work now for you?

Mirek

Thanks! It works for me now. I'm using Ubuntu.


Regards,
Novo
Previous Topic: Debian repository
Next Topic: Docking host platform dependency refactored
Goto Forum:
  


Current Time: Sun Nov 10 20:24:02 CET 2024

Total time taken to generate the page: 0.01051 seconds