diff options
author | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-14 12:23:42 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@oracle.com> | 2011-01-14 12:23:42 +0100 |
commit | d0cdc38a6771473b81f002da6769b7b723d657ff (patch) | |
tree | 12fb574a36267391df711a1a81d689d1881488ef /svtools/source/brwbox | |
parent | acaf4f1d75540acd79b7380c7f0ade4e04b75bd8 (diff) |
gridsort: TableDataWindow: use Help::ShowTip instead of Help::ShowQuickHelp.
This means it doesn't interfere with the "normal" quick help (which is a singleton really dedicated to, well,
quickly displaying help). Also, it means we do not need the QUICKHELP_NO_DELAY flag.
To prevent flickering when repeatedly showing such a tip, introduced Help::UpdateTip, which updates an existing
tip, instead of destroying the old tip window, and creating a new one.
Used this new UpdateTip also in the BrowseBox, means means some less flickering there, too.
Diffstat (limited to 'svtools/source/brwbox')
-rw-r--r-- | svtools/source/brwbox/datwin.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/svtools/source/brwbox/datwin.cxx b/svtools/source/brwbox/datwin.cxx index cb43e4989355..2c771f778d92 100644 --- a/svtools/source/brwbox/datwin.cxx +++ b/svtools/source/brwbox/datwin.cxx @@ -752,17 +752,18 @@ void BrowserScrollBar::Tracking( const TrackingEvent& rTEvt ) ULONG nPos = GetThumbPos(); if ( nPos != _nLastPos ) { - if ( _nTip ) - Help::HideTip( _nTip ); - String aTip( String::CreateFromInt32(nPos) ); aTip += '/'; if ( _pDataWin->GetRealRowCount().Len() ) aTip += _pDataWin->GetRealRowCount(); else aTip += String::CreateFromInt32(GetRangeMax()); + Rectangle aRect( GetPointerPosPixel(), Size( GetTextHeight(), GetTextWidth( aTip ) ) ); - _nTip = Help::ShowTip( this, aRect, aTip ); + if ( _nTip ) + Help::UpdateTip( _nTip, this, aRect, aTip ); + else + _nTip = Help::ShowTip( this, aRect, aTip ); _nLastPos = nPos; } |