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

> 2) You can only put menu title in the menu bar.
>
> 3) The menu background color is controled by the underlying widget style,
> and does not care most of the time with the background color you want.
>
> Sorry!


Attachment: one-item-menu-0.0.1.tar.gz
Description: application/tgz

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to