OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: jmaeding on March 19, 2010, 05:02:44 PM

Title: can a for distinguish betwwen a cancel via esc and picking the x in corner?
Post by: jmaeding on March 19, 2010, 05:02:44 PM
I have a modeless that I want to close only when the user hits the x.
The OnCancelClose event gives the same number (1) as the escPressed argument for either esc or x picked.
I would expect this is the most common behavior desired for a modeless, since you generally want them shown until explicitly closed by a pick. Did I overlook something?
thx
Title: Re: can a for distinguish betwwen a cancel via esc and picking the x in corner?
Post by: jmaeding on March 19, 2010, 05:03:50 PM
can a form distinguish......yada yada, sorry for the spelling
Title: Re: can a for distinguish betwwen a cancel via esc and picking the x in corner?
Post by: owenwengerd on March 19, 2010, 07:58:37 PM
Pressing <ESC> and clicking the [X] both result in the same command being sent to the dialog, so there is no way to distinguish.
Title: Re: can a for distinguish betwwen a cancel via esc and picking the x in corner?
Post by: jmaeding on March 20, 2010, 11:52:29 AM
thx for reply, I am thinking this is a change from how it was in 4.1 ver.
I guess I could put a close button on the form and use a flag to distinguish things.
people hit esc all the time in acad so this is a very visible thing to the user...