Hi Fons, Fons Rademakers writes: > > have a look at guitest.C to, e.g. EntryTestDlg::EntryTestDlg, at: > > fExitButton = new TGTextButton(fF2, " Close ", 1); > fExitButton->Connect("Clicked()", "EntryTestDlg", this, "DoOK()"); > > in DoOK() we do: > > void EntryTestDlg::DoOK() { fMain->SendCloseMessage(); } Okay, thanks, this helps a little. A test with simple TGMainFrame holding just a TGButton works, however, I am getting BadDrawable when I close my entire display this way. I think it is due to the TGMainFrame not being told to be deleted. Is it correct that I must attach a method to the "CloseWindow()" signal which then does the deletion? -Brett.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:03 MET