wxCamBitmapDropdownPopup Class Reference

#include <bitmapdropdown.h>

Inheritance diagram for wxCamBitmapDropdownPopup:

wxCamVListBoxComboPopup wxVListBoxComboPopup wxComboPopup List of all members.

Public Member Functions

 wxCamBitmapDropdownPopup (DropDown *pDropDown=NULL)
virtual void PaintComboControl (wxDC &dc, const wxRect &rect)
virtual wxSize GetAdjustedSize (intminWidth, intprefHeight, INT32 maxHeight)

Detailed Description

Class : wxCamBitmapDropdownPopup Base Class : public wxCamVListBoxComboPopu Author : Mikhail Tatarnikov Description : Represents popup list for the bitmap control. Pure Virtual : No Known Issues : None Usage Notes : Required to specify size of the list - if the bitmap is smaller then the control width, the dropdown should be of the bitmap size. Also the "unselected" item should be painted separately. Override Notes: None

Definition at line 122 of file bitmapdropdown.h.


Constructor & Destructor Documentation

wxCamBitmapDropdownPopup::wxCamBitmapDropdownPopup DropDown pDropDown = NULL  )  [inline]
 

Definition at line 125 of file bitmapdropdown.h.

00125                                                         :
00126         wxCamVListBoxComboPopup(pDropDown)
00127     {
00128     } 
    


Member Function Documentation

virtual wxSize wxCamBitmapDropdownPopup::GetAdjustedSize intminWidth  ,
intprefHeight  ,
INT32  maxHeight
[virtual]
 

void wxCamBitmapDropdownPopup::PaintComboControl wxDC &  dc,
const wxRect &  rect
[virtual]
 

Function : wxCamBitmapDropdownPopup::PaintComboControl Author : Mikhail Tatarnikov Purpose : Paints the currently selected item into the control itself (not to the dropdown list) Returns : void Exceptions: Parameters: [in] wxDC& dc - context to draw to; [in] const wxRect& rect - the item size. Notes : The default behaivour is to leave the control blank if no item is selected.

Reimplemented from wxVListBoxComboPopup.

Definition at line 194 of file bitmapdropdown.cpp.

00195 {
00196     if (!(m_combo->GetWindowStyle() & wxODCB_STD_CONTROL_PAINT))
00197     {
00198 //      m_combo->DrawFocusBackground(dc,rect,0);
00199         
00200         // Draw the control regardless whether it has an item selected or not.
00201         OnDrawItem(dc, rect, m_value, wxODCB_PAINTING_CONTROL);
00202         
00203         return;
00204     }
00205 
00206     wxComboPopup::PaintComboControl(dc,rect);
00207 }


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