]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/fl/fl_demo1/fl_demo1.h
update to docs now minimal sample compiles
[wxWidgets.git] / contrib / samples / fl / fl_demo1 / fl_demo1.h
index 8b0d02ffabaea3d4aa1d4775b9dde5a57721827a..384c6ca987faba6cbed364ac445221a9f5a5e939 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef __NEW_TEST_G__
 #define __NEW_TEST_G__
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(__APPLE__)
 #pragma interface "fl_demo1.h"
 #endif
 
@@ -21,6 +21,7 @@
 #define NEW_TEST_EXIT 1103
 
 #include "wx/panel.h"
+#include "wx/statline.h"    
 
 // Define a new application type
 class MyApp: public wxApp
@@ -51,5 +52,23 @@ public:
     DECLARE_EVENT_TABLE()
 };
 
+/*
+ * Quick example of your own Separator class...
+ */
+class wxMySeparatorLine : public wxStaticLine
+{
+public:
+    wxMySeparatorLine() 
+    {}
+    wxMySeparatorLine( wxWindow *parent, wxWindowID id) 
+        : wxStaticLine( parent, id)
+    {}
+
+protected:
+   virtual void DoSetSize( int x, int y,
+                           int width, int height,
+                           int sizeFlags = wxSIZE_AUTO);
+};
+
 #endif