> -----Original Message-----
> From: John McCawley [mailto:jmccawley(at)worleyco(dot)com]
> Sent: 21 November 2003 15:37
> To: pgadmin-hackers(at)postgresql(dot)org
> Subject: [pgadmin-hackers] Some wx behavior questions
> 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.
Please feel free to ask your questions here, I can't speak for everyone,
but certainly the main dev team will always help out where possible.
That said, the wx guys do know more about their code than we do, so you
may benefit more from asking them (though the one and only time I tried
this the silent response was deafening :-( ).
As for this particular problem, a few thoughts spring to mind (haven't
investigated the feasibility though):
- Set an access key on your Cancel button/Exit menu option
- wxCommandEvents are recursively applied to the parent windows event
handler. If you derive your own text control, can you catch the keypress
and raise your own wxCommandEvent?
- Derive your own controls and override the OnChar event handler (as
above) but this time call a public exit() method in the parent
I would add that I would be hesitant to put code based on the second two
ideas in the pgAdmin tree as it would likely be a lot of extra classes
that implement a 'nicety' not in the rest of the code.
pgadmin-hackers by date
|Next:||From: Devrim GUNDUZ||Date: 2003-11-23 16:32:06|
|Subject: Build errors on Fedora, latest snapshot|
|Previous:||From: Andreas Pflug||Date: 2003-11-21 15:56:08|
|Subject: Re: Some wx behavior questions|