home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 2.00 Begin Form w_cttips_demo BackColor = &H00C0C0C0& BorderStyle = 3 'Fixed Double Caption = "ctTIPS (Popup Help Tips) Demo" ClientHeight = 4065 ClientLeft = 1815 ClientTop = 1590 ClientWidth = 5910 Height = 4590 Left = 1755 LinkTopic = "Form1" MaxButton = 0 'False MDIChild = -1 'True ScaleHeight = 4065 ScaleWidth = 5910 Top = 1125 Width = 6030 Begin CommandButton Command2 Caption = "Button" Height = 375 Left = 480 TabIndex = 10 Tag = "Another Button" Top = 3420 Width = 1515 End Begin ctRADIO ctRadio1 Alignment = 0 'Left Justify BackColor = &H00C0C0C0& Caption = "A Radio Button" DisableColor = &H00808080& ForeColor = &H00000000& Height = 255 Left = 300 PicStyle = 1 'Style #1 ShowFocus = -1 'True TabIndex = 9 Tag = "Radio Button" Top = 2340 Value = 0 'False Width = 2505 End Begin ctCHECK ctCheck1 Alignment = 0 'Left Justify BackColor = &H00C0C0C0& Caption = "A Check Box" DisableColor = &H00808080& ForeColor = &H00000000& Height = 285 Left = 300 PicStyle = 1 'Style #1 ShowFocus = -1 'True TabIndex = 8 Tag = "Check Box" Top = 1830 Value = 0 'False Width = 2505 End Begin CommandButton Command1 Caption = "E&xit" Height = 435 Left = 4680 TabIndex = 7 Tag = "Exit the Demo" Top = 3510 Width = 975 End Begin Frame Frame1 BackColor = &H00C0C0C0& Caption = "Alignment" ForeColor = &H00000000& Height = 1515 Left = 3660 TabIndex = 3 Top = 1560 Width = 1935 Begin OptionButton Option3 BackColor = &H00C0C0C0& Caption = "Under Control" ForeColor = &H00000000& Height = 315 Left = 240 TabIndex = 5 Tag = "Align Under Control" Top = 870 Width = 1515 End Begin OptionButton Option2 BackColor = &H00C0C0C0& Caption = "Under Cursor" ForeColor = &H00000000& Height = 315 Left = 240 TabIndex = 4 Tag = "Align Under Cursor" Top = 420 Value = -1 'True Width = 1455 End End Begin TextBox Text1 BackColor = &H00FFFFFF& Height = 285 Left = 990 TabIndex = 1 Tag = "A different color now" Text = "Error Field" Top = 2820 Width = 1995 End Begin ctTIPS ctTips1 Active = -1 'True AddTip = "" Alignment = 0 'Display Under Pointer BackColor = &H0080FFFF& Delay = 12 FontBold = -1 'True FontItalic = 0 'False FontName = "MS Sans Serif" FontSize = 9.75 FontStrikethru = 0 'False FontUnderline = 0 'False ForeColor = &H00000000& Left = 4140 TimerID = 0 Top = 3510 End Begin Label Label3 Alignment = 2 'Center BackColor = &H00C0C0C0& Caption = "Place mouse pointer over top one of the controls" FontBold = 0 'False FontItalic = 0 'False FontName = "MS Sans Serif" FontSize = 8.25 FontStrikethru = 0 'False FontUnderline = 0 'False ForeColor = &H00000000& Height = 285 Left = 1200 TabIndex = 6 Top = 1140 Width = 3675 End Begin Label Label2 BackColor = &H00C0C0C0& Caption = "Error :" Height = 285 Left = 330 TabIndex = 2 Top = 2850 Width = 615 End Begin Label Label1 Alignment = 2 'Center BackColor = &H00C0C0C0& Caption = "The ctTIPS VBX is a help tips control. It allows the programmer to assign a small popup window to objects in a form. The text within the popup window can either be supplied by the controls TAG property or by pre-loading the controls handle and text." ForeColor = &H00800000& Height = 885 Left = 120 TabIndex = 0 Top = 210 Width = 5655 End Sub Command1_Click () Unload w_cttips_demo End Sub Sub ctTips1_ItemCheck (HANDLE As Integer) If (HANDLE = text1.hWnd) Then ctTips1.BackColor = &HFF& ctTips1.ForeColor = &HFFFF& Else ctTips1.BackColor = &H80FFFF ctTips1.ForeColor = 0 End If End Sub Sub Form_Load () ' Center the window on the screen Move (Screen.Width - Width) / 2, (Screen.Height - Height) * .2 w_mdi_main.bt_tips = BUTTON_DISABLE w_mdi_main.ctTips1.Active = False End Sub Sub Form_Unload (Cancel As Integer) w_mdi_main.bt_tips = BUTTON_UP w_mdi_main.ctTips1.Active = True End Sub Sub Option2_Click () ctTips1.Alignment = 0 End Sub Sub Option3_Click () ctTips1.Alignment = 1 End Sub