LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i show a bitmap relative to mouse coordination

hi

 

I want to show a image (bitmap) and i want him to move with the mouse.

I'm use "GetRelativeMouseState" to get coordinations of the mouse and i want that the image will move by the coordinations.

Ther is a function that can do this? 

0 Kudos
Message 1 of 3
(2,900 Views)

You can use SetCtrlAttribute (, , ATTR_TOP, ); and SetCtrlAttribute (, , ATTR_LEFT, ); to position the picture control.

 

Hth,

 

Wolfgang

0 Kudos
Message 2 of 3
(2,895 Views)

Hi

This should do what you want. (see attachment) Build and run the project.  The canvas will follow the mouse wherever it goes.

Ryk

0 Kudos
Message 3 of 3
(2,862 Views)