Creating Popup Menu at runtime

1 posts, 0 answers
  1. xavendano
    xavendano avatar
    35 posts
    Member since:
    Feb 2012

    Posted 11 Jul 2012 Link to this post

    Hi all

    The following code allows the creation of a control RadMenu at runtime with an item

                 Dim As New RadMenu NewMenu
                 newMenu.Name = "MyPopUpMenu"

                 Dim As New RadMenuItem newMenuItem
                 With newMenuItem
                     . Name = "Name_A"
                     . Header = "Option A"
                 End With

                 newMenu.Items.Add (newMenuItem)
                 newMenu.ClickToOpen = True

    It works without problems but how I can:
    1 - Make it visible, the object is created in memory but not a method I have "Display" or "Show" or the like to show it.
    2 - Place it in a specific location, such as the mouse pointer.
    3-Make it a shortcut menu, type Popup .....

    Thanks to all .....
Back to Top