#include #include #include #include #include World* w; class T : public Tray { public: void Reconfig(); }; void T::Reconfig() { Tray::Reconfig(); } T* t1, *t2; class B : public PushButton { void Press(); }; void B::Press() { printf("Press\n"); /* t1->Iconify(); t1->Iconify(); t1->Reconfig(); t1->DeIconify(); t1->Draw(); */ w->Remove(t1); w->InsertApplication(t1,100,100); } main () { w = new World(); t1 = new T( new HBox(new Message("aaaaaaaaaaaaaaaaaa")) ); t2 = new T( new HBox(new Message("bbbbbbbbbbbbbbbbbb")) ); w->InsertApplication(t1,100,100); w->InsertApplication(t2,110,110); w->InsertApplication(new B("Press", new ButtonState(1), 0)); w->Run(); }