// Purpose: Define some custom wxComboCtrls
// Author: Utensil Candel (UtensilCandel@@gmail.com)
// RCS-ID: $Id$
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef WX_CUSTOM_COMBO_H
#define WX_CUSTOM_COMBO_H
// ----------------------------------------------------------------------------
-// class wxPenStyleComboBox
+// class PenStyleComboBox
// This class is a modified version of the one from samples/combo.cpp
// ----------------------------------------------------------------------------
#include <wx/odcombo.h>
-class wxPenStyleComboBox : public wxOwnerDrawnComboBox
+class PenStyleComboBox : public wxOwnerDrawnComboBox
{
public:
virtual void OnDrawItem( wxDC& dc,
virtual wxCoord OnMeasureItemWidth( size_t WXUNUSED(item) ) const;
- static wxPenStyleComboBox* CreateSample(wxWindow* parent);
+ static PenStyleComboBox* CreateSample(wxWindow* parent);
};
wxLC_LIST|wxLC_VRULES|wxBORDER_THEME);
}
- virtual wxWindow *GetControl() { return this; }
+ virtual wxWindow *GetControl()
+ { return this; }
virtual void SetStringValue( const wxString& s )
{
}
protected:
- int m_value; // current item index
- int m_itemHere; // hot item in popup
+ int m_value; // current item index
+ int m_itemHere; // hot item in popup
private:
DECLARE_EVENT_TABLE()
return wxSize(minWidth, wxMin(80, maxHeight));
}
- virtual wxWindow *GetControl() { return this; }
+ virtual wxWindow *GetControl()
+ { return this; }
// Needed by SetStringValue
wxTreeItemId FindItemByText( wxTreeItemId parent, const wxString& text )
}
protected:
-
- wxTreeItemId m_value; // current item index
- wxTreeItemId m_itemHere; // hot item in popup
+ wxTreeItemId m_value; // current item index
+ wxTreeItemId m_itemHere; // hot item in popup
private:
DECLARE_EVENT_TABLE()