|
|
 | | From: | DeMarco, Paul | | Subject: | RE: wxDesigner: Strange Limitation | | Date: | Thu, 20 Jan 2005 16:05:57 +0000 (UTC) |
|
|
 | Right, so it is always true that anytime Alignment->top, and = Alignment->bottom are working, Alignment->Center should also work.=20 WITH NO SPACERS.=20
When the sizer's vertical area is bigger than minimum, it has all of = these options available (also the expand vertically to fill the space, = which I don't want for this control).
Maybe I'm not being very clear, but am I still missing something or is = this a bug?
I ask a simple question: Under what condition do align top and bottom = work but align center does not work?
--Paul
-----Original Message----- From: David Elliott [mailto:elliott@stcnet.com] Sent: Wednesday, January 19, 2005 5:33 PM To: wx-users@lists.wxwidgets.org Subject: Re: wxDesigner: Strange Limitation
On Jan 19, 2005, at 5:01 PM, DeMarco, Paul wrote:
> David, > I RE-read the wxSizer documentation, but I don't conclude that Expand =
> Horizontally and center vertically are mutually exclusive. Especially =
> since wxDesigner allows Alignment->Expand Horizontally > > AND > > Alignment->Top Align > Alignment on an item in a box sizer only takes effect in the direction=20 perpendicular to the box sizer's layout. So an item in a vertical=20 sizer can either alight left, alight right, center horizontally, or=20 grow to fill the width. An item in a horizontal box sizer can only=20 align top, align bottom, center vertically, or grow to fill the height.=20 The behavior in the direction of the sizer is not determined by flags=20 but instead by the proportions of its items.
-Dave
--------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
--------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
|
|
 | | From: | Cheetah | | Subject: | Re: wxDesigner: Strange Limitation | | Date: | Thu, 20 Jan 2005 16:37:45 +0000 (UTC) |
|
|
 | On Thu, 20 Jan 2005 11:05:10 -0500, DeMarco, Paul wrote: > I ask a simple question: Under what condition do align top and bottom work but align center does not work?
I suspect what's going on here is probably that "Expand Horizontally" is mapping to wxGROW with a wxVERTICAL box sizer. If you want to center a widget vertically within a space, you either need spacers in a wxVERTICAL box sizer, or a wxHORIZONTAL sizer with wxALIGN_CENTER_VERTICAL set on the item. If wxDesigner obscures the sizers being created from you, then you probably need to do some poking, reverse engineering, or RTMing to find out what combination of flags will produce one of these situations.
-- -- Cheetah
--------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
|
|
|