|
-
Sep 9th, 2000, 09:19 AM
#1
Thread Starter
Junior Member
Is it possible to activate a menu with the right mouse click ?
Thanks
-
Sep 9th, 2000, 09:23 AM
#2
Ex-Super Mod'rater
don't understand what u mean??
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Sep 9th, 2000, 09:28 AM
#3
Thread Starter
Junior Member
For exemple with winamp:
when you click (right click) on the main window, a menu appear.
Can I do this with vb ?
Do you understand, now ?
-
Sep 9th, 2000, 09:32 AM
#4
Fanatic Member
You need to create a reguler menu usung the menu editor.
Like:
File (mnuFile)
....About (mnuAbout)
....Minimize (mnuMini)
....Exit (mnuExit)
make the mnu file not visible.
the code is:
Private Sub Command1_Click()
PopupMenu Form1.mnuFile
End Sub
-
Sep 9th, 2000, 09:33 AM
#5
Ex-Super Mod'rater
I understand but I will have to get back to u cos I can't remmember straight off. Mind I saw something like this in one of VB-Worlds topics
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Sep 9th, 2000, 09:45 AM
#6
Thread Starter
Junior Member
Just one thing: how can i do a demarcation between two menu ?
Thanks
-
Sep 9th, 2000, 11:35 AM
#7
Right click:
Code:
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then PopupMenu MyMenu
End Sub
And a demarcation in the menu, add a hyphen as the caption: -
(For the post below: My mistake! )
[Edited by Matthew Gates on 09-09-2000 at 01:27 PM]
-
Sep 9th, 2000, 12:24 PM
#8
Shouldn't it be PopupMenu MyMenu
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|