summaryrefslogtreecommitdiff
path: root/vcl/source/app
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:05:46 +0200
commit675f723f83d110bec4a9a4c5fa09ad965d240d2a (patch)
treed9c26626165efd020d0c1f02f3c91b97fcfb6765 /vcl/source/app
parent2d67eb7244b641728b91e070568bdb309149f5f4 (diff)
multiline tooltip for very long (eg. footnote) texts #i42424#
Change-Id: Ib6383220c3cdd6fef55dee82fcfdc3472da45163
Diffstat (limited to 'vcl/source/app')
-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 c57cb7430467..7a3f174d8594 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()
@@ -358,7 +360,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();
@@ -420,7 +422,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 );