diff options
author | László Németh <nemeth@numbertext.org> | 2012-09-07 08:52:52 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2012-09-07 12:39:33 +0200 |
commit | f3563cb13d679953abb5975dcd246ad60ed8045d (patch) | |
tree | 96a3d71903281447e5d3780bc9fa4c17bcd3a037 /vcl | |
parent | cfbfa26deb2776e5c07463e59517eaf68c1d5d6d (diff) |
multiline tooltip for very long (eg. footnote) texts #i42424#
Change-Id: Ib6383220c3cdd6fef55dee82fcfdc3472da45163
Signed-off-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/app/help.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/app/help.cxx b/vcl/source/app/help.cxx index b968ca1aadc7..2dc76fbc7f25 100644 --- a/vcl/source/app/help.cxx +++ b/vcl/source/app/help.cxx @@ -52,6 +52,8 @@ #define HELPDELAY_SHORT 2 #define HELPDELAY_NONE 3 +#define HELPTEXTMAXLEN 150 + // ======================================================================= Help::Help() @@ -359,7 +361,7 @@ HelpTextWindow::~HelpTextWindow() void HelpTextWindow::SetHelpText( const String& rHelpText ) { maHelpText = rHelpText; - if ( mnHelpWinStyle == HELPWINSTYLE_QUICK ) + if ( mnHelpWinStyle == HELPWINSTYLE_QUICK && maHelpText.Len() < HELPTEXTMAXLEN) { Size aSize; aSize.Height() = GetTextHeight(); @@ -421,7 +423,7 @@ void HelpTextWindow::Paint( const Rectangle& ) } // paint text - if ( mnHelpWinStyle == HELPWINSTYLE_QUICK ) + if ( mnHelpWinStyle == HELPWINSTYLE_QUICK && maHelpText.Len() < HELPTEXTMAXLEN) { if ( mnStyle & QUICKHELP_CTRLTEXT ) DrawCtrlText( maTextRect.TopLeft(), maHelpText ); |