Ameedoo3000
Make sure in your MAIN form, or at the form level you are using that the environment variable "ShowTips" is = .T.
You can check in your code by setting this message:
MESSAGEBOX(SET("SHOWTIPS"))
And when it reaches that point (put that code in the button MouseEnter event) it will tell you if ShowTips is on or not.
Also, for that button, place in it's init clase:
This.ToolTipText = <whatever you want it to say>
The contents above in <...> can be a literal string, a variable or field.
Examples of the 3 above in order:
This.ToolTipText = "This is the text that shows when my mouse enters the object."
lcTipText = "This is the text that shows when my mouse enters the object."
This.ToolTipText = lcTipText
From a table named TIPS with a field TIPTEXT and content as above:
This.TooTipText = TIPS.TIPTEXT
(Note that you need to be navigated to that record first, but that's how you'd express it.
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."
![[hammer] [hammer] [hammer]](/data/assets/smilies/hammer.gif)