User Tools

Site Tools


tabview

TabView (QTabWidget)

www.kbasic.com_images_tab.jpg

The Qt documentation in C++ of this class can be read here: http://doc.trolltech.com/4.3/qtabwidget.html

Whenever you use Index, KBasic checks if Index is greater equal 1 and smaller equal Len(). If not, the command will not be executed. First element has got Index = 1.

Tab controls must NOT be inside other tab controls. Some other speciallity is that it is not possible to move or resize tab controls yet.

Most important

Methods Select , Selected
Properties None
Events OnEvent

Please read the control class overview Control as well.

This control cannot be created on the fly.

METHODS

Select

Sub Select(Index As Integer)

First item is index = 1.


Selected

Function Selected() As Integer

First item is index = 1.


SetTabEnabled

Sub SetTabEnabled(Index As Integer, Enable As Boolean)


IsTabEnabled

Function IsTabEnabled(Index As Integer) As Boolean


SetToolTip

Sub SetToolTip(Index As Integer, ToolTip As String)


ToolTip

Function ToolTip(Index As Integer) As String


SetWhatsThis

Sub SetWhatsThis(Index As Integer, ToolTip As String)


WhatsThis

Function WhatsThis(Index As Integer) As String


SetCaption

Sub SetCaption(Index As Integer, Caption As String)


Caption

Function Caption(Index As Integer) As String


SetIcon

Sub SetIcon(Index As Integer, Icon As String)


Append

Function Append(Icon As String, Caption As String) As Integer

This procedure ouhgt to be used for tab bars only.


Insert

Function Insert(Index As Integer, Icon As String, Caption As String) As Integer

This procedure ouhgt to be used for tab bars only.


Remove

Sub Remove(Index As Integer)

This procedure ouhgt to be used for tab bars only.


Length

Function Length() As Integer


HIDDEN PROPERTIES

Pages

ReadOnly Pages As String

Normally, you do not use this property. It is used by KBasic to organize your tab control.

EVENTS

OnEvent

Sub OnEvent(Index As Integer)

This event is raised, when the current tab index is changed.

tabview.txt · Last modified: 2013/04/09 22:58 (external edit)