### Button Object

The Button object inserts a button control into a form. You can choose the action the form will take when the button is clicked by modifying the ButtonType property.

Along with the ability to resize the object, change colors, and change other attributes, you can further customize button objects by using these properties:

Property | Description
Default | This determines how buttons will respond when you press the ENTER key. YES - The button responds to a pressed ENTER key even if another button has the focus. NO - If ENTER is pressed only the button that has the focus will respond.
ButtonShape | This determines the look of the button. Options include: 0- Normal: changes shape to a standard button. 1- Property tab Inactive: changes shape to an unselected property sheet tab. 2- Property tab Active: changes shape to a selected property sheet tab.
Text | This determines the text that appears on the button.
Bitmap | This places a bitmap of your choice on top of the button face. It uses the same dialog box and properties as described in the "Bitmap Object".
Layout | This determines the position of the bitmap or text on the button's face. The values include: 0- Center 1- Left 2- Right 3- Top

4- Bottom

ButtonType | This determines the action a button will take when it's clicked. 0- Cancel: closes the form and does nothing. 1- EventClick: executes a C++ or VBScript action. 2- Goto: goes to the Multi Document Interface (MDI ) associated file. 3- Help: invokes the WinHelp() function using the HelpContextID property to open the proper topic.

4- OK: records changes and closes the form.

5- Record: records changes and keeps the form open.

GotoPath | This determines the MDI associated file the form will go to when the button is clicked. This is mostly used to implement property sheet-like controls.