26 ClassImp(TRootHelpDialog);
31 TRootHelpDialog::TRootHelpDialog(
const TGWindow *main,
32 const char *title, UInt_t w, UInt_t h) :
33 TGTransientFrame(gClient->GetRoot(), main, w, h)
35 fView =
new TGTextView(
this, w, h, kSunkenFrame | kDoubleBorder);
36 fL1 =
new TGLayoutHints(kLHintsExpandX | kLHintsExpandY, 3, 3, 3, 3);
39 fOK =
new TGTextButton(
this,
" &OK ");
40 fL2 =
new TGLayoutHints(kLHintsBottom | kLHintsCenterX, 0, 0, 5, 5);
48 Resize(GetDefaultSize());
57 TRootHelpDialog::~TRootHelpDialog()
68 void TRootHelpDialog::Popup()
76 void TRootHelpDialog::SetText(
const char *helpText)
78 fView->LoadBuffer(helpText);
84 void TRootHelpDialog::AddText(
const char *helpText)
87 tt.LoadBuffer(helpText);
94 void TRootHelpDialog::CloseWindow()
102 Bool_t TRootHelpDialog::ProcessMessage(Long_t msg, Long_t, Long_t)
104 switch (GET_MSG(msg)) {
106 switch (GET_SUBMSG(msg)) {