[Gambas-user] How can I create radio (mutually exclusive) menu?

nando nando_f at ...951...
Sun Nov 29 21:28:42 CET 2009


A radio button is one thing.
A Checkbox is another thing.
Below, somebody wrote..."OK, but how can I get the standard 'radio check' icon"
Someone is confused using Radio from radio button and Check from Checkbox.
There is no check for radio...
If you place two radio buttons on one panel, they are EXCLUSIVE automatically.
No code required.

-Fernando


---------- Original Message -----------
From: Matti <math.eber at ...221...>
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Sent: Sun, 29 Nov 2009 19:10:31 +0100
Subject: Re: [Gambas-user] How can I create radio (mutually exclusive) menu?

> David, why do you want to go the complicated way by all means?
> 
> I simply use the "checked" property of the menu items (like Fabien told you),
> and then:
> 
> PUBLIC SUB mnuSortA_Click()
>   IF mnuSortA.Checked = FALSE THEN
>     mnuSortT.Checked = FALSE
>     mnuSortA.Checked = TRUE
>     .....
> 
> It's easy, works fine, looks fine, and the user won't miss radio icons.
> Matti
> 
> David Dell schrieb:
> > OK, but how can I get the standard radio check icon for menus on the
> > Linux operating system the program is running (for example in Ubuntu
> > the one used in View menu of the Calculator program, etc.)? Is there a
> > way to get if from the system using Gambas instead of including it in
> > my program?
> > 
> > Thank you,
> > David
> > 
> >> it simply don't exist... you need to use the check mark and then
> >> compute the exclude by you self... it's not so complicated to do.
> >>
> >> 2009/11/27 David Dell <davidmdell at ...626...>:
> >>> I'm using Gambas 2.13 on Ubuntu 9.10. I have created a QT graphical
> >>> application and I'm trying to create radio (mutually exclusive) menu
> >>> items, with a radio icon instead of a check mark when selected. I
> >>> can't find any property in the Menu documentation that does that. Can
> >>> you help?
> >>>
> >>> Thank you,
> >>> David
> > 
> > ------------------------------------------------------------------------------
> > 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
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> 
> ------------------------------------------------------------------------------
> 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
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list