wxComboPopupWindow Class Reference

List of all members.

Public Member Functions

 wxComboPopupWindow (wxComboCtrlBase *parent, int style=wxBORDER_NONE)
void OnKeyEvent (wxKeyEvent &event)
void OnMouseEvent (wxMouseEvent &event)
void OnActivate (wxActivateEvent &event)

Detailed Description

Definition at line 244 of file combo.cpp.


Constructor & Destructor Documentation

wxComboPopupWindow::wxComboPopupWindow wxComboCtrlBase parent,
int  style = wxBORDER_NONE
 

Definition at line 282 of file combo.cpp.

00285                                        : wxComboPopupWindowBase(parent,style)
00286 #else
00287                                        : wxComboPopupWindowBase(parent,
00288                                                                 wxID_ANY,
00289                                                                 wxEmptyString,
00290                                                                 wxPoint(-21,-21),
00291                                                                 wxSize(20,20),
00292                                                                 style)
00293 #endif
00294 {
00295 }


Member Function Documentation

void wxComboPopupWindow::OnActivate wxActivateEvent &  event  ) 
 

Definition at line 313 of file combo.cpp.

00314 {
00315     if ( !event.GetActive() )
00316     {
00317         // Tell combo control that we are dismissed.
00318         wxComboCtrl* combo = (wxComboCtrl*) GetParent();
00319         wxASSERT( combo );
00320         wxASSERT( combo->IsKindOf(CLASSINFO(wxComboCtrl)) );
00321 
00322         combo->HidePopup();
00323 
00324         event.Skip();
00325     }
00326 }

void wxComboPopupWindow::OnKeyEvent wxKeyEvent &  event  ) 
 

Definition at line 297 of file combo.cpp.

00298 {
00299     // Relay keyboard event to the main child controls
00300     // (just skipping may just cause the popup to close)
00301     wxWindowList children = GetChildren();
00302     wxWindowList::iterator node = children.begin();
00303     wxWindow* child = (wxWindow*)*node;
00304     child->AddPendingEvent(event);
00305 }

void wxComboPopupWindow::OnMouseEvent wxMouseEvent &  event  ) 
 

Definition at line 307 of file combo.cpp.

00308 {
00309     event.Skip();
00310 }


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