Ignore:
Timestamp:
09/26/01 12:22:51 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc

    r749 r947  
    3434};
    3535
    36 MMonteCarlo::MMonteCarlo(const TGWindow *main, const TGWindow *p, 
    37                                    const UInt_t w, const UInt_t h )
    38     : MBrowser(p, main, w, h)
     36MMonteCarlo::MMonteCarlo(const TGWindow *main, const TGWindow *p,
     37                         const UInt_t w, const UInt_t h)
     38: MBrowser(main, p, w, h)
    3939{
     40    TGTextButton *action = new TGTextButton(fTop1, "ACTION", M_BUTTON_ACTION);
     41    fList->Add(action);
     42    action->Associate(this);
    4043
    41     fButAction = new TGTextButton(fTop1, "ACTION", M_BUTTON_ACTION );
    42     fButAction->Associate(this) ;
    43     fTop1->AddFrame (fButAction, new TGLayoutHints(kLHintsTop | kLHintsLeft, 10, 10, 5, 5) );
     44    TGLayoutHints *laybut = new TGLayoutHints(kLHintsTop|kLHintsLeft, 10, 10, 5, 5);
     45    fList->Add(laybut);
     46
     47    fTop1->AddFrame(action, laybut);
    4448
    4549    MapSubwindows();
     
    5256    MapWindow();
    5357}
    54 
    55 MMonteCarlo::~MMonteCarlo()
    56 {
    57     delete fButAction;
    58 }
    5958
    6059// ======================================================================
Note: See TracChangeset for help on using the changeset viewer.