]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/toolbar/test.h
hack to implement right aligned checkboxes
[wxWidgets.git] / samples / toolbar / test.h
index ac9dea8d1bb02d71c4b79ee4921496f6a034e993..63da855c3468e90a868e90fca6146136fca73bb3 100644 (file)
@@ -17,6 +17,17 @@ class MyApp: public wxApp
     bool InitToolbar(wxToolBar* toolBar);
 };
 
+class MyTimer : public wxTimer
+{
+public:
+  MyTimer(wxFrame *frame) { m_frame = frame; }
+
+  virtual void Notify() { wxLogStatus(m_frame, "Timer arrived!"); }
+
+private:
+  wxFrame *m_frame;
+};
+
 // Define a new frame
 class MyFrame: public wxFrame
 {
@@ -34,6 +45,8 @@ public:
 private:
     wxTextCtrl*         m_textWindow;
 
-DECLARE_EVENT_TABLE()
+    DECLARE_EVENT_TABLE()
 };
 
+#define ID_TOOLBAR  500
+