Results 1 to 7 of 7

Thread: [RESOLVED] Horizontal Rule

  1. #1

    Thread Starter
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    [RESOLVED] Horizontal Rule

    Like the ones <HR> in html. Any idea how to do these in vb?? Ive seen them but dont know how myself
    Last edited by TomGibbons; May 28th, 2002 at 05:58 PM.

  2. #2
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    quick one i made is attached using Line control.
    you can achieve the same thing using Form.Line if you want.
    Attached Files Attached Files

  3. #3

    Thread Starter
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Cheers. Dont see how you drew it like that in the first place though.

  4. #4
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    Originally posted by TomGibbons
    Cheers.
    No problem.
    Originally posted by TomGibbons
    Dont see how you drew it like that in the first place though.
    I just changed the Y1 and Y2 properties manually using the Properties window.

    p.s. why is this kinda resolved? what isn't resolved?

  5. #5

    Thread Starter
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345
    Originally posted by DovyWeiss

    why is this kinda resolved? what isn't resolved?
    Thats ok now. I just wondered how you drew the rule in the first place. Its great thanks!!

  6. #6
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    this is from VB's setup pdwizrd:

    VB Code:
    1. '-----------------------------------------------------------
    2. ' SUB: EtchedLine
    3. '
    4. ' Draws an 'etched' line upon the specified form starting
    5. ' at the X,Y location passed in and of the specified length.
    6. ' Coordinates are in the current ScaleMode of the passed
    7. ' in form.
    8. '
    9. ' IN: [frmEtch] - form to draw the line upon
    10. '     [intX1] - starting horizontal of line
    11. '     [intY1] - starting vertical of line
    12. '     [intLength] - length of the line
    13. '-----------------------------------------------------------
    14. '
    15. Public Sub EtchedLine(frmEtch As Form, ByVal intX1 As Integer, ByVal intY1 As Integer, ByVal intLength As Integer)
    16.     Const lWHITE& = vb3DHighlight
    17.     Const lGRAY& = vb3DShadow
    18.  
    19.     Dim sngPixelX As Single
    20.     Dim sngPixelY As Single
    21.  
    22.     sngPixelX = frmEtch.ScaleX(1, vbPixels, frmEtch.ScaleMode)
    23.     sngPixelY = frmEtch.ScaleY(1, vbPixels, frmEtch.ScaleMode)
    24.  
    25.     frmEtch.Line (intX1, intY1)-(intX1 + intLength + sngPixelX, intY1 + sngPixelY), lWHITE, BF
    26.     frmEtch.Line (intX1, intY1)-(intX1 + intLength, intY1), lGRAY
    27. End Sub
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  7. #7
    Hyperactive Member DovyWeiss's Avatar
    Join Date
    Feb 2002
    Location
    Miami Beach, FL
    Posts
    366
    this is from VB's setup pdwizrd
    it is, in effect, the same thing.

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