Click to See Complete Forum and Search --> : How do I use divider lines in menus?
Apollo
Nov 5th, 1999, 10:14 PM
Like the ones that seperate the Save, and Save As, from Print, and Print Preview in paint.
So how do I use them?
------------------
"I'm carrying a Geometry book, but I'm not in Geometry...it's crazy...crazy man!"
Yonatan
Nov 5th, 1999, 10:20 PM
Create a menu item with the Menu Editor which you want to be a separator, and change its Caption to - (a single dash). VB will automatically make it a separator.
------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)
Apollo
Nov 5th, 1999, 10:31 PM
Sweet.
Now how do I seperate the menu bar from the rest of the window using the same kind of line?
------------------
"I'm carrying a Geometry book, but I'm not in Geometry...it's crazy...crazy man!"
Yonatan
Nov 6th, 1999, 12:38 AM
Create a Line control, name it Line1, set it's Index property to 0 (zero) and add this code:
Private Sub Form_Load()
Load Line1(1)
Line1(1).Visible = True
Line1(0).BorderColor = vbGrayText
Line1(1).BorderColor = vb3DHighlight
Call Form_Resize
End Sub
Private Sub Form_Resize()
Line1(0).X1 = 0
Line1(0).X2 = Width
Line1(0).Y1 = 0
Line1(0).Y2 = 0
Line1(1).X1 = 0
Line1(1).X2 = Width
Line1(1).Y1 = ScaleX(1, vbPixels, ScaleMode)
Line1(1).Y2 = ScaleX(1, vbPixels, ScaleMode)
End Sub
------------------
Yonatan
Teenage Programmer
E-Mail: RZvika@netvision.net.il
ICQ: 19552879 (http://www.icq.com/19552879)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.