Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. Issue with tooltips for custom drawn image buttons

Issue with tooltips for custom drawn image buttons

Scheduled Pinned Locked Moved Windows Forms
helpcomgraphicsquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TyrionTheImp
    wrote on last edited by
    #1

    Hi All, Am facing an unusual issue with some bitmaps that i`m loading dynamically. The situation is that i`ve got a button on which I draw a bitmap dynamically depending on whether the mouse has hovered over it, if it was previously clicked etc... A tooltip is associated with this button and has ShowAlways = true. I also set ToolTpActive = false and then true due to this fix suggested for a framework bug (as given at http://209.85.229.132/search?q=cache:nj6GSkFDwuIJ:stackoverflow.com/questions/559707/c-tooltip-will-not-re-appear-after-first-use+tooltip%2Bbug%2Bactive%2Bc%23&cd=3&hl=en&ct=clnk&gl=in ) Now the issue is that sometimes when i`m working with other applications the bitmaps get laoded partially and are clipped from the top (maybe upper 25% of it). My button size is the same and i debugged to see if the bitmap gets loaded correctly, and it does. I`ve seen this happening only with buttons that have a tooltip, and this button class is used in 3 separate processes (running simult.) and all of them get clipped one after another. I tried to comment out the SetToolTipText and ShowAlways parts of the code but it still occurs. Has anyone come across such an issue earlier, that too happening across processes ? Any help is most appreciated. Thanks in advance.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups