8 #include "KVDropDownDialog.h" 
   39    fMain->CenterOnParent();
 
   40    fMain->Connect(
"CloseWindow()", 
"KVDropDownDialog", 
this, 
"DoClose()");
 
   41    fMain->DontCallClose();      
 
   62    while (! choix.
End()) {
 
   64       if (this_choice == default_choice) default_id = entry_id;
 
   65       fDropDown->AddEntry(this_choice.
Data(), entry_id++);
 
   67    fDropDown->
Resize(260, 22);
 
   68    fMain->AddFrame(fDropDown,
 
   72    fDropDown->Select(default_id);
 
   74    fMain->SetWindowName(
"KVDropDownDialog");
 
   75    fMain->SetIconName(
"KVDropDownDialog");
 
   88    height = fOKBut->GetDefaultHeight();
 
   91    fOKBut->Connect(
"Clicked()", 
"KVDropDownDialog", 
this, 
"ReadAnswer()");
 
   92    fOKBut->Connect(
"Clicked()", 
"KVDropDownDialog", 
this, 
"DoClose()");
 
   96    height = fCancelBut->GetDefaultHeight();
 
   99    fCancelBut->Connect(
"Clicked()", 
"KVDropDownDialog", 
this, 
"DoClose()");
 
  105    fMain->AddFrame(hf, l1);
 
  111    fMain->MapSubwindows();
 
  113    width = fMain->GetDefaultWidth();
 
  114    height = fMain->GetDefaultHeight();
 
  119    fMain->CenterOnParent();
 
  130    fMain->CenterOnParent();
 
  142 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.
TString * fAnswer
the answer to the question
Bool_t * fOK
set to kTRUE if OK button is pressed
TGComboBox * fDropDown
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)