====== Graphic ====== {{page>commctrl}} {{page>commstyle}} {|class="cboxtable" |- |class="cboxcell1"|{{ control_graphic.gif |}} |class="cboxcell2"|**TAGraphic** |} Creates a graphic control #remarks_header[Properties:]# |**Align**|{{KODA>VAR>Align}} | |**BgColor**|{{KODA>VAR>Color}} | |**Color**|{{KODA>VAR>Color_Fore}} | |**ContextMenu**|{{KODA>VAR>ContextMenu}} | |**Cursor**|{{KODA>VAR>Cursor}} | |**Enabled**|False generates GUICtrlSetState(-1, $GUI_DISABLE) | |**Left,Top**|{{KODA>VAR>Left,Top}} | |**Width,Height**|{{KODA>VAR>Width,Height}} | |**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 [[proped_graphic_editor]].| |**Name**|{{KODA>VAR>Name}} | |**OnClick**|{{KODA>VAR>StdEvent}} | |**Resizing**|{{KODA>VAR>Resizing}} | |**TabOrder**|Sequence in which controls are selected with the Tab and S-Tab keys. For a Form and for each Group, TabOrder starts with 0. You may prefer to use the [[dialog_tab_order_editor|TabOrder Visual Editor]]: press C-t to open it. | |**Visible**|If False, generates GUICtrlSetState(-1, $GUI_HIDE) | #remarks_header[Styles:]# |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 S-Tab | |WS_HSCROLL|{{KODA>VAR>WS_HSCROLL}} | |WS_VSCROLL|{{KODA>VAR>WS_VSCROLL}} | |WS_VISIBLE|{{KODA>VAR>WS_VISIBLE}} | |WS_BORDER|{{KODA>VAR>WS_BORDER}} | |WS_CLIPSIBLINGS|{{KODA>VAR>WS_CLIPSIBLINGS}} | #remarks_header[Extra Styles:]# None #remarks_header[Remarks:]# To add text, call ControlSetText. #remarks_header[Related:]# None