[Gambas-user] How to write code for form menus ?

Peter Landgren peter.talken at ...1879...
Wed Apr 9 12:11:09 CEST 2008


Look nin the atteched project.
It's in Swedish, but I think you can understand it.

/Peter

> Hi to all,
>
> I have some difficulties with form menus.
>
> I created a menu with Menu Editor in FMain, called mnuMenu1
>
> What code i must write for click event of this menu?
>
> when i click the menu from form design it goes to code editor but
> there is no SUB for
>
> mnuMenu1
>
> i tried to write the following but does not work.
>
> PUBLIC SUB mnuMenu1_Click()
>
>   message("menu click")
>
> END
>
> I use Gambas2-2.4.0
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java
>one _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Peter Landgren
Talken Hagen
671  94 Brunskog
SWEDEN

0570-530 21
070-635 4719
peter.talken at ...1879...
skype:pgl4820.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MenuExample.tar.bz2
Type: application/x-tbz
Size: 1964 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20080409/48f7390a/attachment.bin>


More information about the User mailing list