Update of /cvsroot/simspark/simspark/contrib/rsgedit/wxflatnotebook/src/wxflatnotebook
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv15194/wxflatnotebook/src/wxflatnotebook
Modified Files:
Tag: RSGEDIT_SCINTILLA
wxFlatNotebook.cpp
Log Message:
- use window label to request tab tooltips (otherwise they were also visible in the client area of the tab)
Index: wxFlatNotebook.cpp
===================================================================
RCS file: /cvsroot/simspark/simspark/contrib/rsgedit/wxflatnotebook/src/wxflatnotebook/Attic/wxFlatNotebook.cpp,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** wxFlatNotebook.cpp 21 Jun 2007 17:52:41 -0000 1.1.2.1
--- wxFlatNotebook.cpp 23 Jun 2007 07:28:04 -0000 1.1.2.2
***************
*** 1456,1462 ****
if( pWindow )
{
! wxToolTip *pToolTip = pWindow->GetToolTip();
! if(pToolTip && pToolTip->GetWindow() == pWindow)
! SetToolTip(pToolTip->GetTip());
}
}
--- 1456,1464 ----
if( pWindow )
{
! wxString label(pWindow->GetLabel());
! if (! label.IsEmpty())
! {
! SetToolTip(label);
! }
}
}
|