|
TAGraphic |
Creates a graphic control
| Align | Design only property, does not generate code, helps with aligning controls while editing. alBottom - control moves to bottom of client area, resizes to width of client area x original height alClient - control occupies the whole of the client area alCustom - not used alLeft - control moves to left edge of client area, resizes to original width x height of client area alNone - no aligning alRight - control moves to right edge of client area, resizes to original width x height of client area alTop - control moves to top of client area, resizes to width of client area x original height |
| BgColor | Background color of control. Choose from the list, or enter your own. Format is 0xnumber where number is 6 hexadecimal digits: 2 for blue, 2 for green and 2 for red |
| Color | Foreground color |
| ContextMenu | Specifies context menu to attach to control. Create the ContextMenu first |
| Cursor | Cursor shape to display when mouse is over this control |
| Enabled | False generates GUICtrlSetState(-1, $GUI_DISABLE) |
| Left,Top | Position of control relative to its parent |
| Width,Height | Size of control in pixels |
| Hint | Text that appears when cursor hovers over control. Generates call to GUICtrlSetTip |
| Items | Shapes that form the graphic. Double-click to right to open Graphic Editor. |
| Name | Name of control and of the variable that is assigned its control ID in generated code. If not specified, no variable is generated |
| OnClick | Generates (in Message Loop mode) a |
| Resizing | Click on + to expand resize modes: DocAuto - resize and reposition according to new window size DocRight - Do not move right side DocLeft - Do not move left side DocTop - Do not move top DocBottom - Do not move bottom DocHCenter - Horizontal center remains fixed DocVCenter - Vertical center remains fixed DocWidth - Width does not change DocHeight - Height does not change |
| TabOrder | Sequence in which controls are selected with the Tab and Shift+Tab keys. For a Form and for each Group, TabOrder starts with 0. You may prefer to use the TabOrder Visual Editor: press Ctrl+T to open it. |
| Visible | If False, generates GUICtrlSetState(-1, $GUI_HIDE) |
| SS_BLACKRECT | Rectangle filled with current window frame color (default: black) |
| SS_GRAYRECT | Rectangle filled with current screen background color (default: gray) |
| SS_WHITERECT | Rectangle filled with current window background color (default: white) |
| SS_BLACKFRAME | Box with frame drawn in same color as window frame (default: black) |
| SS_GRAYFRAME | Box with frame drawn in same color as screen background (desktop) (default: gray) |
| SS_WHITEFRAME | Bbox with frame drawn with same color as window background (default: white) |
| SS_ETCHEDHORZ | Top and bottom edges have EDGE_ETCHED style |
| SS_ETCHEDVERT | Left and right edges have EDGE_ETCHED style |
| SS_ETCHEDFRAME | Frame has EDGE_ETCHED style |
| SS_NOTIFY | When user clicks on control, sends STN_CLICKED notification to form |
| SS_CENTERIMAGE | Center an image; center single-line text vertically |
| SS_RIGHTJUST | Lower right corner of an image remains fixed when control is resized |
| SS_SUNKEN | Half-sunken border |
| WS_TABSTOP | Control can be selected with Tab and Shift+Tab |
| WS_HSCROLL | Control has horizontal scroll bar |
| WS_VSCROLL | Control has vertical scroll bar |
| WS_VISIBLE | Control is visible |
| WS_BORDER | Control has a thin-line border |
| WS_CLIPSIBLINGS | If this control overlaps with another, this control shows partially |
None
To add text, call ControlSetText.
None