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. C#
  4. Display ToolTip over Rectangles etc

Display ToolTip over Rectangles etc

Scheduled Pinned Locked Moved C#
questiongraphicsalgorithmshelp
3 Posts 2 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.
  • A Offline
    A Offline
    AussieLew
    wrote on last edited by
    #1

    I have a custom control containing a movable Thumb (similar to ScrollBar Thumb), drawn using a System.Drawing.Rectangle which can be clicked and dragged etc As I am showing ToolTips for other controls within this custom control, I would like to be able to show a similar style ToolTip for the Thumb (and other similar pseudo controls) . My understanding is that as the Thumb is not based on Control, the ToolTip class cannot be used to do this. Do I need to make my Thumb a Thumb class based on Control, to attach ToolTips? Is there a way to attach a ToolTip to Rectangles etc in another fashion? Thanks for any help or suggestions. AussieLew PS.. I have done a fair bit of searching on this and have found nothing helpful even though I thought it would be a common question.

    M 1 Reply Last reply
    0
    • A AussieLew

      I have a custom control containing a movable Thumb (similar to ScrollBar Thumb), drawn using a System.Drawing.Rectangle which can be clicked and dragged etc As I am showing ToolTips for other controls within this custom control, I would like to be able to show a similar style ToolTip for the Thumb (and other similar pseudo controls) . My understanding is that as the Thumb is not based on Control, the ToolTip class cannot be used to do this. Do I need to make my Thumb a Thumb class based on Control, to attach ToolTips? Is there a way to attach a ToolTip to Rectangles etc in another fashion? Thanks for any help or suggestions. AussieLew PS.. I have done a fair bit of searching on this and have found nothing helpful even though I thought it would be a common question.

      M Offline
      M Offline
      Michael J Eber
      wrote on last edited by
      #2

      When developing your application you need to keep aware of what occurs in other applications you use. The scroll bar (or Thumb as you call it) is just a slider within another containment object. A tooltip is useful for the data container but really useless for the scrollbar. If you do need a tooltip for that, then the users have NO PC experience what-so-ever and the problem should be address via training instead of an improper use of tooltips.

      A 1 Reply Last reply
      0
      • M Michael J Eber

        When developing your application you need to keep aware of what occurs in other applications you use. The scroll bar (or Thumb as you call it) is just a slider within another containment object. A tooltip is useful for the data container but really useless for the scrollbar. If you do need a tooltip for that, then the users have NO PC experience what-so-ever and the problem should be address via training instead of an improper use of tooltips.

        A Offline
        A Offline
        AussieLew
        wrote on last edited by
        #3

        The custom scrollbar(not based on Scrollbar for various reasons) is being used on a control in a situation where the user may view it as a position indicator only. As I have provided ToolTips for all other controls (ToolButtons, TextBoxes etc) within this control, in the interests of consistency, I thought it proper to also provide a ToolTip for non-control based items that can provide actions. All this aside though, provision of a ToolTip for non-control based items must be a common need surely. Examples that spring to mind are: .. A drawing or cad situation where you could provide instant feedback of line & shape properties. .. Flowcharting and Statistical charts etc where hovering over a particular area would provide additional detail. .. Breaking up a graphic eg a Map, to provide additional info for various segments, States or legends etc. .. Inline Text within a document, where intellisense type information could be provided on mousehover.

        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