Lua:Class:PageControl

From Cheat Engine
Revision as of 12:25, 14 February 2019 by AntumDeluge (talk | contribs) (Add example of creating tabs)
Jump to navigation Jump to search

PageControl Class: (Inheritence: WinControl)

WARNING: This page is unfinished.

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"

See also

Related Functions

Related Classes