How to Simulate a Tabbed Dialog Box with Vertical TabsLast reviewed: August 4, 1995Article ID: Q134306 |
The information in this article applies to:
SUMMARYCurrently, there is no built-in means in the Form Designer to provide vertical tabs on PageFrame Pages. This article shows by example how to simulate PageFrame vertical tabs.
MORE INFORMATIONThe following code sample shows how to create a form with multiple pages and vertical tabs. Clicking the appropriate tab displays a WAIT WINDOW that identifies the current page selected.
Code Sample************************ 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" ENDPROCENDDEFINE ************************ End of Example *************************
Step-by-Step ExampleUse the following steps to create the vertical tabs through the interface:
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |