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 » U++ Widgets - General questions or Mixed problems » CtrlLayoutOKCancel - detecting Cancel vs Bad input?
CtrlLayoutOKCancel - detecting Cancel vs Bad input? [message #1727] Thu, 16 March 2006 07:59 Go to previous message
lundman is currently offline  lundman
Messages: 175
Registered: March 2006
Location: Tokyo
Experienced Member

Using a CtrlLayoutOKCancel, with some fields with restrictions, like non-null, or min&max (port).

When user inputs something bad, a OK dialog pops up to inform us of this, then the main dialog returns from Run() with IDCANCEL.

(One would have thought it should not return at this point?)

This means we've stuck Run() in a loop so they can input data correctly, until they push OK or Cancel.

But Cancel also returns IDCANCEL.

How do we detect the difference between user clicking Cancel, and user just typing in something invalid?

Advice pleace Smile


 
Read Message
Read Message
Read Message
Previous Topic: Why there are no SetParent() or SetOwner() ? [TOO DANGEROUS...]
Next Topic: What Label.WhenAction supposed to do? - nothing [PARTLY SOLVED :)]
Goto Forum:
  


Current Time: Sat Jun 07 11:52:29 CEST 2025

Total time taken to generate the page: 0.04765 seconds