Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

rubber-banding (1 reply)

$
0
0
This one is a little off the wall for database programmers but I'm sure it's quite easy if you know the right functions/syntax in WinDev (V22).
I am converting an old program which measures zooplankton. It involves a camera connected to a microscope used to view the critters in lake water samples. I want to be able to measure them using the mouse sort of like this pseudo-code:
On Mouse_Left_Button_Down - record starting position
While Mouse_Move (and Mouse_Button_Down)
draw a line from starting position to current position and erase the line from the last position. i.e. the visual effect is a line which is anchored to the starting point and stretches to the current mouse position
On Mouse_Left_Button_Up - record end position.
Calculate length of line and store in database.
Any clues would be appreciated!
Garry

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>