HAVE SHAPE MOUSE_MOVE EVENT

User avatar
sal21
PlatinumLounger
Posts: 4440
Joined: 26 Apr 2010, 17:36

HAVE SHAPE MOUSE_MOVE EVENT

Post by sal21 »

HAVE SHAPE MOUSE_MOVE EVENT?

I need to show a tooltip on shape(0)

User avatar
SpeakEasy
5StarLounger
Posts: 600
Joined: 27 Jun 2021, 10:46

Re: HAVE SHAPE MOUSE_MOVE EVENT

Post by SpeakEasy »

Shape controls do not support any events, nor do they have a tooltip property.

If you need these things you may be better off using a Picturebox instead of a Shape, assuming your shapes are rectangles/squares (and even if they are not there are some underhand tricks - e.g using SetWindowRgn API call - to make pictureboxes in different shapes)

or ,you could write your own code to detect whether the mouse is over a particular shape, and then more code to display a fake tooltip-like popup at the correct place. But using a Picturebox will be easier.
Last edited by SpeakEasy on 13 Jun 2024, 11:05, edited 1 time in total.

User avatar
sal21
PlatinumLounger
Posts: 4440
Joined: 26 Apr 2010, 17:36

Re: HAVE SHAPE MOUSE_MOVE EVENT

Post by sal21 »

SpeakEasy wrote:
13 Jun 2024, 09:55
Shape controls do not support any events, nor do they have a tooltip property.

If you need these things you may be better off using a Picturebox instead of a Shape, assuming your shapes are rectangles/squares (and even if they are not there are some underhand tricks - e.g using SetWindowRgn API call - to make pictureboxes in different shapes)

or ,you could write your own code to detect whether a mouse is over a particular shape, and then more code to display a fake tooltip-like popup at the correct pace. But using as Picturebox will be easier.
TKS for suggestion.
i yhinking....