Results 1 to 6 of 6

Thread: RESOLVED setting line preferences

  1. #1

    Thread Starter
    Hyperactive Member mvrp350's Avatar
    Join Date
    Feb 2001
    Location
    Best, the Netherlands
    Posts
    322

    RESOLVED setting line preferences

    Hi y'all,

    How do I set the thickness, and type of a line?

    VB Code:
    1. 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.

  2. #2
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    You can use DrawWidth and DrawStyle.

    Before drawing your line set the values of these to an integer. e.g.


    VB Code:
    1. DrawWidth = 3
    2.     DrawStyle = 3
    This world is not my home. I'm just passing through.

  3. #3

    Thread Starter
    Hyperactive Member mvrp350's Avatar
    Join Date
    Feb 2001
    Location
    Best, the Netherlands
    Posts
    322

    Thumbs up

    Thanks trisuglow, you solved my problem.

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Or if you want to make things difficult for yourself, draw lots of parallel lines
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    Jamie,

    That's not nearly difficult enough. Why not use PSet()?

    Tris.
    This world is not my home. I'm just passing through.

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    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
  •  



Click Here to Expand Forum to Full Width