Results 1 to 9 of 9

Thread: Right-click menu like in IE.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Oporto, Portugal
    Posts
    134
    I want ot create a menu like when you right-click in the Internet Explorer. HOW??
    Jorge Ledo
    [email protected]
    Portugal were the sun allways shine... for programmers.

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Oporto, Portugal
    Posts
    134

    Sorry

    Sorry I've just found the "PopupMenu Method" and (amazingly) it works fine.

    Thanks anyway.

    Jorge Ledo
    [email protected]
    Portugal were the sun allways shine... for programmers.

  3. #3
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    can someone tell me this, how to do it pls? i am trying to do it, but i need a borderless form

    tnx

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Oporto, Portugal
    Posts
    134
    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.
    Jorge Ledo
    [email protected]
    Portugal were the sun allways shine... for programmers.

  5. #5
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    ????it doesnt solve the problem as my form aint borderless????

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Oporto, Portugal
    Posts
    134

    Sorry ?

    I'm sorry but I don't understand. You want a popupmenu without border or not being 3d ?

    Jorge Ledo
    [email protected]
    Portugal were the sun allways shine... for programmers.

  7. #7
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91
    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'.

  8. #8
    Guest

    Smile

    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

  9. #9
    Lively Member
    Join Date
    Mar 2000
    Location
    Lowestoft
    Posts
    91

    Smile

    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
  •  



Click Here to Expand Forum to Full Width