home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 2.00 Begin Form w_tabs_prop BackColor = &H00C0C0C0& BorderStyle = 1 'Fixed Single Caption = "ctTABS (Multiple Page Tabs) Demo" ClientHeight = 5220 ClientLeft = 900 ClientTop = 975 ClientWidth = 7710 Height = 5745 Icon = CT_TABSP.FRX:0000 Left = 840 LinkTopic = "Form1" MaxButton = 0 'False MDIChild = -1 'True ScaleHeight = 5220 ScaleWidth = 7710 Top = 510 Width = 7830 Begin ctFRAME ctFrame1 BackColor = &H00C0C0C0& BorderColor = &H00000000& DistanceApart = 5 Height = 1875 InnerBorder = 1 'None InnerWidth = 1 Left = 1020 OuterBorder = 0 'Regular OuterWidth = 1 ShadowColor = &H00808080& ShowBottom = -1 'True ShowLeft = -1 'True ShowRight = -1 'True ShowTop = -1 'True TabIndex = 5 Top = 1860 Width = 5775 Begin ctTEXT ctText8 Alignment = 1 'Right Justified BackColor = &H00FFFFFF& BorderColor = &H00000000& BorderType = 2 'Raised ForeColor = &H00000000& Height = 315 Left = 3960 PicPosition = 0 'Center ShadowColor = &H00000000& SingleLine = -1 'True TabIndex = 6 TextAngle = 0 TextPosition = 1 'Center ThreeDColor = &H00808080& ThreeDText = 0 'False Top = 1260 Width = 1455 End Begin ctTEXT ctText7 Alignment = 0 'Left Justified BackColor = &H00FFFFFF& BorderColor = &H00000000& BorderType = 2 'Raised ForeColor = &H00000000& Height = 315 Left = 240 PicPosition = 0 'Center ShadowColor = &H00000000& SingleLine = -1 'True TabIndex = 7 TextAngle = 0 TextPosition = 1 'Center ThreeDColor = &H00808080& ThreeDText = 0 'False Top = 1260 Width = 3735 End Begin ctTEXT ctText6 Alignment = 1 'Right Justified BackColor = &H00FFFFFF& BorderColor = &H00000000& BorderType = 2 'Raised ForeColor = &H00000000& Height = 315 Left = 3960 PicPosition = 0 'Center ShadowColor = &H00000000& SingleLine = -1 'True TabIndex = 13 TextAngle = 0 TextPosition = 1 'Center ThreeDColor = &H00808080& ThreeDText = 0 'False Top = 960 Width = 1455 End Begin ctTEXT ctText5 Alignment = 0 'Left Justified BackColor = &H00FFFFFF& BorderColor = &H00000000& BorderType = 2 'Raised ForeColor = &H00000000& Height = 315 Left = 240 PicPosition = 0 'Center ShadowColor = &H00000000& SingleLine = -1 'True TabIndex = 12 TextAngle = 0 TextPosition = 1 'Center ThreeDColor = &H00808080& ThreeDText = 0 'False Top = 960 Width = 3735 End Begin ctTEXT ctText4 Alignment = 1 'Right Justified BackColor = &H00FFFFFF& BorderColor = &H00000000& BorderType = 2 'Raised ForeColor = &H00000000& Height = 315 Left = 3960 PicPosition = 0 'Center ShadowColor = &H00000000& SingleLine = -1 'True TabIndex = 11 TextAngle = 0 TextPosition = 1 'Center ThreeDColor = &H00808080& ThreeDText = 0 'False Top = 660 Width = 1455 End Begin ctTEXT ctText3 Alignment = 0 'Left Justified BackColor = &H00FFFFFF& BorderColor = &H00000000& BorderType = 2 'Raised ForeColor = &H00000000& Height = 315 Left = 240 PicPosition = 0 'Center ShadowColor = &H00000000& SingleLine = -1 'True TabIndex = 10 TextAngle = 0 TextPosition = 1 'Center ThreeDColor = &H00808080& ThreeDText = 0 'False Top = 660 Width = 3735 End Begin ctTEXT ctText2 Alignment = 1 'Right Justified BackColor = &H00FFFFFF& BorderColor = &H00000000& BorderType = 2 'Raised ForeColor = &H00000000& Height = 315 Left = 3960 PicPosition = 0 'Center ShadowColor = &H00000000& SingleLine = -1 'True TabIndex = 9 TextAngle = 0 TextPosition = 1 'Center ThreeDColor = &H00808080& ThreeDText = 0 'False Top = 360 Width = 1455 End Begin ctTEXT ctText1 Alignment = 0 'Left Justified BackColor = &H00FFFFFF& BorderColor = &H00000000& BorderType = 2 'Raised ForeColor = &H00000000& Height = 315 Left = 240 PicPosition = 0 'Center ShadowColor = &H00000000& SingleLine = -1 'True TabIndex = 8 TextAngle = 0 TextPosition = 1 'Center ThreeDColor = &H00808080& ThreeDText = 0 'False Top = 360 Width = 3735 End End Begin HScrollBar scrBar Height = 255 Left = 4860 Max = 11 Min = 1 TabIndex = 2 Top = 4140 Value = 1 Width = 2175 End Begin CommandButton Command1 Caption = "E&xit" Height = 375 Left = 6510 TabIndex = 1 Top = 4680 Width = 945 End Begin ctTABS ct_tabs Amount = 11 BackColor = &H00C0C0C0& BaseLine = -1 'True Caption = "A-B;C-D;E-F;G-H;I-K;L-M;N-O;P-R;S-T;U-V;W-Z" DistanceApart = 44 FontBold = -1 'True FontItalic = 0 'False FontName = "Times New Roman" FontSize = 12 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 285 Left = 840 Offset = 0 SelectedFontBold= -1 'True SelectedFontItalic= 0 'False SelectedFontStrikeOut= 0 'False SelectedFontUnderline= 0 'False SelectedStyle = 1 'Open SelectedTab = 1 SelectedTabColor= &H00C0C0C0& SelectedTextColor= &H00800000& TabBackColor = &H00E0FFFF& TabColor = &H00E0FFFF& TabIndentation = 10 TabStyle = 0 'Bottom TabTextColor = &H00000000& TabWidth = 55 TextColor = &H00000000& ThreeD = -1 'True Top = 4140 Width = 4035 End Begin Label Label3 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Click on the tabs or scroll bar to change the directory." ForeColor = &H00800000& Height = 255 Left = 960 TabIndex = 14 Top = 4680 Width = 4935 End Begin Label lbl_cap BackStyle = 0 'Transparent Caption = "A-B" FontBold = 0 'False FontItalic = 0 'False FontName = "Times New Roman" FontSize = 18 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 375 Left = 6120 TabIndex = 4 Top = 1260 Width = 855 End Begin Label Label2 BackColor = &H00C0C0C0& BackStyle = 0 'Transparent Caption = "Telephone Directory" FontBold = 0 'False FontItalic = 0 'False FontName = "Times New Roman" FontSize = 24 FontStrikethru = 0 'False FontUnderline = 0 'False ForeColor = &H00800000& Height = 615 Left = 960 TabIndex = 3 Top = 1140 Width = 4515 End Begin Shape Shape4 BackColor = &H0000C0C0& BackStyle = 1 'Opaque Height = 135 Left = 120 Top = 2460 Width = 495 End Begin Shape Shape3 BackColor = &H0000C0C0& BackStyle = 1 'Opaque Height = 135 Left = 120 Top = 3480 Width = 495 End Begin Shape Shape2 BackColor = &H0000C0C0& BackStyle = 1 'Opaque Height = 135 Left = 120 Top = 1440 Width = 495 End Begin Shape Shape1 BorderWidth = 2 Height = 3255 Left = 360 Shape = 4 'Rounded Rectangle Top = 900 Width = 7095 End Begin Label Label1 Alignment = 2 'Center BackColor = &H00C0C0C0& Caption = "The ctTABS VBX is a tab control that can be attatched to another object. Its ""Offset"" attribute allows it to contain more tabs than it shows (as displayed below)." FontBold = -1 'True FontItalic = 0 'False FontName = "Arial" FontSize = 8.25 FontStrikethru = 0 'False FontUnderline = 0 'False ForeColor = &H00800000& Height = 495 Left = 120 TabIndex = 0 Top = 120 Width = 7455 End Sub ck_baseline_Click () End Sub Sub ck_bold_Click () End Sub Sub ck_italic_Click () End Sub Sub ck_strike_Click () End Sub Sub ck_threed_Click () End Sub Sub ck_underline_Click () End Sub Sub Command1_Click () Unload w_tabs_prop End Sub Sub Command2_Click () End Sub Sub Command3_Click () End Sub Sub Command4_Click () End Sub Sub Command5_Click () End Sub Sub Command6_Click () End Sub Sub ct_tabs_DrawTab (nDrawTab As Integer) If (nDrawTab = 5 Or nDrawTab = 11) Then ct_Tabs.TabTextColor = RGB(80, 80, 80) End If End Sub Sub ct_tabs_TabChange (nNewTab As Integer, nOldTab As Integer) scrBar.Value = nNewTab ctText1.Caption = "" ctText2.Caption = "" ctText3.Caption = "" ctText4.Caption = "" ctText5.Caption = "" ctText6.Caption = "" ctText7.Caption = "" ctText8.Caption = "" Select Case (nNewTab) Case 1 lbl_cap.Caption = "A-B" ctText1.Caption = "Abott, Bud" ctText2.Caption = "840-8338" ctText3.Caption = "Aaron, Lee" ctText4.Caption = "744-1233" ctText5.Caption = "Budinsky, Lou" ctText6.Caption = "232-4774" Case 2 lbl_cap.Caption = "C-D" ctText1.Caption = "Crane, Fraser" ctText2.Caption = "477-5855" ctText3.Caption = "Dreary, Dave" ctText4.Caption = "212-4485" Case 3 lbl_cap.Caption = "E-F" ctText1.Caption = "Errin, Joe" ctText2.Caption = "222-8338" ctText3.Caption = "Foley, Axel" ctText4.Caption = "923-9233" ctText5.Caption = "Frame, P." ctText6.Caption = "947-3773" Case 4 lbl_cap.Caption = "G-H" ctText1.Caption = "Gluck, Craig" ctText2.Caption = "475-7903" Case 5 lbl_cap.Caption = "I-K" Case 6 lbl_cap.Caption = "L-M" ctText1.Caption = "Larry, Moe" ctText2.Caption = "857-4464" ctText3.Caption = "Manny, May" ctText4.Caption = "1-844-4833" ctText5.Caption = "Moriarty, P." ctText6.Caption = "887-8447" Case 7 lbl_cap.Caption = "N-O" ctText1.Caption = "Neville, Aaron" ctText2.Caption = "233-3833" ctText3.Caption = "Osterman, al" ctText4.Caption = "888-8838" Case 8 lbl_cap.Caption = "P-R" ctText1.Caption = "Porter, Cole" ctText2.Caption = "874-2273" ctText3.Caption = "Radison, George" ctText4.Caption = "733-4484" ctText5.Caption = "Rickson, Bob." ctText6.Caption = "393-8338" Case 9 lbl_cap.Caption = "S-T" ctText1.Caption = "Sargeant, Dick" ctText2.Caption = "744-8555" ctText3.Caption = "Teller, Pen" ctText4.Caption = "885-6955" Case 10 lbl_cap.Caption = "U-V" ctText1.Caption = "Unger, Felix" ctText2.Caption = "274-1273" Case 11 lbl_cap.Caption = "W-Z" End Select End Sub Sub ctColor1_OK () End Sub Sub Form_Load () ' Center the window on the screen Move (Screen.Width - Width) / 2, (Screen.Height - Height) * .25 w_mdi_main.bt_tabs = BUTTON_DISABLE ctText1.Caption = "Abott, Bud" ctText2.Caption = "840-8338" ctText3.Caption = "Aaron, Lee" ctText4.Caption = "744-1233" ctText5.Caption = "Budinsky, Lou" ctText6.Caption = "232-4774" End Sub Sub Form_Unload (Cancel As Integer) w_mdi_main.bt_tabs = BUTTON_UP End Sub Sub op_bottom_Click () End Sub Sub op_closed_Click () End Sub Sub op_open_Click () End Sub Sub op_top_Click () End Sub Sub scrBar_Change () Dim Visible As Integer Dim Cntr As Integer Visible = 6 If (ct_Tabs.SelectedTab < scrBar.Value) Then ct_Tabs.SelectedTab = scrBar.Value If (ct_Tabs.SelectedTab - ct_Tabs.Offset > Visible) Then ct_Tabs.Offset = ct_Tabs.SelectedTab - Visible End If Else If (ct_Tabs.SelectedTab > scrBar.Value) Then ct_Tabs.SelectedTab = scrBar.Value If (ct_Tabs.SelectedTab <= ct_Tabs.Offset) Then ct_Tabs.Offset = ct_Tabs.SelectedTab - 1 End If End If End If End Sub