|
-
May 9th, 2001, 04:35 AM
#1
Thread Starter
Addicted Member
Drawing a Dash Line Problem
I need to show a red dashed line with a red arrow at each end
e.g. >- - - - - -<.
The line has to be dragged over multi controls so I was using a usercontrol by setting the MaskPicture to a >- - - - - -< bitmap. This works, but the length of the >- - - - - -< line needs to be dynamic.
I already know the maximum length the line can be, so what I was thinking of doing was storing an image of the maximum length line without the right hand arrow in an image list.
e.g. >- - - - - - - - - - - -
Then, when I need to show the line somehow trim the >- - - - - - - - - - - - line to the correct size
e.g. >- - - - -
Then somehow add the < to image to make >- - - - -< and then set the MaskPicture to the new image.
How do I do this, or is there a better way?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|