home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / contrib / samples / fl / fl_demo1 / fl_demo1.h < prev    next >
C/C++ Source or Header  |  2002-09-08  |  2KB  |  75 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        No names yet.
  3. // Purpose:     Contrib. demo
  4. // Author:      Aleksandras Gluchovas
  5. // Modified by: Sebastian Haase (June 21, 2001)
  6. // Created:     04/11/98
  7. // RCS-ID:      $Id: fl_demo1.h,v 1.3 2002/09/07 12:12:21 GD Exp $
  8. // Copyright:   (c) Aleksandras Gluchovas
  9. // Licence:     wxWindows license
  10. /////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef __NEW_TEST_G__
  13. #define __NEW_TEST_G__
  14.  
  15. #if defined(__GNUG__) && !defined(__APPLE__)
  16. #pragma interface "fl_demo1.h"
  17. #endif
  18.  
  19. #define NEW_TEST_SAVE 1101
  20. #define NEW_TEST_LOAD 1102
  21. #define NEW_TEST_EXIT 1103
  22.  
  23. #include "wx/panel.h"
  24. #include "wx/statline.h"    
  25.  
  26. // Define a new application type
  27. class MyApp: public wxApp
  28. public:
  29.     bool OnInit(void);
  30. };
  31.  
  32. // Define a new frame type
  33. class MyFrame: public wxFrame
  34. public:
  35.     wxFrameLayout*  mpLayout;
  36.     wxTextCtrl*     mpClientWnd;
  37.     
  38.     wxTextCtrl* CreateTextCtrl( const wxString& value );
  39.     
  40. public:
  41.     MyFrame(wxFrame *frame);
  42.     virtual ~MyFrame();
  43.     
  44.     bool OnClose(void) { Show(FALSE); return TRUE; }
  45.     
  46.     void OnLoad( wxCommandEvent& event );
  47.     void OnSave( wxCommandEvent& event );
  48.     void OnExit( wxCommandEvent& event );
  49.     
  50.     DECLARE_EVENT_TABLE()
  51. };
  52.  
  53. /*
  54.  * Quick example of your own Separator class...
  55.  */
  56. class wxMySeparatorLine : public wxStaticLine
  57. {
  58. public:
  59.     wxMySeparatorLine() 
  60.     {}
  61.     wxMySeparatorLine( wxWindow *parent, wxWindowID id) 
  62.         : wxStaticLine( parent, id)
  63.     {}
  64.  
  65. protected:
  66.    virtual void DoSetSize( int x, int y,
  67.                            int width, int height,
  68.                            int sizeFlags = wxSIZE_AUTO);
  69. };
  70.  
  71. #endif
  72.  
  73.