can a for distinguish betwwen a cancel via esc and picking the x in corner?

Started by jmaeding, March 19, 2010, 05:02:44 PM

Previous topic - Next topic

jmaeding

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

jmaeding


owenwengerd

Pressing <ESC> and clicking the [X] both result in the same command being sent to the dialog, so there is no way to distinguish.
Owen Wengerd (Outside The Box) / ManuSoft

jmaeding

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...