|
-
Mar 24th, 2000, 02:55 AM
#1
Thread Starter
Addicted Member
I want ot create a menu like when you right-click in the Internet Explorer. HOW??
-
Mar 24th, 2000, 03:40 AM
#2
Thread Starter
Addicted Member
Sorry
Sorry I've just found the "PopupMenu Method" and (amazingly) it works fine.
Thanks anyway.
-
Mar 27th, 2000, 02:09 AM
#3
Lively Member
can someone tell me this, how to do it pls? i am trying to do it, but i need a borderless form
tnx
-
Mar 27th, 2000, 02:52 AM
#4
Thread Starter
Addicted Member
Creat a proj and add a menu to it with the name "PoPMENU" (Tools->Menu-Editor)
Place this code to your proj
---Start code -----
Private Sub form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
If Button = 2 Then
PopupMenu PopMENU
End If
End Sub
----END CODE-----
P.S. - Don't forget to make your menu not visible (uncheck the option button "Visible" in the menu editor screen).
Hope that does it.
-
Apr 3rd, 2000, 04:00 AM
#5
Lively Member
????it doesnt solve the problem as my form aint borderless????
-
Apr 3rd, 2000, 05:49 PM
#6
Thread Starter
Addicted Member
Sorry ?
I'm sorry but I don't understand. You want a popupmenu without border or not being 3d ?
-
Apr 4th, 2000, 12:56 AM
#7
Lively Member
No what i want (sorry for not expliaing myself), but what I want is a popmenu on a form that has no border....This i dont think is possible....you can set the border properties to none, but this still doesnt make the form 'borderless'.
-
Apr 27th, 2000, 04:47 AM
#8
It is possible. Create two forms (form1 and form2). Create a menu on the second form.
On the menu, you have the menu's caption "Menu" and its name "mnumain".
From there on you create whatever else you want and you can have as many menus as you want.
Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then PopupMenu form2.mnumain: Exit Sub 'Main menu
If Button = 2 Then PopupMenu form2.mnuoptions: Exit Sub 'Options menu
End Sub
-
Apr 28th, 2000, 12:28 AM
#9
Lively Member
Oh yeah, why didn't I think of that? Ah well, thanks very much!
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
|