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 » U++ Library support » TopWindow&PopUp, TrayIcon » BUG? EditInt / PromptOK not functioning as thought?
Re: BUG? EditInt / PromptOK not functioning as thought? [message #48079 is a reply to message #48077] Sun, 14 May 2017 21:33 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Peter,

I haven't check the code, but if I remember it correctly the check you perform should actually look like this:
	if (IsNull(value)) {
		PromptOK("Invalid number!");
		return;
	}
	else
		PromptOK("Number accepted!");


The edit field returns Null value when it is empty, invalid or outside of the allowed range.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bug: TopWindow::IsFullscreen is not working under GTK
Next Topic: How often is Update called? Is there a similiar frequently called method?
Goto Forum:
  


Current Time: Sat May 04 17:20:38 CEST 2024

Total time taken to generate the page: 0.02045 seconds