// Created: 04/11/98
// RCS-ID: $Id$
// Copyright: (c) Aleksandras Gluchovas
-// Licence: wxWindows license
+// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#ifndef __FLDEMO_G__
// ID for the menu commands
-#define MINIMAL_QUIT 1
+#define MINIMAL_QUIT 1
#define MINIMAL_ABOUT 102
#define ID_LOAD 103
#define ID_REMOVEALL 108
#define ID_RECREATE 109
#define ID_ACTIVATE 110
-#define ID_FIRST 111
+#define ID_FIRST 111
#define ID_SECOND 112
#define ID_THIRD 113
// helpers for control-creation
- wxTextCtrl* CreateTxtCtrl ( const wxString& txt = "wxTextCtrl", wxWindow* parent = NULL );
- wxTreeCtrl* CreateTreeCtrl( const wxString& label = "TreeCtrl" );
- wxChoice* CreateChoice ( const wxString& txt = "Choice1" );
- wxButton* CreateButton ( const wxString& label = "wxButton", wxWindow* pParent = NULL, long id = ID_SAY_ITSOK );
+ wxTextCtrl* CreateTxtCtrl ( const wxString& txt = wxT("wxTextCtrl"), wxWindow* parent = NULL );
+ wxTreeCtrl* CreateTreeCtrl( const wxString& label = wxT("TreeCtrl") );
+ wxChoice* CreateChoice ( const wxString& txt = wxT("Choice1") );
+ wxButton* CreateButton ( const wxString& label = wxT("wxButton"), wxWindow* pParent = NULL, long id = ID_SAY_ITSOK );
// helpers for layout-creation
public: /* public */
- MyFrame( wxFrame *frame, char *title, int x, int y, int w, int h);
+ MyFrame( wxFrame *frame, const wxChar *title, int x, int y, int w, int h);
~MyFrame();
wxBitmap m_DBmp;
public:
- StartButton95(void) : m_bPressed(FALSE) {}
+ StartButton95(void) : m_bPressed(false) {}
StartButton95(wxWindow* parent)
- : m_bPressed(FALSE) { wxPanel::Create(parent,-1); }
+ : m_bPressed(false) { wxPanel::Create(parent,wxID_ANY); }
void OnMouseDown( wxMouseEvent& event );
void OnMouseUp( wxMouseEvent& event );