October 30, 2025, 06:56:43 AM

News:

IWBasic runs in Windows 11!


Escape key with multiple dialogs open

Started by JoaoAfonso, May 05, 2008, 12:07:44 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JoaoAfonso

Good evening.

Today something "strange" happened:
- created 2 dialogs
- opened one of them with domodal
- click on a button to open the second one with domodal (first thing strange: I could press again buttons in first dialog, even with second one open - domodal shouldnt prevent this?)
- after this, if I press ESC key it closes second dialog, but pressing again ESC it opens the same dialog again.

Hmm... is this supposed to happen, or something about my code (strange reaction, though...)?
JoÃÆ'ƒÂÃ,£o Afonso
Viriato
-----------------
Iberia MUD
www.iberiamud.com
iberiamud.com:5900

aurelCB

If not secret give the code that we see?

LarryMc

May 05, 2008, 01:49:26 PM #2 Last Edit: May 05, 2008, 01:51:47 PM by Larry McCaughn
See Paul's response to a related question in the Aurora forums at

http://www.ionicwind.com/forums/index.php/topic,1040.msg9673.html#msg9673

Another possibility has to do with what you are using for the "parent" of the dialogs.


Can't help other than that without some code to look at.

Larry
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

JoaoAfonso

Code of course is not secret :) I was with hurry and thought was something simple (as it was). Indeed, ESC key is set for ID 2.

Thank you :)
JoÃÆ'ƒÂÃ,£o Afonso
Viriato
-----------------
Iberia MUD
www.iberiamud.com
iberiamud.com:5900