Return-Path: X-Original-To: apmail-pivot-user-archive@www.apache.org Delivered-To: apmail-pivot-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E373D156 for ; Wed, 3 Oct 2012 07:49:46 +0000 (UTC) Received: (qmail 2957 invoked by uid 500); 3 Oct 2012 07:49:46 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 2732 invoked by uid 500); 3 Oct 2012 07:49:43 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 2697 invoked by uid 99); 3 Oct 2012 07:49:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 07:49:42 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pavan.vadavalli@gmail.com designates 209.85.160.54 as permitted sender) Received: from [209.85.160.54] (HELO mail-pb0-f54.google.com) (209.85.160.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 07:49:34 +0000 Received: by pbbrp8 with SMTP id rp8so11067755pbb.13 for ; Wed, 03 Oct 2012 00:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=62HR35CKYf96rdEoQhWQvclCY0/GmtLzYV96LKg78a4=; b=XK0bDw+N2CfpBXADp5Pwmb5+BeUyl8RHwlaiWbmwEptEULQEyBnCY1Qmr/p17td8Xk NiFSe/JnZSGStijXxXRQ667aek3PpWvunprLZMKmVM9XpHpjqQZZrkpHz2yU6dDMaeUr vtd/9V/XtN4mV2COt4luI2z0UJ/mJLFTIIEXo2RnD9J/sZfJ7ZXe8MhrD/29/G7mh2W5 Q9uarvBAdztzkldAzESOCXfwh6NXJr//edUYDZW5+4HHnsxGXuYjSbybdINCE+ixFGq2 OxgyiTNz4vFkICxWIxC9rmM3r3BKpvQqZRpG78nG5yZylzzW2b+L9FyUW+KHEaUr8auR AqQA== Received: by 10.66.86.161 with SMTP id q1mr1258539paz.40.1349250554135; Wed, 03 Oct 2012 00:49:14 -0700 (PDT) Received: from [192.168.0.2] (CPE-58-175-170-241.cqul1.win.bigpond.net.au. [58.175.170.241]) by mx.google.com with ESMTPS id iv7sm2215075pbc.68.2012.10.03.00.49.11 (version=SSLv3 cipher=OTHER); Wed, 03 Oct 2012 00:49:13 -0700 (PDT) Message-ID: <506BEDED.3070403@gmail.com> Date: Wed, 03 Oct 2012 17:49:01 +1000 From: pavan vadavalli User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: user@pivot.apache.org CC: "Roger L. Whitcomb" Subject: Re: Context Menu with Multiple Selections References: <5062DA99.6030102@gmail.com> <6152BDF053E74643B4C0A41150F5ADC3697A07@USINVMAILB01.ingres.prv> In-Reply-To: <6152BDF053E74643B4C0A41150F5ADC3697A07@USINVMAILB01.ingres.prv> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org perfect...Worked like a charm!! Thanks Roger... On Tuesday, 2 October 2012 7:33:12 AM, Roger L. Whitcomb wrote: > I don't think you need the ButtonGroup stuff in there at all. When you > put something in a button group, it is expecting that one of the group > will always be selected, and since you only have one in each group, that > one will always be selected! Try it without the groups and see what you > get. > > ~Roger Whitcomb > > -----Original Message----- > From: pavan vadavalli [mailto:pavan.vadavalli@gmail.com] > Sent: Wednesday, September 26, 2012 3:36 AM > To: user@pivot.apache.org > Subject: Context Menu with Multiple Selections > > Hi, > I want to create a control like attached. Basically a context Menu with > Multiple Items that can be selected and deselected. > > when the following Menu Section is created (basically a lift from > Context menu example from Kitchen Sink), i am able to have each Button > as individual selectable items, but once the option is selected, the > option doesn't switch off. > I tried to listen to the butttonPressListner and wanted to toggle > selected State, but all through the listen events i always got Selected > as true. > > I see that something similar is done in the List box with multiple Need > quick help, Please. > > > xmlns="org.apache.pivot.wtk"> > > > > > > > > > > > toggleButton="true" > buttonGroup="$imageMenuGroup" action="selectImageAction"> > > > toggleButton="true" > buttonGroup="$imageMenuGroup1" action="selectImageAction"> > > > toggleButton="true" > buttonGroup="$imageMenuGroup2" action="selectImageAction"> > > > > > Thanks and Regards, > Pavan