Core Function GUITabSheet

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Functions)
(DelPage)
Line 25: Line 25:
 
==== 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>
  

Revision as of 23:32, 4 October 2013

GUITabSheet( <tabsheet> )

Contents

Description

Properties & Functions specifically for TabSheet

Parameters

tabsheet

The TabSheet GUI object to use.

Functions

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.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox