Thread: images in Tooltip windows

  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
    Chappell Hill, Texas
    Posts
    2,332
    If you are using a CHTML document with MFC, you might could possibly use javascript and CSS / DHTML to simulate this.

    Todd
    Mainframe assembler programmer by trade. C coder when I can.

  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
    Chappell Hill, Texas
    Posts
    2,332
    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
    Mainframe assembler programmer by trade. C coder when I can.

  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, 02:55 PM
  3. Replies: 18
    Last Post: 09-12-2003, 10:39 PM
  4. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM