1st you would need to create a hidden menu using the menu editor

Then you would use the 'menu' event of the control (right click the
control select 'event' then menu) to popup the menu.

        mnuname.popup() 'where mnuname is the menu item name.

For when it gets activated you would have to do some coding with the
mouse   (Mouse.X etc) IE check where the mouse is and if it where it
should be then show the menu.

I hope that helps

Steven
On Fri, 2009-10-09 at 08:44 +0200, M. Cs. wrote:
> Is it possible to assign a pop-up menu to an object?
> I mean I have a gridview and I would like to have a right-click menu with
> few options like select all, delete selected etc.
> It would be activated when the mouse's pointer is above the gridview and the
> right mouse button would be clicked. A similar possibility exist in Delphi.
> I'm on Gambas 2.13.
> Thanks!
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay 
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 

Attachment: signature.asc
Description: This is a digitally signed message part

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to