This shows you the differences between two versions of the page.
koda:en:documentation:control_tab [2014/07/10 10:48] |
koda:en:documentation:control_tab [2014/07/10 10:48] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Tab ====== | ||
+ | {{page> | ||
+ | {{page> | ||
+ | {|class=" | ||
+ | |- | ||
+ | |class=" | ||
+ | |class=" | ||
+ | |} | ||
+ | Creates a tab control | ||
+ | |||
+ | See the tutorial, [[koda: | ||
+ | |||
+ | # | ||
+ | |**ActivePage**|{{KODA> | ||
+ | |**Align**|{{KODA> | ||
+ | |**Color**|{{KODA> | ||
+ | |**ContextMenu**|{{KODA> | ||
+ | |**Cursor**|{{KODA> | ||
+ | |**Enabled**|False generates <color blue> | ||
+ | |**Font**|{{KODA> | ||
+ | |**Left, | ||
+ | |**Width, | ||
+ | |**Hint**|Text that appears when cursor hovers over control. Generates call to <color blue> | ||
+ | |**Images**| ImageList containing icons to show at tops of Pages (optional). [[control_imagelist|]] must already exist| | ||
+ | |**Name**|{{KODA> | ||
+ | |**OnClick**|Generates (in Message Loop mode) a <color blue> | ||
+ | |**Resizing**|{{KODA> | ||
+ | |**TabOrder**|Sequence in which controls are selected with the < | ||
+ | |**Visible**|If False, generates <color blue> | ||
+ | |||
+ | |||
+ | # | ||
+ | |||
+ | |TCS_SCROLLOPPOSITE|Unneeded tabs scroll to the opposite side of the control when a tab is selected | | ||
+ | |TCS_BOTTOM|Page labels appear at the bottom of pages | | ||
+ | |TCS_FLATBUTTONS|With TCS_BUTTONS, | ||
+ | |TCS_FORCEICONLEFT|Icon is at left edge of page label, leaving text centered. Requires TCS_FIXEDWIDTH | | ||
+ | |TCS_FORCELABELLEFT|Text is at left side of page label, icon next to it. Requires TCS_FIXEDWIDTH. Implies TCS_FORCEICONLEFT | | ||
+ | |TCS_HOTTRACK|Page label under cursor is highlighted. Requires TCS_BUTTONS | | ||
+ | |TCS_VERTICAL|Page labels appear at side of pages: on right if TCS_BOTTOM else at left | | ||
+ | |TCS_TABS|Page labels appear normally | | ||
+ | |TCS_BUTTONS|Page labels appear and work like buttons. Page area is usually not used. Control has no border. Do not use with TCS_SCROLLOPPOSITE | | ||
+ | |TCS_SINGLELINE|When widths of page labels exceed width of control, show horizontal scroll bar | | ||
+ | |TCS_MULTILINE|When widths of page labels exceed width of control, show multiple rows of page titles| | ||
+ | |TCS_RIGHTJUSTIFY|Page labels widen to occupy width of control. Requires TCS_MULTILINE | | ||
+ | |TCS_FIXEDWIDTH|Page labels are all the same width | | ||
+ | |TCS_RAGGEDRIGHT|Width of page labels depends on width of labels | | ||
+ | |TCS_FOCUSONBUTTONDOWN|Page receives input focus on button down. Useful with TCS_BUTTONS | | ||
+ | |TCS_FOCUSNEVER|Page never receives input focus | | ||
+ | |WS_TABSTOP|Control can be selected with < | ||
+ | |WS_HSCROLL|{{KODA> | ||
+ | |WS_VSCROLL|{{KODA> | ||
+ | |WS_VISIBLE|{{KODA> | ||
+ | |WS_BORDER|{{KODA> | ||
+ | |WS_CLIPSIBLINGS|{{KODA> | ||
+ | |||
+ | # | ||
+ | |||
+ | |TCS_EX_FLATSEPARATORS|Shows separators between page labels. Requires TCS_BUTTONS and TCS_FLATBUTTONS | | ||
+ | |WS_EX_CLIENTEDGE|{{KODA> | ||
+ | |WS_EX_STATICEDGE|{{KODA> | ||
+ | |||
+ | # | ||
+ | |||
+ | Each page has its own properties: | ||
+ | |||
+ | |**Caption**|Text displayed at the top of the page| | ||
+ | |**Left, Top**|{{KODA> | ||
+ | |**Width, Height**|{{KODA> | ||
+ | |**Hint**|Text that appears when cursor hovers over control. Generates call to <color blue> | ||
+ | |**ImageIndex**|{{KODA> | ||
+ | |**Name**|{{KODA> | ||
+ | |||
+ | # | ||
+ | * AutoIt limits the number of Tab controls on a form to one. | ||
+ | * Microsoft admits that Hints can behave strangely: consider a Tab control with //n// pages: | ||
+ | |||
+ | ^With Hints on ^Without Hints on ^Hints show ^ | ||
+ | |Control only |all Pages |Control' | ||
+ | |Page 1 |Control, other Pages |Page 1 | | ||
+ | |Page //n// |Control|Page //n// Hint on Pages 1 to //n// | | ||
+ | |Pages 1 and //n// |Control and other Pages |Only Pages 1 and //n// have Hints | | ||
+ | |Control and any // | ||
+ | |||
+ | This behavior is acknowledged in AutoIt; it may be due to a deficiency in Windows. | ||
+ | |||
+ | Koda partly overcomes this behavior. If a Page other than the first one specifies a Hint, Koda generates <color blue> | ||
+ | |||
+ | Koda is unable to have the Hint for the control show when any of the Pages specify a Hint. | ||
+ | |||
+ | |||
+ | # | ||
+ | |||
+ | None |