From 4d194d6368477b8bd1d15d261aff7a8c63ed5064 Mon Sep 17 00:00:00 2001 From: Michael Bedward Date: Mon, 2 Aug 1999 04:19:49 +0000 Subject: [PATCH] Added function GetDefaultSize git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/motif/button.h | 2 ++ src/motif/button.cpp | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/include/wx/motif/button.h b/include/wx/motif/button.h index 13fe4ecf90..c872066bb9 100644 --- a/include/wx/motif/button.h +++ b/include/wx/motif/button.h @@ -48,6 +48,8 @@ public: virtual void SetDefault(); virtual void Command(wxCommandEvent& event); + static wxSize GetDefaultSize(); + // Implementation virtual void ChangeFont(bool keepOriginalSize = TRUE); virtual void ChangeBackgroundColour(); diff --git a/src/motif/button.cpp b/src/motif/button.cpp index ac7c31cfec..144cb92156 100644 --- a/src/motif/button.cpp +++ b/src/motif/button.cpp @@ -122,6 +122,14 @@ void wxButton::SetDefault() XtVaSetValues ((Widget) parent->GetMainWidget(), XmNdefaultButton, (Widget) GetMainWidget(), NULL); } +/* static */ +wxSize wxButton::GetDefaultSize() +{ + // TODO: check font size as in wxMSW ? MB + // + return wxSize(80,26); +} + void wxButton::Command (wxCommandEvent & event) { ProcessCommand (event); -- 2.45.2