-- CreateButtonDoc.tioga -- last edited by: L. Stewart, December 16, 1983 2:33 pm name CreateButton: <> <> <> <> <> <> <<>> $CurrentSelection$ => replaced by the current selection up to but not including the first carriage return $FileNameSelection$ => replaced by the current selection if it appears to be a file name, otherwise replaced by the name of the selected viewer $SelectedViewerName$ => replaced by the name of the selected viewer $ViewerPosition$ => replaced by the position of the current selection in a viewer $MouseButton$ => "left", "middle", or "right" $ShiftKey$ => "shift", "noShift" $ControlKey$ "control", "noControl" The idea is that one writes an ordinary command line CommandProc to do some job, then use CreateButton to hook up a button to it. <> <<% CreateButton Test // CurrentSelection = $CurrentSelection$, FileNameSelection = $FileNameSelection$, SelectedViewerName = $SelectedViewerName$, ViewerPosition = $ViewerPosition$, MouseButton = $MouseButton$, ShiftKey = $ShiftKey$, ControlKey = $ControlKey$ % -- Select something like "Atom" in the viewer CommandsCImpl.mesa and click control shift middle % // CurrentSelection = Atom, FileNameSelection = Atom, SelectedViewerName = []<>ct>commandscimpl.mesa, ViewerPosition = 12, MouseButton = middle, ShiftKey = shift, ControlKey = control % >> <> <> <> <> <> <> <> <>> <> <<help button info man>> <> <<to be supplied by the Index Czar>>