\class {menu} \name {tool_violaTOC} \script { switch (arg[0]) { case "buttonRelease": send(parent(), "go_home"); break; case "freeSelf": bell(); break; case "visible":/* temporary */ set("visible", arg[1]); return; break; } usual(); } \menuConfig { .{Following links} {send("www", "show", "#links");} .{Going Home} {send("www", "show", "#home");} .{Bookmarks} {send("www", "show", "#bookmarks");} .{History} {send("www", "show", "#history");} .{Tearout} {send("www", "show", "#tearout");} .{Keyword Search} {send("www", "show", "#search");} .{Printing} {send("www", "show", "#printing");} .{Source viewing} {send("www", "show", "#source");} .{\\} .{Demo} {send("www", "show", "violaWWWDemo.html");} .{\\} .{Dismiss this menu} {send(parent(), "removeTool", self()); freeSelf();} } \label {Viola TOC} \BDColor {white} \BGColor {grey45} \FGColor {white} \font {normal} \width {150} \maxWidth {150} \height {30} \gapH {2} \gapV {2} \