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