Lua:Class:PageControl
Revision as of 12:25, 14 February 2019 by AntumDeluge (talk | contribs) (Add example of creating tabs)
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"