Difference between revisions of "Lua:Class:PageControl"
Jump to navigation
Jump to search
AntumDeluge (talk | contribs) (Add TabSheet to "Related Classes") |
AntumDeluge (talk | contribs) (Add example of creating tabs) |
||
| Line 26: | Line 26: | ||
; addMetaData() | ; addMetaData() | ||
: | : | ||
| + | |||
| + | == Examples == | ||
| + | |||
| + | <pre> | ||
| + | -- main window | ||
| + | local form = createForm() | ||
| + | |||
| + | -- create tabbed interface | ||
| + | local tabs = createPageControl(form) | ||
| + | tabs.Align = alClient | ||
| + | |||
| + | -- add tabs | ||
| + | local tabMain = tabs.addTab() | ||
| + | tabMain.setCaption("Main") | ||
| + | local tabSec = tabs.addTab() | ||
| + | tabSec.setCaption("Secondary") | ||
| + | |||
| + | -- put tabs at bottom of interface | ||
| + | tabs.TabPosition = "tpBottom" | ||
| + | </pre> | ||
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
Revision as of 12:25, 14 February 2019
PageControl Class: (Inheritence: WinControl)
WARNING: This page is unfinished.
Contents
Description
PageControl is tabbed GUI control.
Creation
- createPageControl(owner) : PageControl
- Returns a newly created PageControl.
Methods
- addTab()
- TabSheet
- Creates & returns new TabSheet.
- getPageCount() : int
- getPage()
- addMetaData()
Examples
-- main window
local form = createForm()
-- create tabbed interface
local tabs = createPageControl(form)
tabs.Align = alClient
-- add tabs
local tabMain = tabs.addTab()
tabMain.setCaption("Main")
local tabSec = tabs.addTab()
tabSec.setCaption("Secondary")
-- put tabs at bottom of interface
tabs.TabPosition = "tpBottom"