Draw Line
-
I am populating two buttons at the run time to panel. These buttons can freely move to any position of panel by dragging it. I need to join these buttons by using a line. This line should be move according to the button move. Please Help me to do this
Dushan Perera
-
I am populating two buttons at the run time to panel. These buttons can freely move to any position of panel by dragging it. I need to join these buttons by using a line. This line should be move according to the button move. Please Help me to do this
Dushan Perera
Are you asking someone to code this for you? What have you done so far? Drawing a line requires tow points, pick them and draw the line, update the points when the buttons move.
only two letters away from being an asset
-
I am populating two buttons at the run time to panel. These buttons can freely move to any position of panel by dragging it. I need to join these buttons by using a line. This line should be move according to the button move. Please Help me to do this
Dushan Perera
All you need to do is handle the panels MouseDown, MouseMove and MouseUp along with a paint(I dont remember if it is panel's or form's event) event wisely. And yes you will also need some coordinate geometry. Good luck.
C isn't that hard: void (*(*f[])())() defines f as an array of unspecified size, of pointers to functions that return pointers to functions that return void "Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live." - Martin Golding