×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-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!

*Eng-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.

Students Click Here

Mixing Fonts in Tool Tips

Mixing Fonts in Tool Tips

Mixing Fonts in Tool Tips

(OP)
Does anyone know a way to mix fonts in Tool tips.

For example, I have a label for "Area = ", and when the cursor hovers over label, I want Tool Tip to display formula, i.e. area of a circle: "Area = (pi)*r^2".  But instead of writing "(pi)", I'd rather use the symbol for pi, i.e. the letter "p" using symbol font while other parts of the Tool Tip would be in Arial.

Extra credit: I'd like for the "2" to be "superscript" rather than "^2".  

RE: Mixing Fonts in Tool Tips

Try looking at Character Map.  For Arial, code 178 is ² and 182 looks like ¶.  Hopes this helpsl

RE: Mixing Fonts in Tool Tips

(OP)
Regg,

Thanks, that's a good idea & works with Arial.  After looking at this approach, the Times Roman pi looks better but it seems the Tool Tips font is fixed (as Arial I suppose; several Fonts look similar & probably have same Chr numbers ???) because changing the label font has no effect on the Tool Tip font.  

Many Thanks

RE: Mixing Fonts in Tool Tips

The tool tips font is controlled by Windows I believe.  Right click on your desktop .  Select Properties and then the Appearance tab.  From the Item drop down, select Tool Tip.  The font and font size is listed below.  You should be able to change it to anything you like.  Unfortunately, not everyone that may use your program will want to change fonts on their PC.

Regards,

Regg

RE: Mixing Fonts in Tool Tips

(OP)
Regg,

I'm impressed. Thanks much.  Is there any way to change a Windows property from within a VB program, maybe an API call?

It seems that if not, you can't do much fancy with the other characters in a font (i.e. codes 178 & 182) because you just don't know which Tool Tip font they are using.  

Your thoughts please.

Thanks,
Alan

RE: Mixing Fonts in Tool Tips

Alan,

I imagine there is an API but I do not know what it is off hand.  I have not done anything like that since Windows 3.1 (been out of programming for a few years).  One thing you must remember.  If you are planning on messing with other people's configurations, you better have your program inform the user of this change.  I for one have a difficult time reading certain fonts.  I have set mine (along with the font size)to those I can.

Seems to me I read a tip years ago on how to simulate a tool tip.  I will page through my reference books when I get a chance and see if I can find it.  Using that approach, you can set the font to one which will display ^2 and pi to your liking.

Regards,

Regg

RE: Mixing Fonts in Tool Tips

(OP)
Regg,
Thanks again.
Alan

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 Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

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

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

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

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close