minifram.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/osx/minifram.h
  3. // Purpose: wxMiniFrame class. A small frame for e.g. floating toolbars.
  4. // If there is no equivalent on your platform, just make it a
  5. // normal frame.
  6. // Author: Stefan Csomor
  7. // Modified by:
  8. // Created: 1998-01-01
  9. // Copyright: (c) Stefan Csomor
  10. // Licence: wxWindows licence
  11. /////////////////////////////////////////////////////////////////////////////
  12. #ifndef _WX_MINIFRAM_H_
  13. #define _WX_MINIFRAM_H_
  14. #include "wx/frame.h"
  15. class WXDLLIMPEXP_CORE wxMiniFrame: public wxFrame {
  16. DECLARE_DYNAMIC_CLASS(wxMiniFrame)
  17. public:
  18. inline wxMiniFrame() {}
  19. inline wxMiniFrame(wxWindow *parent,
  20. wxWindowID id,
  21. const wxString& title,
  22. const wxPoint& pos = wxDefaultPosition,
  23. const wxSize& size = wxDefaultSize,
  24. long style = wxCAPTION | wxRESIZE_BORDER | wxTINY_CAPTION,
  25. const wxString& name = wxFrameNameStr)
  26. {
  27. // Use wxFrame constructor in absence of more specific code.
  28. Create(parent, id, title, pos, size, style | wxFRAME_TOOL_WINDOW | wxFRAME_FLOAT_ON_PARENT , name);
  29. }
  30. virtual ~wxMiniFrame() {}
  31. protected:
  32. };
  33. #endif
  34. // _WX_MINIFRAM_H_