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