Re: Centring hyphertextctrl widgets
"Brendan Simon (eTRIX)" <[email protected]> Tue, 3 Sep 2019 09:55:36 +1000
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Organization | eTRIX pty ltd |
| Message-ID | <[email protected]> |
On 3/9/19 12:40 am, Igor Korot wrote: > Hi, Brendan, > > On Mon, Sep 2, 2019 at 7:40 AM Brendan Simon (eTRIX) > <[email protected]> wrote: >> On 2/9/19 10:35 pm, Brendan Simon (eTRIX) wrote: >> >> When I click on wxSHAPED, the proportion is reset back to 0. >> When I try to set proportion to 1, wxSHAPED is reset back to unchecked. >> >> Is this correct and necessary? I think I want proportion = 1 AND wxSHAPED checked. >> >> Modifying the generated source code by setting proportion =1 and wxSHAPED works as I expect, so I don't think wxglade should force the constraint for proportion to be set to 0 if wxSHAPED is checked. > Does this work in all platforms? I suspect it should. Search for wxSHAPED on this page. https://docs.wxwidgets.org/3.0/overview_sizer.html#overview_sizer_box /"""Zero or no flag indicates that the window will preserve it is original size, wxGROW flag (same as wxEXPAND) forces the window to grow with the sizer, and *wxSHAPED flag tells the window to change it is size proportionally, preserving original aspect ratio*. *When wxGROW flag is not used, the item can be aligned within available space*. wxALIGN_LEFT, wxALIGN_TOP, wxALIGN_RIGHT, wxALIGN_BOTTOM, wxALIGN_CENTER_HORIZONTAL and wxALIGN_CENTER_VERTICAL do what they say. wxALIGN_CENTRE (same as wxALIGN_CENTER) is defined as (wxALIGN_CENTER_HORIZONTAL | wxALIGN_CENTER_VERTICAL). Default alignment is wxALIGN_LEFT | wxALIGN_TOP.""" / I will post an example project. Thanks, Brendan. _______________________________________________ wxGlade-general mailing list wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/wxglade-general