Hi,
there is one small but annoing thing with my small app left.
I want my app to run iconized if desired an all works well - if I click
on the close widget I fire up self.Iconize(true) in the EVT_CLOSE handler and
self.Show(false) in the EVT_ICONIZE handler.
I now wanted to add a commandline switch to start my app iconized - but now there is a titlebar of the window left right over the win start-button - I played around with my code a bit but as a result the title bar remains no matter what I'm trying - calling self.Iconize(true) and self.Show(false) definetly is not enough. I suspect that there must be done something more internally when the EVT_CLOSE and EVT_ICONIZE events are fired up beside the 2 commands I'm calling.
Any hints ?
Hi,
there is one small but annoing thing with my small app left.
I want my app to run iconized if desired an all works well - if I click
on the close widget I fire up self.Iconize(true) in the EVT_CLOSE handler and
self.Show(false) in the EVT_ICONIZE handler.
Why do the Show(false)? It seems to me that you don't really need to catch EVT_ICONIZE...
I now wanted to add a commandline switch to start my app iconized - but now there is a titlebar of the window left right over the win start-button - I played around with my code a bit but as a result the title bar remains no matter what I'm trying - calling self.Iconize(true) and self.Show(false) definetly is not enough. I suspect that there must be done something more internally when the EVT_CLOSE and EVT_ICONIZE events are fired up beside the 2 commands I'm calling.
I'm not sure, but maybe there is some initialization of the frame that hasn't happened yet when you try to do the Iconize. Try starting the app normally but add a call to wxCallAfter(self.Iconize) so it will be done later after the MainLoop has been entered.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!