Description: | A CommandButton is a push button control displaying text and/or an image. It is depressed using the left mouse button, or can be activated by an assigned function key. | ||||||||||
Sample image: | |||||||||||
Details: | |||||||||||
Shortcut keys: | PowerCOBOL lets you assign function keys to CommandButtons as shortcut keys. Note: You need to be careful not to use function keys already assigned by the Windows system. That the focus does not move to the CommandButton when the shortcut key is used. | ||||||||||
Default Button | You can set a CommandButton to be the default button. The default button is the one that receives a Click event when you push the Enter key. For example, it is often helpful to make the OK button the default button. A CommandButton becomes the default button when one of the following is the case: - The Default property is True. - The CommandButton has the focus. Note: If the UnacceptableDefault property is True, you cannot change the Default property to True - so the CommandButton cannot become the default button. Refer to the descriptions of the Default property and the Click event for details. | ||||||||||
Cancel Button | You can set a CommandButton to be the cancel button. The cancel button is the one that receives a Click event when you push the Esc key. For example, it is usually helpful to make the CommandButton with the text "Cancel" the cancel button. Refer to the descriptions of the Cancel property and the Click event for details. | ||||||||||
Properties: | Array BackColor Cancel Caption ClassMajorVersion ClassMinorVersion ClassProgID ColorMap Container Default | DisabledImage- Type Enabled Font ForeColor Height Highlight HighlightColor ImageName Index | Layout Left Name Parent Printable RenderText Resource ScaleMode ScalingStyle TabGroup | TabIndex TabStop ToolTipText Top UnacceptableDefault UseSystemColor Visible Width | |||||||
Methods: | Move | Refresh | SetFocus | ZOrder | |||||||
Events: | Click GotFocus KeyDown | KeyPress KeyUp LostFocus | MouseDown MouseMove MouseUp | ||||||||
Class ProgID name: | Fujitsu.PcobCommandButton.4 | ||||||||||
Corresponding Control in PowerCOBOL V3.0 or earlier: | Push Button Item | Bitmap Button Item | Function Key Item |