BUTTON Mnemonic - Create a Push Button Control
Syntax
'BUTTON'(id,x,y,w,h,title,flags)
Description
The 'BUTTON' mnemonic creates a push button control for creating standard OK, Cancel, and Exit buttons.
|
Parameter |
Description |
||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
id |
Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window. |
||||||||||||||
|
x |
Horizontal position of the upper-left corner of the control in current units. |
||||||||||||||
|
y |
Vertical position of the upper-left corner of the control in current units. |
||||||||||||||
|
w |
Width of the control in current units. |
||||||||||||||
|
h |
Height of the control in current units. |
||||||||||||||
|
title |
Title of the control. Typing an '&' before a character in the title makes the title an accelerator. In BBj, and Visual PRO/5 5.01 or higher, the title is either
ordinary text or BBj supports various image formats including .png and .gif, which supports transparency. Transparency allows the underlying button to display through the transparent areas of an image so the image looks correct regardless of the color of the button. Visual PRO/5 supports .bmp image formats and uses the standard Windows rules for displaying bitmaps with colors that match the background. Also, Visual PRO/5 uses a standard Windows API call to convert all pixels in the bitmap of these colors to the appropriate colors defined by the Windows color scheme:
|
||||||||||||||
|
flags |
Control flags, as follows:
|
||||||||||||||