Wednesday, November 3, 2010

Another thing wxWidgets doesn't come out and say

Later on, I was trying to set up wxStaticText widgets to be right justified, and they were always coming out centered even though I was using both wxALIGN_RIGHT and wxST_NO_AUTORESIZE. It turns out that because I used wxDefaultSize instead of a hard-coded size, it was doing the thing described below where it constantly redraws the widget to match the text (even though I was giving it a string with leading spaces). These trouble tickets turned out to be similar, but not related to my problem:

http://trac.wxwidgets.org/ticket/10716
http://trac.wxwidgets.org/ticket/5991

Here's some source code that verified that yes I was "using" wxALIGN_RIGHT and wxST_NO_AUTORESIZE correctly:

http://www.signalogic.com/index.pl?page=HWMgrDlg