Hi,
is it possible to have into a wxNotebook MDIWindows?
Alessandro Crugnola [aka] sephiroth
Flash | PHP Developer
http://www.sephiroth.it
Team Macromedia Volunteer for Flash
http://www.macromedia.com/go/team
Hi,
is it possible to have into a wxNotebook MDIWindows?
Alessandro Crugnola [aka] sephiroth
Flash | PHP Developer
http://www.sephiroth.it
Team Macromedia Volunteer for Flash
http://www.macromedia.com/go/team
Alessandro Crugnola *sephiroth* wrote:
Hi,
is it possible to have into a wxNotebook MDIWindows?
Do you mean to put a wxNotebook in a wxMDIChildFrame? Yes.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
I don't know if you know TextPad. I mean the same way..
A main window with a wxNotebook for text-editor pages management.
Moreover a wxMDI. This means that if user choose "window->tile horizontally", the windows are displayed in the same notebook page.
:: -----Original Message-----
:: From: Robin Dunn [mailto:robin@alldunn.com]
:: Sent: lunedì 10 novembre 2003 22.33
:: To: wxPython-users@lists.wxwindows.org
:: Subject: Re: [wxPython-users] notebook and MDI child windows?
::
:: Alessandro Crugnola *sephiroth* wrote:
:: > Hi,
:: > is it possible to have into a wxNotebook MDIWindows?
:: >
::
:: Do you mean to put a wxNotebook in a wxMDIChildFrame? Yes.
::
:: --
:: Robin Dunn
:: Software Craftsman
:: http://wxPython.org Java give you jitters? Relax with wxPython!
::
::
::
:: ---------------------------------------------------------------------
:: To unsubscribe, e-mail:
:: wxPython-users-unsubscribe@lists.wxwindows.org
:: For additional commands, e-mail:
:: wxPython-users-help@lists.wxwindows.org
::
Alessandro Crugnola *sephiroth* wrote:
I don't know if you know TextPad. I mean the same way..
A main window with a wxNotebook for text-editor pages management. Moreover a wxMDI. This means that if user choose "window->tile horizontally", the windows are displayed in the same notebook page.
There may be a way to do that, but it will be tricky. Take a look at the "MDI with SashWindows demo" in the wxMDIWindow sample in the demo. It shows how to have other windows around the edges of the MDI area of a wxMDIParentFrame. If you make the notebook only big enough to show the tabs and put it in a sash window at the top, then it woudl appear to still be controlling which MDI child is active. You can catch the notebook events and then bring the specified MDI child to the front, etc. When a MDI child is maximized then you probably want to use the notebook as normal, right? In that case then you can move the document windows out of the MDIChildFrames and into the notebook pages, and resize the sash window so it fills the MDI client area.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!