8 #include "KVDropDownDialog.h"
40 fMain->CenterOnParent();
41 fMain->Connect(
"CloseWindow()",
"KVDropDownDialog",
this,
"DoClose()");
42 fMain->DontCallClose();
63 while (! choix.
End()) {
65 if (this_choice == default_choice) default_id = entry_id;
66 fDropDown->AddEntry(this_choice.
Data(), entry_id++);
68 fDropDown->
Resize(260, 22);
69 fMain->AddFrame(fDropDown,
73 fDropDown->Select(default_id);
75 fMain->SetWindowName(
"KVDropDownDialog");
76 fMain->SetIconName(
"KVDropDownDialog");
89 height = fOKBut->GetDefaultHeight();
92 fOKBut->Connect(
"Clicked()",
"KVDropDownDialog",
this,
"ReadAnswer()");
93 fOKBut->Connect(
"Clicked()",
"KVDropDownDialog",
this,
"DoClose()");
97 height = fCancelBut->GetDefaultHeight();
100 fCancelBut->Connect(
"Clicked()",
"KVDropDownDialog",
this,
"DoClose()");
106 fMain->AddFrame(hf, l1);
112 fMain->MapSubwindows();
114 width = fMain->GetDefaultWidth();
115 height = fMain->GetDefaultHeight();
120 fMain->CenterOnParent();
131 fMain->CenterOnParent();
143 KVDropDownDialog::~KVDropDownDialog()
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Ask user to choose between several options in a drop-down list.
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
void Begin(TString delim) const
KVString Next(Bool_t strip_whitespace=kFALSE) const
virtual TGLBEntry * GetSelectedEntry() const
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
virtual void Resize(TGDimension size)
virtual const char * GetTitle() const
const char * Data() const
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
int main(int argc, char **argv)
Double_t Max(Double_t a, Double_t b)