GuiCreateTabPanel

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

This function creates a Tab Panel, which acts as a template to create Tabs upon.

Syntax

element guiCreateTabPanel ( float x, float y, float width, float height, bool relative, [element parent] )

Required Arguments

  • x: This is a float representing the x position on the screen. If relative is enabled this represents a float between 0 and 1 representing a fraction of the parent element width
  • y: This is a float representing the y position on the screen. If relative is enabled this represents a float between 0 and 1 representing a fraction of the parent element height
  • width: This is a float representing the width of the tab panel. If relative is enabled this represents a float between 0 and 1 representing a fraction of the screen width
  • length: This is a float representing the width of the tab panel. If relative is enabled this represents a float between 0 and 1 representing a fraction of the screen width
  • relative: This is a boolean representing whether size and position will be relative to a parent element

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • parent: This is the parent, representing what element size and position will be relative to.

Returns

Returns a GUI tab panel element if successful, false otherwise.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows