wxToolbar on Mac, controls not showing tooltips.

17 views
Skip to first unread message

Tony Kennedy

unread,
Mar 31, 2025, 5:01:58 AM3/31/25
to wx-users
Hi all,

On the Mac using wx 3.2.6, I've got a wxToolbar and I add some things (like wxButton, wxChoice etc). All these controls have tooltips, but these tips do not show up.

They show fine on Windows. And tips display fine for standard toolbar buttons (using pToolbar->AddTool). It's only the controls added using AddControl that seem to have a problem.

Has anyone else seen this?

Thanks in advance.

Tony.

PS. I tried the toolbar sample as well, adding a tooltip for the wxChoice didn't work either.

wxComboBox *combo = new wxComboBox(toolBar, ID_COMBO, wxEmptyString,wxDefaultPosition, FromDIP(wxSize(100,-1)) );
combo->SetToolTip("Test tooltip for combobox");

Tony Kennedy

unread,
Mar 31, 2025, 5:28:40 AM3/31/25
to wx-users
An update.

If I do the set the short help text for the control (see below), the tooltips show up. So I have a work around.

Tony.


wxComboBox *combo = new wxComboBox(toolBar, ID_COMBO, wxEmptyString,wxDefaultPosition, FromDIP(wxSize(100,-1)) );

wxToolBarToolBase *pItem = toolBar->AddControl(combo, "Combo Label");
pItem->SetShortHelp("SHORT test");
Reply all
Reply to author
Forward
0 new messages