Control

Tab Strip ActiveX control - version 5.0

File

COMCTL32.OCX

Panel control name

TabStrip1

Script

Code

Display About box

TabStrip1.AboutBox

Add a tab

TabStrip1.Tabs.Add &(1:),,&(2:),CInt(&(3:))
Parameters:
&(1:)=Integer - Tab identifier
&(2:)=Character - Tab text
&(3:)=Integer - Tab image from associated Image list control

Clear

TabStrip1.Tabs.Clear

Events

TabStrip1.ImageList = ImageList1
Sub TabStrip1_Click
&(1:) = TabStrip1.SelectedItem.Index
&(2:) = TabStrip1.SelectedItem.Caption
Ad.LogicalEvent("TabStrip1Click")
End Sub

Parameters:
&(1:)=Integer - Selected Tab identifier
&(2:)=Character - Selected Tab text

Refresh

TabStrip1.Refresh

Remove tab

TabStrip1.Tabs.Remove &(1:)
Parameters:
&(1:)=Iinteger. Tab to remove.