]> git.saurik.com Git - wxWidgets.git/blame - src/stubs/button.cpp
another compile problem fixed
[wxWidgets.git] / src / stubs / button.cpp
CommitLineData
93cf77c0
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: button.cpp
3// Purpose: wxButton
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "button.h"
14#endif
15
16#include "wx/button.h"
17
93cf77c0 18IMPLEMENT_DYNAMIC_CLASS(wxButton, wxControl)
93cf77c0
JS
19
20// Button
21
22bool wxButton::Create(wxWindow *parent, wxWindowID id, const wxString& label,
23 const wxPoint& pos,
24 const wxSize& size, long style,
25 const wxValidator& validator,
26 const wxString& name)
27{
28 SetName(name);
29 SetValidator(validator);
30 m_windowStyle = style;
31
32 parent->AddChild((wxButton *)this);
33
34 if (id == -1)
35 m_windowId = NewControlId();
36 else
37 m_windowId = id;
38
39 // TODO: create button
40
41 return FALSE;
42}
43
44void wxButton::SetSize(int x, int y, int width, int height, int sizeFlags)
45{
46 // TODO
47}
48
49void wxButton::SetDefault()
50{
51 wxWindow *parent = (wxWindow *)GetParent();
52 if (parent)
53 parent->SetDefaultItem(this);
54
55 // TODO: make button the default
56}
57
58wxString wxButton::GetLabel() const
59{
60 // TODO
61 return wxString("");
62}
63
64void wxButton::SetLabel(const wxString& label)
65{
66 // TODO
67}
68
69void wxButton::Command (wxCommandEvent & event)
70{
71 ProcessCommand (event);
72}
73