Hi all...I wanna ask you a question about wx.StatusBar
My problem is this: I'm building a frame that contains a panel (the frame shouldn't be resized, so I toggled the flags wx.MAXIMIZE_BOX and wx.RESIZE_BORDER). The panel should contain other ctrls, that change with the changing of some parameters. This ctrls are layed out in a Sizer. At the end of the code I do this:
myFrame.SetClientSize(myPanel.GetSize())
to make the frame become to its minimal size (but containing all the ctrls). Until here all goes right and I am happy (and a bit proud :)) for the work I done.
Now I need to place a status bar in my frame. So I do:
myStatusBar = myFrame.CreateStatusBar()
myStatusBar.SetStatusText("blablablablablablabla")
The status bar appears and works fine, but the layout of the size is not the same as before. It seems that myFrame.SetClientSize... it's ignored and the frame takes an its own size...
I've seen that if I toggle the status bar, all goes well...
Moreover, I would toggle the bottom-right gripper(??) in the status bar that resizes the frame. Is it possible? How can I do? Have you any suggest for my 'problems'?
Thanks a lot
Luca
···
--
Unipex srl
email: luca@unipex.it
Tel: 0432 - 931511
Fax: 0432 - 931378
Hi all...I wanna ask you a question about wx.StatusBar
My problem is this: I'm building a frame that contains a panel (the
frame shouldn't be resized, so I toggled the flags wx.MAXIMIZE_BOX and
wx.RESIZE_BORDER). The panel should contain other ctrls, that change
with the changing of some parameters. This ctrls are layed out in a
Sizer. At the end of the code I do this:
myFrame.SetClientSize(myPanel.GetSize())
to make the frame become to its minimal size (but containing all the
ctrls). Until here all goes right and I am happy (and a bit proud :))
for the work I done.
Now I need to place a status bar in my frame. So I do:
myStatusBar = myFrame.CreateStatusBar()
myStatusBar.SetStatusText("blablablablablablabla")
The status bar appears and works fine, but the layout of the size is not
the same as before. It seems that myFrame.SetClientSize... it's ignored
and the frame takes an its own size...
I've seen that if I toggle the status bar, all goes well...
The client area of a frame specifically excludes the area taken up by
the status bar. Also excluded are the menu and toolbars, if any.
Moreover, I would toggle the bottom-right gripper(??) in the status bar
that resizes the frame. Is it possible? How can I do? Have you any
suggest for my 'problems'?
pass the ST_NO_AUTORESIZE style to CreateStatusBar
···
On 10/9/07, Luca Politti <luca@unipex.it> wrote:
Thanks a lot
Luca
--
Unipex srl
email: luca@unipex.it
Tel: 0432 - 931511
Fax: 0432 - 931378
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org