d.font ¬ ImagerFont.Scale[ImagerFont.Find["xerox/pressfonts/helvetica-mrr"], 16.0];
d.controls ¬
LIST[
Controls.NewControl["no detents", dial, d,, 360.0, 90.0],
Controls.NewControl["1 detent", dial, d,, 360.0, 60.0,,,,,,,,,,, LIST[[180.0]]],
Controls.NewControl["2 detents", dial, d,, 360.0,,,,,,,,,,,, LIST[[45], [290]]],
Controls.NewControl["Lin", vSlider, d,, 1.0, 0.3,,,,,,,,,,, LIST[[0.6]]],
Controls.NewControl["Log", vSlider, d,, 1.0, 0.3,,,,,,,,,,,, log],
Controls.NewControl["Exp", vSlider, d,, 1.0,,,,,,,,,,,,, exp],
Controls.NewControl["Horiz", hSlider, d,, 1.0, 0.5,,,,,,, 60],
Controls.NewControl["Side", hSlider, d,, 1.0, 0.5,,,,,,, 60,, [left, center, TRUE]],
Controls.NewControl[name: "Function", type: function, w: 180, min: 0.0, max: 1., row: 1],
Controls.NewControl[name: "Contour", type: contour, w: 180],
Controls.NewControl[name: "Sketch", type: sketch, w: 180]];
d.outer ¬ Controls.OuterViewer[
name: "Controls Examples",
controls: d.controls,
buttons:
LIST[
Controls.PopUpButton["PopUp", PopUp, LIST[[$OneOn, "Turn this off"], [$Two]],,, d],
Controls.ClickButton["Trapping: on", ToggleMouseTrap, d],
Controls.ClickButton["Toggle", ToggleButton, d],
Controls.ClickButton["State 0", StateButton, d],
Controls.ClickButton["Text", TextButton, d],
Controls.TextButton["Msg1: ", "??", Msg1Button, d],
Controls.TextButton["Msg2: ", "??", Msg2Button, d],
Controls.ClickButton["Add Control", NewControlButton, d],
Controls.ClickButton["Reset Sliders and Dials", ClearButton, d,,,,,,, TRUE]],
typescriptHeight: 18,
biScrollable: TRUE,
graphicsHeight: 200,
mouseProc: MouseProc,
drawProc: DrawProc,
clientData: d
].parent;