summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-10-22 17:25:12 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-10-22 17:25:12 +0400
commit9dbb62555f0813cc55e48be28047f22e2b3ea4ef (patch)
treef77bed0522a850a588e6ef8ca5e3d462b409d397 /vcl
parentf1386b7706686e0c65ba0ad6d92574658cdca3a9 (diff)
disable cursor in about dialog and message boxes
Change-Id: I060872e0a468f2ce26a2ab519c5bfe271574170b
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/vclmedit.hxx1
-rw-r--r--vcl/source/edit/vclmedit.cxx5
-rw-r--r--vcl/source/window/msgbox.cxx1
3 files changed, 7 insertions, 0 deletions
diff --git a/vcl/inc/vcl/vclmedit.hxx b/vcl/inc/vcl/vclmedit.hxx
index 7ecb944d726b..0264b4a77b87 100644
--- a/vcl/inc/vcl/vclmedit.hxx
+++ b/vcl/inc/vcl/vclmedit.hxx
@@ -137,6 +137,7 @@ public:
void DisableSelectionOnFocus();
void SetTextSelectable( sal_Bool bTextSelectable );
+ void EnableCursor( sal_Bool bEnable );
};
inline sal_uLong VclMultiLineEdit::IsUpdateDataEnabled() const
diff --git a/vcl/source/edit/vclmedit.cxx b/vcl/source/edit/vclmedit.cxx
index fce3a0df9e90..bee427830439 100644
--- a/vcl/source/edit/vclmedit.cxx
+++ b/vcl/source/edit/vclmedit.cxx
@@ -1569,4 +1569,9 @@ void VclMultiLineEdit::SetTextSelectable( sal_Bool bTextSelectable )
pImpVclMEdit->GetTextWindow()->SetTextSelectable( bTextSelectable );
}
+void VclMultiLineEdit::EnableCursor( sal_Bool bEnable )
+{
+ GetTextView()->EnableCursor( bEnable );
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vcl/source/window/msgbox.cxx b/vcl/source/window/msgbox.cxx
index 41c1505082dc..353eab85f670 100644
--- a/vcl/source/window/msgbox.cxx
+++ b/vcl/source/window/msgbox.cxx
@@ -403,6 +403,7 @@ void MessBox::ImplPosControls()
mpVCLMultiLineEdit->SetPosSizePixel( aTextPos, aMEditSize );
mpVCLMultiLineEdit->Show();
mpVCLMultiLineEdit->SetPaintTransparent(sal_True);
+ mpVCLMultiLineEdit->EnableCursor(sal_False);
SetPageSizePixel( aPageSize );
}