INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Display Comment to button

Display Comment to button

(OP)
hi all.
how can i add comment to any button and it display on mouse move event ?

RE: Display Comment to button

ToolTipText?

Borislav Borissov
VFP9 SP2, SQL Server

RE: Display Comment to button

(OP)
what is mean ?

RE: Display Comment to button

YourButton.ToolTipsText="Read HELP when in doubt!"

RE: Display Comment to button

(OP)
I did this and did not show anything

RE: Display Comment to button

(OP)
the right Answer

RE: Display Comment to button

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

RE: Display Comment to button

Ahmed, the key point here is the comment in the screen shot that you posted: "Sometimes reading the Help file can save a lot of time".

Once we pointed you to the ToolTiptext property, you would have got the full answer by looking up that property in the Help. That would have in turn pointed you to the ShowTips property, and you would have had all the information you needed.

I'm not trying to discourage you from asking questions here, but the Help file is there for a reason. Using the Help file as a primary resource will not only save you time, it will also help you learn your way round VFP.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Display Comment to button

(OP)
Yeah.
Thank you very much dear Mike and dear dear Scott for their wonderful briefing.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close