Results 1 to 9 of 9

Thread: menu bar??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253
    Yesterday I posted a question about putting a line underneath the whole menu bar itself, but the suggestion that was given didn't work. So I was wondering if anyone knows how do the above question. I would like it to look like it is seperated from the form(to make look more professional). Thanks in advance to anyone.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    use the shape control and draw a line beneath it.

    Private Sub Form_Activate()
    Shape1.Width = Form1.Width - 400
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Guest
    Or you can use the Line method to draw it.
    Code:
    Private Sub Form_Activate()
        Me.AutoRedraw = True
        Me.Line (0, 0)-(Form1.ScaleWidth, 0), RGB(128, 128, 128)
        Me.Line (15, 15)-(Form1.ScaleWidth, 15), vbWhite
    End Sub

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    Fremont Ohio 43420
    Posts
    253

    Talking

    Thanks Megatron and HeSaidJoe the suggestions really helped!!

  5. #5
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    I have one tiny little complaint about Magatron's method.
    Do you really thing that ALL Windows users have that ****** (uups...) grey color for background???

    It think it would me much nicer if you use system colors to draw those lines, like this:

    Private Sub Form_Load()
    Me.AutoRedraw = True
    End Sub

    Private Sub Form_Resize()
    Me.Line (0, 0)-(Form1.ScaleWidth, 0), vbApplicationWorkspace
    Me.Line (15, 15)-(Form1.ScaleWidth, 15), vbScrollBars
    Me.Refresh
    End Sub

  6. #6
    Guest
    It'll also be nice if you use the right constants...

    vbApplicationWorkspace should change to vb3DShadow and vbScrollBars should change to vb3DLight.

  7. #7
    Addicted Member
    Join Date
    Aug 2000
    Location
    Croatia
    Posts
    200
    Uuuups...my mistake...

    P.S. But the colors are the same

  8. #8
    Fanatic Member
    Join Date
    Apr 2000
    Location
    Whats a location?
    Posts
    516
    You could use the GetSystemColor API if you are soooo desperate to conform the user's exact visual specifications
    Courgettes.

  9. #9
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Originally posted by Arcom
    Uuuups...my mistake...

    P.S. But the colors are the same
    As you said yourself:
    "Do you really think that ALL Windows users have the same ****** (uups...) colors for 3D object shadows that they have for there application workspace.

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