images in Tooltip windows

This is a discussion on images in Tooltip windows within the Windows Programming forums, part of the Platform Specific Boards category; Hi there- I am working on an app with another programmer and I am trying to find out if it ...

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Question images in Tooltip windows

    Hi there-

    I am working on an app with another programmer and I am trying to find out if it is possible to insert an image (.bmp or .jpg or otherwise) into a tooltip window.

    In researching at msdn there is no mention of whether image files can be put into tooltips. There is a reference to imagery being incorporated into Stack Panels but I dont think that is what I need.

    If tooltips DO NOT allow images in their content. Is there another option that would allow for imagery based popups (within the same application)?

    thank you very much

    Jon

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    If you are using a CHTML document with MFC, you might could possibly use javascript and CSS / DHTML to simulate this.

    Todd
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    3
    CHTML document would be the contents of the tooltip?

  4. #4
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    No, CHTML would be the contents of the panel you are displaying. The tool tip would be a javascript rollover, with the contents being displayed in some <div> section you defined that is only visible when the mouse of positioned over your widget. Inside the <div>, you could have text, images, forms, whatever.

    Todd
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    3
    ohhhh I see what you are saying. Within the CHTML panel these image based tooltips would appear using DHTML/CSS formatting.

    So is there a way to customize these tooltips system wide using the MFC?
    I am looking for way to have certain words that show up either in Word Docs, Excel, IE, Outlook, Firefox as highlighted and then have it so that the user onMouseover would be shown a tooltip with an image.

    thanks for your help-
    Jon

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Just starting Windows Programming, School me!
    By Shamino in forum Windows Programming
    Replies: 17
    Last Post: 02-22-2008, 08:14 AM
  2. dual boot Win XP, win 2000
    By Micko in forum Tech Board
    Replies: 6
    Last Post: 05-30-2005, 03:55 PM
  3. Replies: 18
    Last Post: 09-12-2003, 11:39 PM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 06:31 PM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 10:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21