[wxPython-users] Re: wxPython on Windows Mobile 5
Robin Dunn
robin at alldunn.com
Fri Jun 2 08:41:08 PDT 2006
Jeffrey Barish wrote:
> I am still hoping for a current port of wxPython to Windows Mobile, but in
> the meantime I had an epiphany about one of my problems. I described two
> problems: two Buttons that are supposed to be centered are shoved to the
> left and four BitmapButtons that are supposed to be centered are shoved to
> the right. What I didn't explain is that these two sets of buttons are
> supposed to occupy the same space on the screen at different times. To
> accomplish this result, I placed each set of buttons on a panel, I ran
> Hide() on one of the panels, and I added both panels to a sizer. I
> manipulate Hide() and Show() on the panels (and then execute Layout() on
> the sizer) under program control to select which is visible at any given
> time. Works great on XP. On WM, it seems that setting Hide() on a panel
> does not make it invisible to the sizer, so the sizer is squeezing one
> panel to the left of the parent panel and the other to the right. Is there
> another technique that I can use to create this overlay? I am wondering
> whether I should explore SetSize or SetBestFittingSize or SetSizeHints.
Before the sizers were modified to be aware of the visible state of the
widgets the way to do things like this was to either recreate the sizer
to have just the items you want at the time, or detach and insert items
when needed.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list