#include <TGComboBox.h>
Inheritance diagram for TGComboBoxPopup:
Public Member Functions | |
TGComboBoxPopup (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kVerticalFrame, Pixel_t back=GetWhitePixel()) | |
virtual Bool_t | HandleButton (Event_t *) |
void | SetListBox (TGListBox *lb) |
void | PlacePopup (Int_t x, Int_t y, UInt_t w, UInt_t h) |
void | EndPopup () |
TGComboBoxPopup (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kVerticalFrame, Pixel_t back=GetWhitePixel()) | |
virtual Bool_t | HandleButton (Event_t *) |
void | SetListBox (TGListBox *lb) |
void | PlacePopup (Int_t x, Int_t y, UInt_t w, UInt_t h) |
void | EndPopup () |
Protected Attributes | |
TGListBox * | fListBox |
TGLBEntry * | fSelected |
TGListBox * | fListBox |
TGLBEntry * | fSelected |
Definition at line 43 of file TGComboBox.h.
TGComboBoxPopup::TGComboBoxPopup | ( | const TGWindow * | p = 0 , |
|
UInt_t | w = 1 , |
|||
UInt_t | h = 1 , |
|||
UInt_t | options = kVerticalFrame , |
|||
Pixel_t | back = GetWhitePixel() | |||
) |
TGComboBoxPopup::TGComboBoxPopup | ( | const TGWindow * | p = 0 , |
|
UInt_t | w = 1 , |
|||
UInt_t | h = 1 , |
|||
UInt_t | options = kVerticalFrame , |
|||
Pixel_t | back = GetWhitePixel() | |||
) |
Reimplemented from TGCompositeFrame.
Definition at line 82 of file TGComboBox.cxx.
References EndPopup(), TGLBEntry::EntryId(), Event_t::fCode, fListBox, fSelected, Event_t::fType, TGListBox::GetSelectedEntry(), kButton1, kButtonPress, kTRUE, and TGListBox::Select().
void TGComboBoxPopup::SetListBox | ( | TGListBox * | lb | ) | [inline] |
Definition at line 110 of file TGComboBox.cxx.
References EndPopup(), TGObject::fClient, TGFrameElement::fFrame, TGFrame::fHeight, TGObject::fId, TList::First(), TGCompositeFrame::fList, fListBox, TGWindow::fParent, fSelected, TGFrame::fWidth, TGResourcePool::GetGrabCursor(), TGObject::GetId(), TGClient::GetResourcePool(), TGListBox::GetSelectedEntry(), gVirtualX, TGClient::IsEditable(), kButtonPressMask, kButtonReleaseMask, kNone, kPointerMotionMask, TGCompositeFrame::Layout(), TGFrame::MapRaised(), TGCompositeFrame::MapSubwindows(), TGFrame::MoveResize(), TGClient::RegisterPopup(), and TGClient::WaitForUnmap().
Referenced by TGComboBox::HandleButton().
void TGComboBoxPopup::EndPopup | ( | ) |
Definition at line 99 of file TGComboBox.cxx.
References gVirtualX, TGWindow::IsMapped(), kFALSE, and TGFrame::UnmapWindow().
Referenced by HandleButton(), PlacePopup(), TGComboBox::ProcessMessage(), and TGComboBox::~TGComboBox().
Reimplemented from TGCompositeFrame.
void TGComboBoxPopup::SetListBox | ( | TGListBox * | lb | ) | [inline] |
void TGComboBoxPopup::EndPopup | ( | ) |
TGListBox* TGComboBoxPopup::fListBox [protected] |
Definition at line 45 of file TGComboBox.h.
Referenced by HandleButton(), PlacePopup(), and SetListBox().
TGLBEntry* TGComboBoxPopup::fSelected [protected] |
TGListBox* TGComboBoxPopup::fListBox [protected] |
Definition at line 45 of file TGComboBox.h.
TGLBEntry* TGComboBoxPopup::fSelected [protected] |
Definition at line 46 of file TGComboBox.h.