class toolbutton : public button {\fbox{toolbutton}
public: toolbutton(widget* w, char* name) : button(w,name) {(a)
text(name); handler(w,name); pack();(b)
} }; class toolbox : public frame {\fbox{toolbox}
public: toolbox(widget* w, tablet* t) : c(t), frame(w,"toolbox") {(c)
button* b1 = new toolbutton(this,"move"); button* b2 = new toolbutton(this,"box"); button* b3 = new toolbutton(this,"circle"); button* b4 = new toolbutton(this,"arrow"); } int operator()() {(d)
c->mode(argv[1]); return OK; } private: tablet* c; };