I am developing an application that has a vertically scrolling canvas (controlled by a slider) within a panel on my main form.
The following constants are used by the program:
PanelX ; x position of panel within window
PanelY ; y position of panel within window
PanelWidth ; width of the container panel
PanelHeight ; height of the container panel
CanvasHeight ;height of teh scrolling canvas
I would like to know the mouse position relative to the CANVAS at any time (so that I can have rollover tool tips), but am crap at maths. Any suggestions gratefully received.
The following constants are used by the program:
PanelX ; x position of panel within window
PanelY ; y position of panel within window
PanelWidth ; width of the container panel
PanelHeight ; height of the container panel
CanvasHeight ;height of teh scrolling canvas
I would like to know the mouse position relative to the CANVAS at any time (so that I can have rollover tool tips), but am crap at maths. Any suggestions gratefully received.