panelg.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/generic/panelg.h
  3. // Purpose: wxPanel: a container for child controls
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 01/02/97
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_GENERIC_PANELG_H_
  11. #define _WX_GENERIC_PANELG_H_
  12. #include "wx/bitmap.h"
  13. class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
  14. {
  15. public:
  16. wxPanel() { }
  17. // Constructor
  18. wxPanel(wxWindow *parent,
  19. wxWindowID winid = wxID_ANY,
  20. const wxPoint& pos = wxDefaultPosition,
  21. const wxSize& size = wxDefaultSize,
  22. long style = wxTAB_TRAVERSAL | wxNO_BORDER,
  23. const wxString& name = wxPanelNameStr)
  24. {
  25. Create(parent, winid, pos, size, style, name);
  26. }
  27. #if WXWIN_COMPATIBILITY_2_8
  28. wxDEPRECATED_CONSTRUCTOR(
  29. wxPanel(wxWindow *parent,
  30. int x, int y, int width, int height,
  31. long style = wxTAB_TRAVERSAL | wxNO_BORDER,
  32. const wxString& name = wxPanelNameStr)
  33. {
  34. Create(parent, wxID_ANY, wxPoint(x, y), wxSize(width, height), style, name);
  35. }
  36. )
  37. #endif // WXWIN_COMPATIBILITY_2_8
  38. private:
  39. wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
  40. };
  41. #endif // _WX_GENERIC_PANELG_H_