Article ID: 134306
Article Last Modified on 2/15/2000
************************ Start of Example ***********************
frmForm=CREATEOBJECT("verticaltab")
frmForm.SHOW
READ EVENTS
DEFINE CLASS verticaltab AS form
Top = 0
Left = 0
DoCreate = .T.
Caption = "Form1"
LockScreen = .F.
Name = "Form1"
ADD OBJECT pageframe1 AS pageframe WITH ;
ErasePage = .T., ;
PageCount = 2, ;
Top = 24, ;
Left = 96, ;
Width = 253, ;
Height = 192, ;
Tabs = .F., ;
Name = "Pageframe1", ;
Page1.Caption = "Page1", ;
Page1.Name = "Page1", ;
Page2.Caption = "Page2", ;
Page2.Name = "Page2"
ADD OBJECT commandgroup1 AS commandgroup WITH ;
AutoSize = .F., ;
ButtonCount = 2, ;
BackColor = RGB(192,192,192), ;
Value = 1, ;
Height = 193, ;
Left = 0, ;
Top = 24, ;
Width = 97, ;
Name = "Commandgroup1", ;
Command1.AutoSize = .F., ;
Command1.Top = 1, ;
Command1.Left = -1, ;
Command1.Height = 85, ;
Command1.Width = 98, ;
Command1.Picture = "..\", ;
Command1.Caption = "page1", ;
Command1.Name = "Command1", ;
Command2.AutoSize = .F., ;
Command2.Top = 85, ;
Command2.Left = 0, ;
Command2.Height = 108, ;
Command2.Width = 97, ;
Command2.Caption = "page2", ;
Command2.Name = "Command2"
ADD OBJECT line1 AS line WITH ;
BorderWidth = 2, ;
Height = 85, ;
Left = 96, ;
Top = 26, ;
Width = 0, ;
Name = "Line1"
ADD OBJECT line2 AS line WITH ;
BorderStyle = 1, ;
BorderWidth = 2, ;
Height = 105, ;
Left = 96, ;
Top = 110, ;
Width = 0, ;
Name = "Line2"
PROCEDURE commandgroup1.Command1.Click
thisform.line1.bordercolor=rgb(192,192,192)
thisform.line2.bordercolor=rgb(0,0,0)
thisform.pageframe1.activepage=1
WAIT WINDOW "Page 1"
ENDPROC
PROCEDURE commandgroup1.Command2.Click
thisform.line1.bordercolor=rgb(0,0,0)
thisform.line2.bordercolor=rgb(192,192,192)
thisform.pageframe1.activepage=2
WAIT WINDOW "Page 2"
ENDPROC
ENDDEFINE
************************ End of Example *************************
THISFORM.pgfMyframe.ActivePage = 1
Additional query words: 3.00 VFoxWin
Keywords: KB134306