[Gambas-user] menu action

Benoît Minisini gambas at ...1...
Tue Sep 1 17:45:11 CEST 2009


> Il martedì 1 settembre 2009 10:28:25 Benoît Minisini ha scritto:
> > > Hi Gambas users.
> > > Is it possible to assign some action to a menu directly (this menu has
> > > just one item and it is silly to click first on a menu and then on the
> > > only item) Alternatively, Is it possible to place a simple button on a
> > > menu line of the form?
> > > Also is there any way (I cannot find it, sorry) to change  menu color
> > > like it is possible for the form background?
> > > Aleks
> >
> > No, no, no.
> >
> > 1) A menu title cannot act like a button.
>
> Yes, it can ;-)
>
> I've attached an example.
> Just click on the menu title and you throw two dices.
> It uses the Show event. Not clean but it works.
>
> Saluti,
>
> Stefano
>

But it may not work anymore on another toolkit or in the future!

-- 
Benoît




More information about the User mailing list