Any hints on where I can look to see where this extra space is coming from?
It creates a very bloated look in the app, which is relatively cramped
already on the screen with a lot of controls.
I'm guessing that wx is querying metrics from the display to compute the
various spacings and that the metrics are not very good, but I don't know
where to start in looking for that.
Here's code that creates a typical button in a panel of nested box sizers:
wxBoxSizer* bSizer5;
bSizer5 = new wxBoxSizer( wxHORIZONTAL );
m_moveMinus = new wxButton( m_panel2, ID_MOVE_MINUS, wxT("Move -"),
wxDefaultPosition, wxDefaultSize, 0 );
m_moveMinus->SetToolTip( wxT("Move to negative setpoint") );
bSizer5->Add( m_moveMinus, 0, wxALIGN_BOTTOM|wxBOTTOM|wxLEFT|wxTOP, 5 );
KP> I'm porting an app from Windows to Linux (wxGTK-2.8.10) and I'm finding
KP> that simple buttons are displaying with a huge amound of empty space
KP> between the text and the boundary of the button.
Strange, they should look like any other GTK+ buttons on your system. I
assume this isn't the case, i.e. the buttons in other Gnome programs don't
look like this (if they do, it's just a theme setting and wxGTK correctly
honours it)?
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
> Strange, they should look like any other GTK+ buttons on your system. I
> assume this isn't the case, i.e. the buttons in other Gnome programs don't
> look like this (if they do, it's just a theme setting and wxGTK correctly
> honours it)?
Ah, the theme might very well be the problem. I'm not real familiar with
Linux GUIs and installed the display managers and X server after initially
loading the system to run with only text consoles, so it may be missing a
lot of customization. I set the default DM to be KDE (as I was using
kdevelop as my front-end to gdb) and the menu I got was very bare-bones.