Button Tool
Note: This topic is for Document/Medical only.
The button annotation object is an image of a standard Windows button that can be activated. In design mode, click and drag to specify the size of the button in the current window. Holding down the Shift key while drawing the button will make the button annotation square. A dialog box then lets the user enter the text for the button. In run mode, clicking on the button triggers an AnnClicked event. The user can add code to process the event. (The example program merely pops up a message box.)
In design mode, click on the object with the right mouse button to do the following:
Undo the last user action.
Cut or copy the object to the clipboard.
Delete the object.
Select all objects.
Lock and unlock annotation objects. See Password Dialog Box for Annotations
Set and manage hyperlink properties for an object or group of objects. Note: The actual management of a hyperlink must be done through low-level implementation. Only the Menu Item "Hyperlink" and an associated event are provided through the automation object. For more information, refer to Implementing Annotation Hyperlinks.
Bring the object to the front or send it to the back.
Change the foreground color. See Color Dialog Box for Annotations.
Edit the text. See Text Dialog Box for Annotations.
Change certain aspects of the font.
Change the font selection and font characteristics. See Font Dialog Box for Annotations. Note: Only certain font characteristics can be changed for the button tool.
You cannot flip, reverse, or rotate a button. If you flip, reverse, or rotate a container that includes a button, the button will move to the new position, but will retain its orientation.
For low-level implementation details, refer to Button Annotation Object.