Added function GetDefaultSize

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Bedward
1999-08-02 04:19:49 +00:00
parent 5af2ff30ec
commit 4d194d6368
2 changed files with 10 additions and 0 deletions

View File

@@ -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();

View File

@@ -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);