summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-07 21:19:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-01-09 11:40:53 +0000
commitd9e3efbc0ed6193119565530e390a1c1c0a5f6b7 (patch)
tree6d010e3fea983ece69ed72b723f71319d3407d41 /vcl/source/control
parentf8a4ce67987e5cb47f07dc61eeb450e1d5b9c541 (diff)
add a CloseButton to vcl for convenience
does exactly the same default action as a CancelButton except with "Close" as the label Change-Id: I538e8fc761cde4a1050d066ef935df1ecd930414
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/button.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 82d037892201..8ad4c6cb6324 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1866,6 +1866,13 @@ void CancelButton::Click()
}
}
+CloseButton::CloseButton( Window* pParent, WinBits nStyle )
+ : CancelButton(pParent, nStyle)
+{
+ SetText( Button::GetStandardText( BUTTON_CLOSE ) );
+ SetHelpText( Button::GetStandardHelpText( BUTTON_CLOSE ) );
+}
+
// =======================================================================
void HelpButton::ImplInit( Window* pParent, WinBits nStyle )