summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/inc/helpwin.hxx3
-rw-r--r--vcl/workben/vcldemo.cxx8
2 files changed, 9 insertions, 2 deletions
diff --git a/vcl/inc/helpwin.hxx b/vcl/inc/helpwin.hxx
index b6beda35a6d3..dc1857c24369 100644
--- a/vcl/inc/helpwin.hxx
+++ b/vcl/inc/helpwin.hxx
@@ -20,12 +20,13 @@
#ifndef INCLUDED_VCL_INC_HELPWIN_HXX
#define INCLUDED_VCL_INC_HELPWIN_HXX
+#include <vcl/dllapi.h>
#include <vcl/floatwin.hxx>
#include <vcl/timer.hxx>
// - HelpTextWindow -
-class HelpTextWindow : public FloatingWindow
+class VCL_DLLPUBLIC HelpTextWindow : public FloatingWindow
{
private:
Rectangle maHelpArea; // If next Help for the same rectangle w/ same text, then keep window
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 3dc3d913a1f5..26205cdb3b89 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -37,6 +37,8 @@
#include <vcl/salbtype.hxx>
#include <vcl/bmpacc.hxx>
#include <vcl/help.hxx>
+#include "helpwin.hxx"
+
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <vcldemo-debug.hxx>
@@ -1447,6 +1449,7 @@ class DemoWidgets : public WorkWindow
VclBox *mpBox;
ToolBox *mpToolbox;
PushButton *mpButton;
+ HelpTextWindow *pHelpWindow;
Timer maHelpTimer;
DECL_LINK (HelpTimerCb, void *);
@@ -1522,7 +1525,10 @@ IMPL_LINK_NOARG(DemoWidgets,HelpTimerCb)
Point aPos = GetPosPixel();
aPos.Move(100,100);
- Help::ShowBalloon( this, aPos, "This is another help balloon text" );
+ OUString aText = "This is a help text test";
+ pHelpWindow = new HelpTextWindow( this, aText, 1 /* balloon */, 0 );
+
+ pHelpWindow->ShowHelp( 3 /* delay none */ );
return 0;
}