home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form w_text_demo
- BorderStyle = 3 'Fixed Dialog
- Caption = "ctText (Enhanced Text Label) Demo"
- ClientHeight = 5055
- ClientLeft = 1680
- ClientTop = 1785
- ClientWidth = 7650
- Height = 5460
- Icon = "ct_text.frx":0000
- Left = 1620
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MDIChild = -1 'True
- MinButton = 0 'False
- ScaleHeight = 5055
- ScaleWidth = 7650
- ShowInTaskbar = 0 'False
- Top = 1440
- Width = 7770
- Begin VB.CheckBox Check1
- Caption = "Three Dimensional Text"
- ForeColor = &H00800000&
- Height = 255
- Left = 5340
- TabIndex = 16
- Top = 3900
- Value = 1 'Checked
- Width = 2175
- End
- Begin VB.ComboBox cmb_bord
- Height = 315
- Left = 5340
- Style = 2 'Dropdown List
- TabIndex = 15
- Top = 3360
- Width = 2115
- End
- Begin VB.ComboBox cmb_pict
- Height = 315
- Left = 5340
- Style = 2 'Dropdown List
- TabIndex = 14
- Top = 2580
- Width = 2115
- End
- Begin VB.ComboBox cmb_align
- Height = 315
- Left = 5340
- Style = 2 'Dropdown List
- TabIndex = 13
- Top = 1800
- Width = 2115
- End
- Begin VB.ComboBox cmb_text
- Height = 315
- Left = 5340
- Style = 2 'Dropdown List
- TabIndex = 12
- Top = 1080
- Width = 2115
- End
- Begin VB.CommandButton Command1
- Caption = "E&xit"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 6480
- TabIndex = 11
- Top = 4500
- Width = 975
- End
- Begin VB.TextBox Text1
- Height = 315
- Left = 1020
- TabIndex = 5
- Text = "ctText Demonstration"
- Top = 4500
- Width = 2835
- End
- Begin VB.VScrollBar VScroll1
- Height = 2475
- Left = 4755
- Max = 360
- TabIndex = 3
- Top = 1620
- Width = 255
- End
- Begin VB.Label Label7
- Caption = "Border Type"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 255
- Left = 5340
- TabIndex = 10
- Top = 3060
- Width = 1935
- End
- Begin VB.Label Label6
- Caption = "Picture Position"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 255
- Left = 5340
- TabIndex = 9
- Top = 2280
- Width = 1875
- End
- Begin VB.Label Label5
- Caption = "Alignment"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 255
- Left = 5340
- TabIndex = 8
- Top = 1500
- Width = 1575
- End
- Begin VB.Label Label4
- Caption = "Text Position"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 255
- Left = 5340
- TabIndex = 7
- Top = 780
- Width = 1335
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- Caption = "Move scroll bar to rotate text"
- ForeColor = &H00800000&
- Height = 435
- Left = 4260
- TabIndex = 6
- Top = 4260
- Width = 1155
- End
- Begin VB.Label Label2
- Caption = "Text :"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 420
- TabIndex = 4
- Top = 4500
- Width = 615
- End
- Begin TextLib.ctText ct_Text
- Height = 2475
- Left = 360
- TabIndex = 2
- Top = 1620
- Width = 4395
- _version = 65536
- _extentx = 7752
- _extenty = 4366
- _stockprops = 70
- caption = "ctText Demonstration"
- BeginProperty font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Arial"
- charset = 0
- weight = 700
- size = 14.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- forecolor = 16711680
- bordertype = 3
- picposition = 10
- alignment = 2
- threedtext = -1 'True
- picture = "ct_text.frx":030A
- End
- Begin TextLib.ctText ctText1
- Height = 615
- Left = 360
- TabIndex = 1
- Top = 780
- Width = 4635
- _version = 65536
- _extentx = 8176
- _extenty = 1085
- _stockprops = 70
- caption = "ctText OCX Control"
- BeginProperty font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "Times New Roman"
- charset = 0
- weight = 700
- size = 20.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- forecolor = 8388608
- bordertype = 4
- alignment = 2
- threedtext = -1 'True
- picture = "ct_text.frx":1274
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- Caption = $"ct_text.frx":1290
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 555
- Left = 120
- TabIndex = 0
- Top = 180
- Width = 7395
- End
- Attribute VB_Name = "w_text_demo"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Check1_Click()
- If Check1.Value = 0 Then
- ct_text.ThreeDText = False
- Else
- ct_text.ThreeDText = True
- End If
- End Sub
- Private Sub cmb_align_Click()
- ct_text.Alignment = cmb_align.ListIndex
- End Sub
- Private Sub cmb_bord_Click()
- ct_text.BorderType = cmb_bord.ListIndex
- End Sub
- Private Sub cmb_pict_Click()
- ct_text.PicPosition = cmb_pict.ListIndex
- End Sub
- Private Sub cmb_text_Click()
- ct_text.TextPosition = cmb_text.ListIndex
- End Sub
- Private Sub Command1_Click()
- Unload w_text_demo
- End Sub
- Private Sub Form_Load()
- ' Center the window on the screen
- Move (Screen.Width - Width) / 2, (Screen.Height - Height) * 0.25
- cmb_text.AddItem "0 - Top"
- cmb_text.AddItem "1 - Bottom"
- cmb_text.AddItem "2 - Centered"
- cmb_text.ListIndex = 2
- cmb_align.AddItem "0 - Left Justified"
- cmb_align.AddItem "1 - Right Justified"
- cmb_align.AddItem "2 - Centered"
- cmb_align.ListIndex = 2
- cmb_pict.AddItem "0 - Center"
- cmb_pict.AddItem "1 - Top Left"
- cmb_pict.AddItem "2 - Top Center"
- cmb_pict.AddItem "3 - Top Right"
- cmb_pict.AddItem "4 - Middle Left"
- cmb_pict.AddItem "5 - Middle Right"
- cmb_pict.AddItem "6 - Bottom Left"
- cmb_pict.AddItem "7 - Bottom Center"
- cmb_pict.AddItem "8 - Bottom Right"
- cmb_pict.AddItem "9 - Stretch to Fit"
- cmb_pict.AddItem "10 - Tile"
- cmb_pict.AddItem "11 - Hide"
- cmb_pict.ListIndex = 10
- cmb_bord.AddItem "0 - Regular"
- cmb_bord.AddItem "1 - None"
- cmb_bord.AddItem "2 - Raised"
- cmb_bord.AddItem "3 - Lowered"
- cmb_bord.AddItem "4 - Drop Shadow"
- cmb_bord.AddItem "5 - Inset"
- cmb_bord.ListIndex = 3
- End Sub
- Private Sub Text1_Change()
- ct_text.Caption = Text1.Text
- End Sub
- Private Sub VScroll1_Change()
- ct_text.TextAngle = VScroll1.Value
- End Sub
- Private Sub VScroll1_Scroll()
- ct_text.TextAngle = VScroll1.Value
- End Sub
-