OLE control properties are the primary means of interacting with OLE controls. Properties, much like OI control properties, describe the persistent attributes of the control, that is, attributes having some meaningful value for the entire life of the control. Like OI control properties, OLE control properties are manipulated using the Get_Property and Set_Property routines. The following properties apply to the SRP Button Control:
Property | Description | Version Introduced |
---|---|---|
BackVisible | Determines whether or not the button's background is drawn. | |
Background | The button's background. | |
ButtonType | Determines whether the OLE Button will behave as a standard push button or as a checkbox (aka toggle button). By default the control will act as a standard push button. When used as a checkbox you can specify whether it will have two or three states. | |
Cancel | Allows the OLE Button to become the Cancel Push Button for the current form so it will automatically respond whenever the end user presses the ESC key. | |
Caption | Determines the text caption that appears on the face of the OLE Button. | |
CaptionList | The list of captions to appear on the button's surface. | |
ContextMenu | The button's custom context menu. | |
Default | Allows the OLE Button to become the Default Push Button for the current form so it will automatically respond whenever the end user presses the Enter key. | |
Font | Sets the font attributes for the Caption text of the OLE Button. | |
Forecolor | The button's text color. | |
Handle | The button's window handle. | |
Icon | The image displayed on the button's face. | |
IconEffects | Conditions to determine which special effect to apply to the buttons' icon. | 3.0.7 |
IconList | The list of icons to appear on the button's surface. | |
IconSize | The fixed size of the button's icon. | 4.0.1 |
IconSizeToFit | The image displayed on the button's face. | |
ProgID | The control's ProgId/Class Name. | |
State | The button's state. | |
StatusBarText | The text to be displayed in a status bar. | |
Style | The button's visual style. | |
ToolTip | The text to appear in the button's tool tip popup. | |
TransparentColor | The color not to be drawn in the button's image. | |
Version | The control's version info. |