Core Function GUITabSheet
From Sputnik Wiki
(Difference between revisions)
(→Functions) |
m (1 revision) |
||
(7 intermediate revisions by one user not shown) | |||
Line 14: | Line 14: | ||
=== Functions === | === Functions === | ||
+ | |||
+ | ==== OrderTo ==== | ||
+ | |||
+ | Change order of Tabs by using an array of Tab names. | ||
+ | |||
+ | You must send an array of equal size to the number of tabs containing the names of the tabs arranged in a different(or same) order. | ||
+ | |||
+ | <syntaxhighlight lang="sputnik"> | ||
+ | GUITabSheet($Object->$Object, 'OrderTo', array('One', 'Two')); | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ==== OrderToText ==== | ||
+ | |||
+ | Change order of Tabs by using an array of Tab text. | ||
+ | |||
+ | You must send an array of equal size to the number of tabs containing the names of the tabs arranged in a different(or same) order. | ||
+ | |||
+ | <syntaxhighlight lang="sputnik"> | ||
+ | GUITabSheet($Object->$Object, 'OrderToText', array('One', 'Two')); | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ==== TabNames ==== | ||
+ | |||
+ | Get an array of all the tab names. | ||
+ | |||
+ | <syntaxhighlight lang="sputnik"> | ||
+ | GUITabSheet($Object->$Object, 'TabNames'); | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | ==== TabTexts ==== | ||
+ | |||
+ | Get an array of all the tab texts. | ||
+ | |||
+ | <syntaxhighlight lang="sputnik"> | ||
+ | GUITabSheet($Object->$Object, 'TabTexts'); | ||
+ | </syntaxhighlight> | ||
==== Clear ==== | ==== Clear ==== | ||
Line 25: | Line 61: | ||
==== DelPage ==== | ==== DelPage ==== | ||
− | Delete a page | + | Delete a page by its index or name |
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
+ | # To delete by index supply a numeric value | ||
GUITabSheet($Tab, "DelPage", 0); | GUITabSheet($Tab, "DelPage", 0); | ||
+ | # To delete by name supply a string value | ||
+ | GUITabSheet($Tab, "DelPage", "MyPage"); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 12:37, 14 June 2015
GUITabSheet( <tabsheet> )
Contents |
Description
Properties & Functions specifically for TabSheet
Parameters
tabsheet
The TabSheet GUI object to use.
Functions
OrderTo
Change order of Tabs by using an array of Tab names.
You must send an array of equal size to the number of tabs containing the names of the tabs arranged in a different(or same) order.
GUITabSheet($Object->$Object, 'OrderTo', array('One', 'Two'));
OrderToText
Change order of Tabs by using an array of Tab text.
You must send an array of equal size to the number of tabs containing the names of the tabs arranged in a different(or same) order.
GUITabSheet($Object->$Object, 'OrderToText', array('One', 'Two'));
TabNames
Get an array of all the tab names.
GUITabSheet($Object->$Object, 'TabNames');
TabTexts
Get an array of all the tab texts.
GUITabSheet($Object->$Object, 'TabTexts');
Clear
Delete all tabs
GUITabSheet($Tab, "clear", 0);
DelPage
Delete a page by its index or name
# To delete by index supply a numeric value GUITabSheet($Tab, "DelPage", 0); # To delete by name supply a string value GUITabSheet($Tab, "DelPage", "MyPage");
SelectedIndex
Returns the index of the currently open page
my $Index = GUITabSheet($Tab, "SelectedIndex");
SelectedText
Returns the text of the currently open page
my $Text = GUITabSheet($Tab, "SelectedText");
Example
Go see GUICreate( "TabSheet" ) for example.