wxCamVListBoxComboPopup Class Reference

#include <dropdown.h>

Inheritance diagram for wxCamVListBoxComboPopup:

wxVListBoxComboPopup wxComboPopup wxCamBitmapDropdownPopup List of all members.

Public Member Functions

 wxCamVListBoxComboPopup (DropDown *pDropDown=NULL)
 ~wxCamVListBoxComboPopup ()
virtual void OnDrawItem (wxDC &dc, const wxRect &rect, intitem, intflags) const
virtual wxCoord OnMeasureItem (size_t item) const
virtual wxCoord OnMeasureItemWidth (size_t item) const

Protected Attributes

DropDownm_pDropDown

Friends

class DropDown

Detailed Description

Definition at line 113 of file dropdown.h.


Constructor & Destructor Documentation

wxCamVListBoxComboPopup::wxCamVListBoxComboPopup DropDown pDropDown = NULL  ) 
 

Definition at line 134 of file dropdown.cpp.

00134                                                                      :
00135     wxVListBoxComboPopup(),
00136     m_pDropDown(pDropDown)
00137 {
00138 } 

wxCamVListBoxComboPopup::~wxCamVListBoxComboPopup  ) 
 

Definition at line 140 of file dropdown.cpp.

00141 {
00142 }


Member Function Documentation

void wxCamVListBoxComboPopup::OnDrawItem wxDC &  dc,
const wxRect &  rect,
intitem  ,
intflags 
const [virtual]
 

Reimplemented from wxVListBoxComboPopup.

Definition at line 144 of file dropdown.cpp.

00144                                                                                    : CORRECT*/ item, int /*TYPENOTE: CORRECT*/ flags) const
00145 {
00146     dc.SetFont( m_useFont );
00147     if (m_pDropDown)
00148         m_pDropDown->HandleDrawItemInternal(dc, rect, item, flags, TRUE);
00149 }

wxCoord wxCamVListBoxComboPopup::OnMeasureItem size_t  item  )  const [virtual]
 

Reimplemented from wxVListBoxComboPopup.

Definition at line 151 of file dropdown.cpp.

00152 {
00153     wxScreenDC dc;
00154     dc.SetFont( m_useFont );
00155     if (m_pDropDown)
00156         return m_pDropDown->HandleDrawItemInternal(dc, wxRect(-1, -1, -1, -1), item, 0, FALSE).GetHeight();
00157     else
00158         return 24;
00159 }

wxCoord wxCamVListBoxComboPopup::OnMeasureItemWidth size_t  item  )  const [virtual]
 

Reimplemented from wxVListBoxComboPopup.

Definition at line 161 of file dropdown.cpp.

00162 {
00163     wxScreenDC dc;
00164     dc.SetFont( m_useFont );
00165     if (m_pDropDown)
00166         return m_pDropDown->HandleDrawItemInternal(dc, wxRect(-1, -1, -1, -1), item, 0, FALSE).GetWidth();
00167     else
00168         return -1; // default - will be measured from text width
00169 }


Friends And Related Function Documentation

friend class DropDown [friend]
 

Definition at line 115 of file dropdown.h.


Member Data Documentation

DropDown* wxCamVListBoxComboPopup::m_pDropDown [protected]
 

Definition at line 125 of file dropdown.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 04:03:16 2007 for Camelot by  doxygen 1.4.4