How to make a context menu popup at specific position from another event such as btn clk.

  • Thread starter Thread starter George Padvorac
  • Start date Start date
G

George Padvorac

I'm trying to create my own main menu bar so I'll have greater control of how it looks and works. So I was going to have either a button or an image act as the File menu button and when the user clicks on it, I wanted to force a context menu to pop open properly aligned at the bottom left corner of the of the File button. Problem is that context menus seem to want to be associated with a specific control. From code, how can I tell a popup menu to show at a specific point?

Thanks.
 
George Padvorac said:
I'm trying to create my own main menu bar so I'll have greater control of how it looks and works.  So I was
going to have either a button or an image act as the File menu button and when the user clicks on it, I wanted
to force a context menu to pop open properly aligned at the bottom left corner of the of the File button. 
Problem is that context menus seem to want to be associated with a specific control.  From code, how can I tell
a popup menu to show at a specific point?

Have a look at its 'Show' method.
 
Back
Top