<<>> <> <> <> <> Introduction Many of the text strings in this document act as buttons when the document is activated. To activate a document, make sure that the ButtonApplications package has been installed (type "Require PCedar ButtonApplications ButtonApplications" to install it). Open a fresh viewer on the document. A button should appear at the top of the Tioga viewer that looks like:  Left-clicking this button activates the document. Right-clicking the button deactivates the document. There are two alternative ways to activate a document. In Tioga, CTRL-L (for Lively) activates and CTRL-SHIFT-L deactivates. Also, the Activity button below activates and deactivates the window that has the current input focus. You can copy buttons from this document to make control panels of your own. Also, the section on "Buttonizers" will help you turn Tioga and Gargoyle objects into buttons. To edit a button, use the EditProperties mechanism in Tioga as follows: Select the node that contains the button that you would like to change. Type CTRL-U. Edit the ButtonData node property. Select the expanded nodes and type CTRL-SHIFT-U. Try out the new button. If you don't want to worry about accidentally pushing the button during this process, deactivate the document before editing it and re-activate it later. You cannot currently edit the text of a button in place if you want the new text to be part of the button. You must expand the node with CTRL-U, edit the Text: line, select the expanded nodes and click CTRL-SHIFT-U. This problem will go away when Tioga has caret properties that work like caret looks. Alternatively, if the button was made by a buttonizer, just type the new text in place and apply the buttonizer a second time. Patience. The first named multi-state button or radio button that you click in a document may take a while to work. EmbeddedButtons is searching through the document to see if any other buttons have the same name. Subsequent clicks will go faster. ButtonExamples This section contains a small number of examples of each of the four button types. Try them out. Remember to hold down the mouse on the pop-up buttons if you want to see the pop-up menu. The two-state and multi-state buttons change font to show their state. Only one of the radio buttons should be on at a time. Guarded Buttons This is a guarded button. Click on it twice, with a pause in between to get it to perform its action: Clear Pop Up Buttons Here's a pop up button with 3 entries: A button. Here's a pop up button with 6 entries: A button. Multiple State Buttons Here's a two state button: A TwoStateButton. This button cycles through plain, bold, and large: An EnumeratedTypeButton. This button cycles through three different text values (note that looks are unaffected). Be patient after clickingthis button has a name (TropicalFruit). Papaya These two buttons change their value in synchrony (because they have the same Name: field): Guava Guava These two buttons are real-valued. Left-clicking doubles the value. Right-clicking halves it. (Thickness 8.0) Press to Change Bounding Box Pop-Up State Buttons These buttons combine the features of pop-up and multi-state buttons. If a button has no "Menu:" description, a menu is constructed automatically from the values, as is done for this button: bah based on an enumerated type, and this button 100.0 based on type REAL. If a menu is provided, this menu is displayed. However, when the button is not linked to an application, left and middle mouse clicks cause the value to increase, right clicks cause the value to decrease, regardless of what the button will do once linked. For example: 14 Radio Buttons Only one of these buttons will be on at once. This works because these buttons have the same name. Grapefruit . . . Banana . . . Apple <