U++ framework
Do not panic. Ask here before giving up.

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: 1796
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: Fri Sep 11 23:49:35 GMT+2 2026

Total time taken to generate the page: 0.00613 seconds