]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/generic/buttonbar.h
centralized Esc key handling for closing the dialogs in wxDialogBase:
[wxWidgets.git] / include / wx / generic / buttonbar.h
index 96e83491a9c2e38030bf338567326283c18f2a0b..c0f319b5c90552236f0dbf6f649175271eadee2a 100644 (file)
@@ -93,6 +93,9 @@ protected:
     // paints a border
     void OnPaint(wxPaintEvent& event);
 
+    // detects mouse clicks outside buttons
+    void OnLeftUp(wxMouseEvent& event);
+
 private:
     // have we calculated the positions of our tools?
     bool m_needsLayout;
@@ -104,6 +107,12 @@ private:
     wxCoord m_maxWidth,
             m_maxHeight;
 
+    // the height of a label
+    int m_labelHeight;
+
+    // the space above the label
+    int m_labelMargin;
+
 private:
     DECLARE_DYNAMIC_CLASS(wxButtonToolBar)
     DECLARE_EVENT_TABLE()