diff options
Diffstat (limited to 'vcl/source/control/fixed.cxx')
-rw-r--r-- | vcl/source/control/fixed.cxx | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vcl/source/control/fixed.cxx b/vcl/source/control/fixed.cxx index f8e8b3ddc6de..2f856445597b 100644 --- a/vcl/source/control/fixed.cxx +++ b/vcl/source/control/fixed.cxx @@ -484,6 +484,41 @@ bool FixedText::set_property(const rtl::OString &rKey, const rtl::OString &rValu return true; } +SelectableFixedText::SelectableFixedText(Window* pParent, const ResId& rResId) + : Edit(pParent, rResId) +{ + Init(); +} + +SelectableFixedText::SelectableFixedText(Window* pParent, WinBits nStyle) + : Edit(pParent, nStyle) +{ + Init(); +} + +// ----------------------------------------------------------------------- + +void SelectableFixedText::Init() +{ + // no border + SetBorderStyle( WINDOW_BORDER_NOBORDER ); + // read-only + SetReadOnly(); + // make it transparent + SetControlBackground(); + SetBackground(); + SetPaintTransparent( sal_True ); +} + +// ----------------------------------------------------------------------- + +void SelectableFixedText::LoseFocus() +{ + Edit::LoseFocus(); + // clear cursor + Invalidate(); +} + // ======================================================================= void FixedLine::ImplInit( Window* pParent, WinBits nStyle ) |