Modless dialog box closed than ESC

Started by cadplayer, April 05, 2013, 05:42:51 AM

Previous topic - Next topic

cadplayer

Hello!

I have created a modless dialog box. When I run program menu comes but if I mark menu an press ESC it disappear. Have anybody a trick unless I push windowsbutton "x" the menu should close.

Fred Tomke

Yes, have a look here: http://www.opendcl.com/forum/index.php?topic=1061.0
You can catch the event using CancelClose event.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

cadplayer

Thanks Fred, I tryed your code, and it works. But here I have the problem I only can close dialog when I push close button.
I ´d like both close only dialog when I push x from window.