142 TGDockableFrame *MenuDock =
new TGDockableFrame(workframe);
146 fMenuFile =
new TGPopupMenu(gClient->GetRoot());
147 fMenuFile->AddEntry(
"Open...", M_FILE_OPEN);
148 fMenuFile->AddEntry(
"Save picture...", M_FILE_SAVE_PICTURE);
150 fMenuFile->AddEntry(
"Exit", M_FILE_EXIT);
151 fMenuFile->DisableEntry(M_FILE_SAVE_PICTURE);
154 workframe->AddFrame(MenuDock,
new TGLayoutHints(kLHintsTop | kLHintsExpandX,
157 TGMenuBar *MenuBar =
new TGMenuBar(MenuDock, 1, 1, kHorizontalFrame);
158 MenuBar->AddPopup(
"File",
fMenuFile,
new TGLayoutHints(kLHintsTop | kLHintsLeft, 0, 4, 0, 0));
159 MenuDock->AddFrame(MenuBar,
new TGLayoutHints(kLHintsTop | kLHintsExpandX));
164 fToolBar =
new TGToolBar(workframe, 60, 20, kHorizontalFrame | kRaisedFrame);
166 TString iconname = (TString)getenv(
"FEDRA_ROOT") +
177 fToolBar->GetButton(M_FILE_SAVE_PICTURE)->SetState(kButtonDisabled);
182 workframe->AddFrame(
fToolBar,
new TGLayoutHints(kLHintsTop | kLHintsExpandX, 0, 0, 0, 0));