|
| Iniciado por guest, 08,sep. 2017 16:02 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 08,septiembre 2017 - 16:02 |
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 |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,septiembre 2017 - 16:29 |
Hi Gary,
look in the windev examples for the one called (from the top of my head) wd signature...
It does most of what you are describing (for another purpose, of course).
For the calculation of the line length, X,Y, X2,Y2 makes a rectangle, and you just need to calculate the hypotenuse to get the lenght (in pixels)
Best regards |
| |
| |
| | | |
|
| | | | |
| | |
|