> M Cs,
> 
> try this:
> create a Menu with name mnuGrid and make it hidden
> then add this to the gridview's mousedown event
> 
> PUBLIC SUB gridview1_MouseDown()
> 
>   IF gridview1.Rows.Count > 0 AND gvBackup.Column = 1
>   SELECT Mouse.Right
>   CASE TRUE
>      mnuGrid.popup()
>   CASE ELSE
>   END SELECT
>   ENDIF
> 
> END
> 
> This will popup your menu if you right click on the second column of any
>  row (besides the header) of the gridview.
> 
> I hope it helps
> 
> Regards,
> Dimitris
> 

Never use the MouseDown event to popup menu. You must use the Menu event 
instead, otherwise the menu key will never work.

Regards,

-- 
Benoît Minisini

------------------------------------------------------------------------------
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