12 #ifndef ROOT_TGComboBox 13 #define ROOT_TGComboBox 120 virtual void RemoveEntry(
Int_t id = -1);
124 virtual void EnableTextInput(
Bool_t on);
132 virtual TGLBEntry *FindEntry(
const char *
s)
const;
143 virtual void Selected(
Int_t widgetId,
Int_t id);
145 virtual void Selected(
const char *txt) {
Emit(
"Selected(char*)", txt); }
146 virtual void ReturnPressed();
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual TGTextEntry * GetTextEntry() const
virtual void AddEntry(TGLBEntry *lbe, TGLayoutHints *lhints)
virtual void AddEntry(TGString *s, Int_t id)
Add entry with specified string and id to listbox.
virtual void NewEntry(const char *s="Entry")
virtual void AddEntry(const char *s, Int_t id)
TGScrollBarElement * fDDButton
virtual Bool_t HandleDoubleClick(Event_t *)
virtual Bool_t IsEnabled() const
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual void DrawBorder()
Draw frame border.
virtual void InsertEntry(TGString *s, Int_t id, Int_t afterID)
virtual void RemoveAll()
Remove all frames from composite frame.
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
Remove a range of entries defined by from_ID and to_ID.
virtual void Layout()
Layout the elements of the composite frame.
TGComboBoxPopup * fComboFrame
virtual void InsertEntry(TGString *s, Int_t id, Int_t afterID)
Insert entry with specified string and id behind the entry with afterID.
#define ClassDef(name, id)
void Init(TClassEdit::TInterpreterLookupHelper *helper)
virtual Bool_t IsTextInputEnabled() const
virtual Bool_t HandleSelectionRequest(Event_t *)
virtual void SortByName(Bool_t ascend=kTRUE)
Sort entries by name.
virtual void SortByName(Bool_t ascend=kTRUE)
virtual void InsertEntry(TGLBEntry *lbe, TGLayoutHints *lhints, Int_t afterID)
virtual TGLBEntry * GetSelectedEntry() const
virtual TGListBox * GetListBox() const
virtual void InsertEntry(const char *s, Int_t id, Int_t afterID)
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
virtual Int_t GetNumberOfEntries() const
virtual Bool_t HandleMotion(Event_t *)
virtual void AddEntry(TGString *s, Int_t id)
virtual void Selected(const char *txt)
static constexpr double s
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
virtual void NewEntry(const char *s="Entry")
method used to add entry via context menu
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a composite frame widget as a C++ statement(s) on output stream out.
virtual Int_t GetNumberOfEntries() const
virtual Int_t GetSelected() const
virtual Int_t GetSelected() const
Return id of selected listbox item.
virtual void Selected(Int_t id)
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
virtual void RemoveEntries(Int_t from_ID, Int_t to_ID)
virtual Bool_t HandleSelection(Event_t *)
virtual TGLBEntry * GetSelectedEntry() const