Re: wxToolbar on Mac, controls not showing tooltips.

Tony Kennedy <[email protected]> Mon, 31 Mar 2025 02:28:40 -0700 (PDT)
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
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");



On Monday, 31 March 2025 at 10:01:58 UTC+1 Tony Kennedy wrote:

> 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");
>
>

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/6335b965-7ddd-49af-ab64-9a3c8ec2b0a2n%40googlegroups.com.