No tooltips - Bug? Topic is solved
-
- I live to help wx-kind
- Posts: 187
- Joined: Sun Jan 30, 2005 2:50 pm
- Location: Heidelberg, Germany
No tooltips - Bug?
if i have more than one toolbar in my app, only the tooltips of the first one are displayed. is this a known bug? this does only happen to tooltips given as an argument in the wxtoolbar::addtool() functions; if i set a tooltip for a control manually before i add it to the toolbar, it works.
Windows 7 Pro
Visual Studio 2010
wxWidgets 2.9.3
Visual Studio 2010
wxWidgets 2.9.3
-
- I live to help wx-kind
- Posts: 187
- Joined: Sun Jan 30, 2005 2:50 pm
- Location: Heidelberg, Germany
i use wxaui. the "first one" is the mainframe's toolbar. the other ones are toolbars of wxaui panes.
in my viewport class:
and then, whenever i need a new viewport:
i realized that it only happens when the pane is initlialized floating. the tooltips work until i have docked the viewport once.
in my viewport class:
Code: Select all
void Viewport3D::SetupToolbar()
{
ToolsPanel = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxSize(300, 25) );
Tools = new wxToolBar( ToolsPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTB_FLAT | wxTB_NODIVIDER );
...
Tools->Realize();
}
Code: Select all
Viewport3D *viewport = new Viewport3D( this, GlobalData.get() );
wxString Name = wxString::Format( "3D Viewport #%i", viewport->GetId() );
Manager.AddPane( viewport, wxPaneInfo().Name(Name).Caption(_("3D Viewport")).Float().
FloatingPosition(ClientToScreen(wxPoint(20, 20))).FloatingSize(wxSize(400, 300)).MinSize(wxSize(400, 300)).DestroyOnClose(true) );
Windows 7 Pro
Visual Studio 2010
wxWidgets 2.9.3
Visual Studio 2010
wxWidgets 2.9.3