Centring hyphertextctrl widgets

"Brendan Simon (eTRIX)" <[email protected]> Mon, 2 Sep 2019 22:08:26 +1000
Newsgroups gmane.comp.python.wxglade
Organization eTRIX pty ltd
Message-ID <[email protected]>
Hi Dietmar,

I'm having trouble centering some hypertextctrl widgets on Windows (Win
10), whereas MacOS works ok.

I thought it was just a problem with the hypertextctrl itself as the
docs state it doesn't support align centre or align right on Windows
(why I don't know),
but I thought I should be able to have the sizer expand proportionally,
and the widget be centered within the sizer (with the widget set to the
minimum size to hold the text.

Is that right?

The setup is a horizontal sizer (say 3 columns), with the hypertextctrl
in one (or more) slots, the layout set with a proportion of 1 and
alignment of centre.  When I click on the widget in the design window I
see that the blue handles take the entire size of slot (much larger than
the text).  With Windows not honouring the align centre flag of the
widget, it means it will be left justifed (on Mac the align centre of
widget works ok).

How can I have proportion = 1 to expand the sizer slot, AND, have the
widget at the minimum size and centred within the slot.  I think this
should be platform neutral (i.e. not be platform specific as it's just
sizer machinery), right?

Thanks,
Brendan.

_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general