Library tutorials & articles
Menus
By James Crowley, published on 14 Jul 2001
Menu seperators
On menus you will notice menu separators like this:
To do this in VB, simply use the following steps.
1) Select Tools | Menu Editor
2) Click on the item on the list after the menu item you want the separator to be displayed after, and click Insert. Make sure that there are the same number of .... before the item. If there is not use the < (reduce) and > (increase) buttons to change it.
3) Enter the a "-" (without quotes) in the Caption text box. This tells VB that this is a menu separator.
4) Enter a name for the separator and click OK.
Related articles
Related discussion
-
how do you hide all in VB6
by CapnJack (1 replies)
-
Problem with Input File
by novavb6 (3 replies)
-
How to produce a txt file with a table??
by novavb6 (1 replies)
-
VB6 compatability from XP to Vista
by bronx (1 replies)
-
Fully justify code
by fresh (0 replies)
In this tutorial i dosent tell you the code for the menu. and im also very new to vb so if someone could tell me what i need to do for the code that would be great.
I have made a menu with1 1 Item (about) set it to enable - unchecked visable
made a click event(msg box)
then in my form mouse up event I put
Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = vbRightButton Then
' Set the flags
vFlags = vbPopupMenuRightButton
' Display the menu
PopupMenu about, vFlags
End If
End Sub
do i need to dim vFlags = "somthing " in the Option Explicit section of the code?
sorry 'bout that... there was an old style link lurking in there... I have corrected the link on
http://www.developerfusion.com/show/15/10/, which now points to
http://www.developerfusion.com/show/49/4/ (menu status subclassing)
not sure about changing the colour of your menu, other than drawing it yourself, or using one of the http://vbaccelerator.com/ controls
i click view an example and no example???
i really want to change the look of my menu,change color or nything? ny ideas?
This thread is for discussions of Menus.