From: | Andreas Pflug <pgadmin(at)pse-consulting(dot)de> |
---|---|
To: | John McCawley <jmccawley(at)worleyco(dot)com> |
Cc: | pgadmin-hackers(at)postgresql(dot)org |
Subject: | Re: Some wx behavior questions |
Date: | 2003-11-21 15:56:08 |
Message-ID: | 3FBE3598.7010707@pse-consulting.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-hackers |
John McCawley wrote:
> If you guys would rather I direct my wx related questions to the
> wxWindows project let me know, but I would prefer to be active here
> since my project's purpose is closely related to pgAdmin.
>
> I like the default behavior of FLTK windows, and I would like to
> emulate this in wxWindows. I want the escape key to close the current
> window (of course, prompting if the window is dirty) for all of my
> windows.
We should have this in pga also.
> However, I have not figured out how to do a global event handler for
> a Window. i.e. if a textbox is currently active on the window, the
> parent window will not receive the escape keypress event unless I
> explicitly pass the event up from the textbox. I would like some sort
> of way to tell every one of my widgets "if you do not process this
> keyboard event, pass it up to the parent window".
>
> Is there a way to do this without explicitly creating an event handler
> for every single widget I add to the window?
You could try accelerator tables. But be careful: e.g. a combobox will
sometimes have to handle esc, you may not catch all escapes. I doubt
that you can handle this globally.
Regards,
Andreas
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2003-11-21 16:07:57 | Re: Some wx behavior questions |
Previous Message | John McCawley | 2003-11-21 15:36:52 | Some wx behavior questions |