#include <test-die.h>
Public Member Functions | |
| MyFrame () | |
| ~MyFrame () | |
| void | CloseMe () |
Private Attributes | |
| TList * | fCleanup |
|
|
Definition at line 22 of file test-die.h. References fCleanup. 00022 : TGMainFrame(gClient->GetRoot(),1,1), fCleanup(0) { 00023 00024 fCleanup = new TList; 00025 00026 TGLayoutHints* loh = new TGLayoutHints(kLHintsExpandX|kLHintsExpandY); 00027 fCleanup->Add(loh); 00028 TGTextButton* b1 = new TGTextButton(this,"die"); 00029 fCleanup->Add(b1); 00030 this->AddFrame(b1,loh); 00031 b1->Connect("Clicked()","MyFrame",this,"SendCloseMessage()"); 00032 00033 this->Connect("CloseWindow()","MyFrame",this,"CloseMe()"); 00034 // this->Connect("CloseWindow()",0,0,"kill_kill_kill()"); 00035 00036 this->MapSubwindows(); 00037 this->Layout(); 00038 this->MapWindow(); 00039 this->Resize(100,200); 00040 } // ctor
|
|
|
Definition at line 41 of file test-die.h. References fCleanup. 00041 {
00042 cerr << "~MyFrame()\n";
00043 if (fCleanup) {
00044 fCleanup->Delete();
00045 delete fCleanup;
00046 }
00047 }
|
|
|
Definition at line 48 of file test-die.h. 00048 {
00049 cerr << "bye bye\n";
00050 delete this;
00051 }
|
|
|
Definition at line 19 of file test-die.h. Referenced by MyFrame(), and ~MyFrame(). |
1.3.9.1