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

Started by jmaeding · 2010-03-20 00:02 UTC · 3 replies · SMF topic #1218

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
can a form distinguish......yada yada, sorry for the spelling
Pressing and clicking the both result in the same command being sent to the dialog, so there is no way to distinguish.
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...