develooper Front page | perl.wxperl.users | Postings from February 2013

RE: Modality and new windows

Thread Previous | Thread Next
February 14, 2013 10:37
RE: Modality and new windows
Message ID:
Hi Dave,

> So if I have a dialog invoked with ShowModal() and an event comes along 
> that wants to create a new frame, how can I enable the new frame to 
> receive events?

I've never had a problem with this.  I have dialogues within dialogues
within dialogues, maybe seven or eight layers deep.  But I don't use frames
except for the main menu, maybe that is the difference.  If you do use
dialogues, it can get a little frustrating because of the issues around
tabbing.  I have a standard base module that creates a dialogue in my
preferred style (wxDialog + wxSizer + wxPanel so tabbing works, and other
reasons).  Then I derive from this for every dialogue I need.

My only complaint is over modal help which can get lost sometimes.

Good luck,


PS I like your Mullah Nasrudin quotes, I had a book of them once, sadly long
since lost.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About