wxRichToolTip on MAC is transparent

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
maximand
Experienced Solver
Experienced Solver
Posts: 72
Joined: Fri Nov 11, 2011 5:44 pm
Location: Russia

wxRichToolTip on MAC is transparent

Post by maximand » Sun Apr 26, 2020 4:07 pm

Hello.

I've created the following function to draw tool tip in case if fields of my app dialogues contains an invalid value.
tip.SetBackgroundColour(...) has been added specially for MAC. But it does not help.
It working only if some colour a la wxColour(255,255,0) inserted. But in that case it looks ugly.
What is the best way to set proper color?

Code: Select all

void mmErrorDialogs::ToolTip4Object(wxWindow *object, const wxString &message, const wxString &title, int ico)
{
    wxRichToolTip tip(title, message);
    tip.SetIcon(ico);
    tip.SetBackgroundColour(object->GetParent()->GetBackgroundColour());
    tip.ShowFor(object);
}


Image
M$, VS2017, C++

maximand
Experienced Solver
Experienced Solver
Posts: 72
Joined: Fri Nov 11, 2011 5:44 pm
Location: Russia

Re: wxRichToolTip on MAC is transparent

Post by maximand » Sun Apr 26, 2020 4:18 pm

Sample with tip.SetBackgroundColour(wxColour(255,255,0));
Снимок экрана 2020-04-26 в 19.15.48.png
M$, VS2017, C++

User avatar
doublemax
Moderator
Moderator
Posts: 14884
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxRichToolTip on MAC is transparent

Post by doublemax » Sun Apr 26, 2020 4:45 pm

wxWidgets version? If it's up-to-date and the problem can be seen in the "dialogs" sample, please open a bug report at http://trac.wxwidgets.org
Use the source, Luke!

maximand
Experienced Solver
Experienced Solver
Posts: 72
Joined: Fri Nov 11, 2011 5:44 pm
Location: Russia

Re: wxRichToolTip on MAC is transparent

Post by maximand » Sun Apr 26, 2020 4:47 pm

wx 3.1.3
M$, VS2017, C++

Post Reply