User Tools

Site Tools


Sidebar

<< Back


koda:en:documentation:control_label

Label

{|class=“cboxtable”

class=“cboxcell1”
class=“cboxcell2”

Creates a static label

#remarks_header[Properties:]#

AlignDesign 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
AutoSizeWhen True, width of label automatically adjusts to width of text
CaptionText displayed on the control
ColorBackground 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
ContextMenuSpecifies html_wikilink('control_contextmenu','context menu') to attach to control. html_wikilink('create_menu','Create the ContextMenu') first
CursorCursor shape to display when mouse is over this control
EnabledFalse generates <color blue>GUICtrlSetState(-1, $GUI_DISABLE)</color>
FontDouble-click to the right to open the Font dialog. Click on + to show the Color, Name, Size and Style properties
Left,TopPosition of control relative to its parent
Width,HeightSize of control in pixels
HintText that appears when cursor hovers over control. Generates call to <color blue>GUICtrlSetTip</color>
HotKeyKeystroke that makes this control active
NameName of control and of the variable that is assigned its control ID in generated code. If not specified, no variable is generated
OnClickKoda generates (in Message Loop mode) a <color blue>Case</color> or (in OnEvent mode) a call to <color blue>GUISetOnEvent</color> and a skeleton event function. Double-click to right to open Events Editor
ResizingClick 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
TabOrderSequence 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.
UpDownSpecifies Updown control to attach to control. Create UpDown first. Click on + to show its properties
VisibleIf False, generates <color blue>GUICtrlSetState(-1, $GUI_HIDE)</color>

#remarks_header[Styles:]#

SS_LEFTLeft-aligns text
SS_CENTERCenter-aligns text
SS_RIGHTRight-aligns text
SS_BLACKRECTRectangle filled with current window frame color (default: black). Does not display text
SS_GRAYRECTRectangle filled with current screen background color (default: gray). Does not display text
SS_WHITERECTRectangle filled with current window background color (default: white). Does not display text
SS_BLACKFRAMEBox with frame drawn in same color as window frame (default: black). Does not display text
SS_GRAYFRAMEBox with frame drawn in same color as screen background (desktop) (default: gray)
SS_WHITEFRAMEBox with frame drawn with same color as window background (default: white). Does not display text
SS_SIMPLERectangle. Displays single line of left-aligned text. Do not update text. Disabling control does not gray text
SS_LEFTNOWORDWRAPLeft-aligns text in rectangle. Expands tabs, but not word-wrapped. Text beyond control is clipped
SS_ETCHEDHORZTop and bottom edges have EDGE_ETCHED style
SS_ETCHEDVERTLeft and right edges have EDGE_ETCHED style
SS_ETCHEDFRAMEFrame has EDGE_ETCHED style
SS_NOPREFIXDo not interpret ampersand (&) characters as accelerator key prefixes
SS_CENTERIMAGECenter an image; center single-line text vertically
SS_RIGHTJUSTLower right corner of an image remains fixed when control is resized
SS_SUNKENHalf-sunken border
WS_TABSTOPControl can be selected with Tab and Shift+Tab
WS_HSCROLLControl has horizontal scroll bar
WS_VSCROLLControl has vertical scroll bar
WS_VISIBLEControl is visible
WS_BORDERControl has a thin-line border
WS_CLIPSIBLINGSIf this control overlaps with another, this control shows partially

#remarks_header[Extra Styles:]#

GUI_WS_EX_PARENTDRAGAllows control to be used as the title bar to drag the whole parent window
WS_EX_CLIENTEDGEControl has border with sunken edge
WS_EX_STATICEDGEControl has a three-dimensional border

#remarks_header[Remarks:]#

None

#remarks_header[Related:]#

None

koda/en/documentation/control_label.txt · Last modified: 2014/07/10 10:48 (external edit)