summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2012-09-07 08:52:52 +0200
committerAndras Timar <atimar@suse.com>2012-09-07 12:38:31 +0200
commita5d8d122dbef5c33f65d9e667989936a940b66de (patch)
tree76d420bc415f498129bb0a097c1a34f278e8f644
parent8806e6e1029f08cb43540f1aa9753b19f0e459f8 (diff)
multiline tooltip for very long (eg. footnote) texts #i42424#
Change-Id: Ib6383220c3cdd6fef55dee82fcfdc3472da45163 Signed-off-by: Andras Timar <atimar@suse.com>
-rw-r--r--vcl/source/app/help.cxx6
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 );