|
-
Feb 20th, 2002, 04:24 AM
#1
Thread Starter
Hyperactive Member
RESOLVED setting line preferences
Hi y'all,
How do I set the thickness, and type of a line?
VB Code:
MyForm.line (x1,y1)-(x2,y2),rgb(255,0,0)
I want to change the thickness so it's drawn 'bold'
I also want to be able to set the linetype, i.e. dashed, dash-dot, continious.
any help is more than welcome
Thanks in advange
Last edited by mvrp350; Feb 20th, 2002 at 04:42 AM.
-
Feb 20th, 2002, 04:35 AM
#2
You can use DrawWidth and DrawStyle.
Before drawing your line set the values of these to an integer. e.g.
VB Code:
DrawWidth = 3
DrawStyle = 3
This world is not my home. I'm just passing through.
-
Feb 20th, 2002, 04:41 AM
#3
Thread Starter
Hyperactive Member
Thanks trisuglow, you solved my problem.
-
Feb 20th, 2002, 04:42 AM
#4
Retired VBF Adm1nistrator
Or if you want to make things difficult for yourself, draw lots of parallel lines
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Feb 20th, 2002, 04:44 AM
#5
Jamie,
That's not nearly difficult enough. Why not use PSet()?
Tris.
This world is not my home. I'm just passing through.
-
Feb 20th, 2002, 04:47 AM
#6
Retired VBF Adm1nistrator
SetPixel API
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
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
|