********************************************************************** * Name: TestForm.Init() Event() Event * Author: JXE 2006/03/03 * Description: Initialization of this form. *********************************************************** ***---| Put This in your Form's "Init Event" or put it in a custom class ***---| That you can drag-n-drop on your form subclasses. ***---| Customize it further, as you wish. Thisform.AddObject("lblCoolTipText", "label") WITH Thisform.lblCoolTipText .AutoSize = .T. .BackColor = RGB(0, 0, 0) .BackStyle = 1 &&---| 1 - Opaque (Default) .BorderStyle = 1 &&---| 1 - Fixed Single .Caption = '' ***.FontBold = .T. .FontName = 'FoxFont' .ForeColor = RGB(255, 255, 0) .Left = 0 .Top = 0 .Visible = .F. .Width = 190 .WordWrap = .T. ENDWITH ********************************************************************** * Name: TestForm.cmd1stFile.MouseMove() Event * Author: JXE 2006/03/03 * Description: Mouse has MOVED-OVER this command button. *********************************************************** LPARAMETERS nButton, nShift, nXCoord, nYCoord ***---| The following can be added to your controls at ***---| the subclass level or wherever you need it. WITH Thisform.lblCoolTipText IF .Visible = .F. IF !EMPTY(This.ToolTipText) This.ToolTipText = '' ENDIF .Caption = 'Is this a WINNER? This has automatic wordwrap features, too' IF !EMPTY(nXCoord) AND !EMPTY(nYCoord) .Left = nXCoord + 5 .Top = nYCoord + 5 ELSE .Left = (This.Left + This.Width) - 3 .Top = (This.Top + This.Height) - 3 ENDIF .Visible = .T. ENDIF ENDWITH ********************************************************************** * Name: TestForm.cmd1stFile.MouseLeave() Event * Author: JXE 2006/03/03 * Description: Mouse has MOVED-OFF this command button. *********************************************************** LPARAMETERS nButton, nShift, nXCoord, nYCoord Thisform.lblCoolTipText.Visible = .F. ********************************************************************** * Name: TestForm.cmdShowTips.Click() Event * Author: JXE 2006/03/03 * Description: Show/Hide, your custom ToolTips. *********************************************************** IF This.Caption = "\<Show ToolTips" This.Caption = "\<Hide ToolTips" Thisform.cmd1stFile.MouseMove() ELSE This.Caption = "\<Show ToolTips" Thisform.cmd1stFile.MouseLeave() ENDIF- justamistere, a mystery, Mister-E.