home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 2.00 Begin Form w_text_demo BackColor = &H00C0C0C0& BorderStyle = 1 'Fixed Single Caption = "ctTEXT (Enhanced Static Text) Demo" ClientHeight = 4785 ClientLeft = 240 ClientTop = 1275 ClientWidth = 8250 FontBold = -1 'True FontItalic = 0 'False FontName = "Times New Roman" FontSize = 8.25 FontStrikethru = 0 'False FontUnderline = 0 'False Height = 5310 Icon = CT_TEXT.FRX:0000 Left = 180 LinkTopic = "Form1" MaxButton = 0 'False MDIChild = -1 'True ScaleHeight = 4785 ScaleWidth = 8250 Top = 810 Width = 8370 Begin ComboBox cmb_align Height = 300 Left = 5280 Style = 2 'Dropdown List TabIndex = 22 Top = 1500 Width = 2535 End Begin ctCHECK ThreeD Alignment = 0 'Left Justify BackColor = &H00C0C0C0& Caption = "Three Dimensional Text" DisableColor = &H00808080& ForeColor = &H00000000& Height = 255 Left = 5340 PicStyle = 2 'Style #2 ShowFocus = -1 'True TabIndex = 21 Top = 3780 Value = -1 'True Width = 2415 End Begin ComboBox cmb_bord Height = 300 Left = 5280 Style = 2 'Dropdown List TabIndex = 20 Top = 2700 Width = 2535 End Begin PictureBox Picture5 Height = 405 Left = 6780 Picture = CT_TEXT.FRX:0302 ScaleHeight = 375 ScaleWidth = 225 TabIndex = 18 Top = 4290 Visible = 0 'False Width = 255 End Begin PictureBox Picture4 Height = 405 Left = 6480 Picture = CT_TEXT.FRX:03F4 ScaleHeight = 375 ScaleWidth = 225 TabIndex = 17 Top = 4290 Visible = 0 'False Width = 255 End Begin PictureBox Picture3 Height = 405 Left = 6180 Picture = CT_TEXT.FRX:0702 ScaleHeight = 375 ScaleWidth = 225 TabIndex = 16 Top = 4290 Visible = 0 'False Width = 255 End Begin PictureBox Picture2 Height = 405 Left = 5880 Picture = CT_TEXT.FRX:097C ScaleHeight = 375 ScaleWidth = 225 TabIndex = 15 Top = 4290 Visible = 0 'False Width = 255 End Begin PictureBox Picture1 Height = 405 Left = 5520 Picture = CT_TEXT.FRX:0BF6 ScaleHeight = 375 ScaleWidth = 285 TabIndex = 14 Top = 4290 Visible = 0 'False Width = 315 End Begin ComboBox cmb_pics Height = 300 Left = 5280 Style = 2 'Dropdown List TabIndex = 13 Top = 3300 Width = 2535 End Begin ComboBox cmb_pict Height = 300 Left = 5280 Style = 2 'Dropdown List TabIndex = 10 Top = 2100 Width = 2535 End Begin ComboBox cmb_text Height = 300 Left = 5280 Style = 2 'Dropdown List TabIndex = 5 Top = 900 Width = 2535 End Begin VScrollBar VScroll1 Height = 2355 LargeChange = 10 Left = 4620 Max = 360 TabIndex = 4 Top = 1530 Width = 255 End Begin CommandButton Command1 Caption = "E&xit" Height = 375 Left = 7140 TabIndex = 3 Top = 4230 Width = 855 End Begin TextBox Text1 Height = 285 Left = 840 TabIndex = 2 Text = "ctText Demonstration" Top = 4230 Width = 3015 End Begin ctTEXT ct_text Alignment = 2 'Centered BackColor = &H00C0C0C0& BorderColor = &H00000000& BorderType = 3 'Lowered Caption = "ctText Demonstration" FontBold = -1 'True FontItalic = 0 'False FontName = "Arial" FontSize = 18 FontStrikethru = 0 'False FontUnderline = 0 'False ForeColor = &H00FF0000& Height = 2355 Left = 240 PicPosition = 10 'Tile Picture = CT_TEXT.FRX:0F50 ShadowColor = &H00000000& SingleLine = -1 'True TabIndex = 1 TextAngle = 0 TextPosition = 1 'Center ThreeDColor = &H00808080& ThreeDText = -1 'True Top = 1530 Width = 4395 End Begin ctTEXT ctText_Intro Alignment = 2 'Centered BackColor = &H00C0C0C0& BorderColor = &H00000000& BorderType = 4 'Drop Shadow Caption = "ctText VBX Control" FontBold = -1 'True FontItalic = 0 'False FontName = "Times New Roman" FontSize = 24 FontStrikethru = 0 'False FontUnderline = 0 'False ForeColor = &H00800000& Height = 570 Left = 180 PicPosition = 0 'Center ShadowColor = &H00000000& SingleLine = -1 'True TabIndex = 0 TextAngle = 0 TextPosition = 1 'Center ThreeDColor = &H00808080& ThreeDText = -1 'True Top = 750 Width = 4695 End Begin Label Label8 BackColor = &H00C0C0C0& Caption = "Alignment" ForeColor = &H00800000& Height = 255 Left = 5280 TabIndex = 23 Top = 1260 Width = 1155 End Begin Label Label7 BackColor = &H00C0C0C0& Caption = "Border Type" ForeColor = &H00800000& Height = 255 Left = 5280 TabIndex = 19 Top = 2460 Width = 1515 End Begin Label Label6 BackColor = &H00C0C0C0& Caption = "Picture " ForeColor = &H00800000& Height = 225 Left = 5280 TabIndex = 12 Top = 3060 Width = 1395 End Begin Label Label5 Alignment = 2 'Center BackColor = &H00C0C0C0& Caption = "The ctText VBX is an enhanced label control that allows the user to set the labels text, text position, background, font orientation and shading, etc." ForeColor = &H00800000& Height = 465 Left = 360 TabIndex = 11 Top = 120 Width = 7695 End Begin Label Label4 BackStyle = 0 'Transparent Caption = "Picture Position" ForeColor = &H00800000& Height = 195 Left = 5280 TabIndex = 9 Top = 1920 Width = 1575 End Begin Label Label3 BackStyle = 0 'Transparent Caption = "Text Position" ForeColor = &H00800000& Height = 255 Left = 5280 TabIndex = 8 Top = 660 Width = 1695 End Begin Label Label2 Alignment = 2 'Center BackStyle = 0 'Transparent Caption = "Move scroll bar to rotate text" FontBold = 0 'False FontItalic = 0 'False FontName = "Arial" FontSize = 8.25 FontStrikethru = 0 'False FontUnderline = 0 'False ForeColor = &H00800000& Height = 435 Left = 4200 TabIndex = 7 Top = 4170 Width = 1155 End Begin Label Label1 BackStyle = 0 'Transparent Caption = "Text :" Height = 255 Left = 240 TabIndex = 6 Top = 4290 Width = 555 End Sub cmb_align_Click () ct_text.Alignment = cmb_Align.ListIndex End Sub Sub cmb_bord_Click () ct_text.BorderType = cmb_bord.ListIndex End Sub Sub cmb_pics_Click () If cmb_pics.ListIndex = 0 Then ct_text.Picture = picture1.Picture ElseIf cmb_pics.ListIndex = 1 Then ct_text.Picture = picture2.Picture ElseIf cmb_pics.ListIndex = 2 Then ct_text.Picture = picture3.Picture ElseIf cmb_pics.ListIndex = 3 Then ct_text.Picture = picture4.Picture ElseIf cmb_pics.ListIndex = 4 Then ct_text.Picture = picture5.Picture End If End Sub Sub cmb_pict_Click () ct_text.PicPosition = cmb_pict.ListIndex End Sub Sub cmb_text_Click () ct_text.TextPosition = cmb_text.ListIndex End Sub Sub Command1_Click () Unload w_text_demo End Sub Sub Form_Load () ' Center the window on the screen Move (Screen.Width - Width) / 2, (Screen.Height - Height) * .25 w_mdi_main.bt_text = BUTTON_DISABLE cmb_text.AddItem "0 - Top" cmb_text.AddItem "1 - Center" cmb_text.AddItem "2 - Bottom" cmb_text.ListIndex = 1 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 cmb_pics.AddItem "0 - Honey" cmb_pics.AddItem "1 - Cars" cmb_pics.AddItem "2 - Egypt" cmb_pics.AddItem "3 - Bricks" cmb_pics.AddItem "4 - Text Icon" cmb_pics.ListIndex = 0 End Sub Sub Form_Unload (Cancel As Integer) w_mdi_main.bt_text = BUTTON_UP End Sub Sub Text1_Change () ct_text.Caption = text1.Text End Sub Sub ThreeD_Click () ct_text.ThreeDText = ThreeD.Value End Sub Sub VScroll1_Change () ct_text.TextAngle = VScroll1.Value End Sub Sub VScroll1_Scroll () ct_text.TextAngle = VScroll1.Value End Sub