tabwidget class

Provides a Tab Widget.
object widget
The tabwidget class provides a stack of tabbed widgets.
Each tab is associated with a different widget (called a `page').
Only the current tab's page is shown in the page area; all the others tabs pages are hidden.
The user can show a different page by clicking on its tab.
Adds another page to the tab view with the text label and optional icon.
Inserts another tab and page to the tab view with name and label-text specified.
If index is not specified, the tab is simply appended.
Otherwise the new tab is inserted at the specified position.
Sets the tab tool tip for the tabwidget to <tooltip>.
Removes the tab tool tip for the tab. If the page does not have a tip, nothing happens.
$setTabLabel(<tab_widget>, <label:string>)
Sets the tab label for <tab_widget> to label.
Defines a new label, and optional icon, for the tab .
Sets the index position of the current tab page to <index>.
<integer> $currentPageIndex()
Returns the current page index.
<string> $label(<index:uinteger>)
Retunrs the label to the <index>.
<string> $currentTabLabel()
Returns the label of the current tab.
Sets the margin in this tab widget to <margin>.
<integer> $margin()
Returns the margin in this tab widget.
Remove the page <tab_widget>.
Sets TabPosition. Valid parameters are : Top, Bottom.
<integer> $count()
This property holds the number of tabs in the tab bar.
This function is invoched when the current tab was changed.
The default implementation emits the $currentChange() signal.
This signal is emitted by the default implementation of $currentChangedEvent().
If you reimplement that function you will have to emit the signal manually (if you still need it).

    # First we'll create the main tabwidget.
    %Tabwidget->$setToolTip("Example of TabWidget class")
    # Now we'll create the new widgets and put they in to the main tabwidget.
    # Now we'll create the item to put in to tab's pages.
    %labelbt->$settext(Botton Tab)
    %labeltt->$settext(Top Tab)
    %buttontb->$settext("To &Botton")
    %buttontt->$settext("To &Top")
    # Now we'll give a layout to all items.
    # This also allows to use privateimpl without making buttons global variables
    # Add the page to the main tab.
    # Implementing the action to do when the user click the buttons.
    # We do the same work  with the second tab's page.
    %labelwp->$settext("Enjoy the new Class provided by")
    %labelgen->$settext(Grifisx \& Noldor)
    # Let's show our example. 

Index, Object Classes
KVIrc 3.9.99 Documentation
Generated by root at Wed Oct 17 19:34:06 2007