11 : TGTransientFrame(p,
main, w, h, options)
13 SetCleanup(kDeepCleanup);
15 auto* vframe =
new TGVerticalFrame(
this, 500, 200);
17 auto* listv =
new TGListView(vframe, 500, 200);
18 auto* listc =
new TGLVContainer(listv->GetViewPort(), 500, 200, kHorizontalFrame, fgWhitePixel);
19 listv->SetContainer(listc);
20 listv->GetViewPort()->SetBackgroundColor(fgWhitePixel);
21 listv->SetViewMode(kLVList);
23 vframe->AddFrame(listv,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
25 auto* hframe =
new TGHorizontalFrame(vframe, 500, 20);
26 auto* b1 =
new TGTextButton(hframe,
"&button1");
27 auto* b2 =
new TGTextButton(hframe,
"&button2");
28 b1->Connect(
"Clicked()",
"GPopup",
this,
"Print()");
29 b2->Connect(
"Clicked()",
"GPopup",
this,
"Print()");
31 hframe->AddFrame(b1,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
32 hframe->AddFrame(b2,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));
34 vframe->AddFrame(hframe,
new TGLayoutHints(kLHintsExpandX));
36 AddFrame(vframe,
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY));