Ah Ok thanks. I will go back to it and attempt to rewrite it using the 
togglehandler/checkhandler you've suggested. I really appreciate your 
assistance with this as I was not very familiar with the toolbar/geo.ext action 
controls obviously but as it is working as intended I will modify my program to 
meet my needs and repost my code when I figure it out. I do apologize for 
creating an unnecessary ticket for my issue.


Andrew Stewart
Production Support Analyst
I.T. Services
City of Red Deer
(403) 342-8264
[email protected]


-----Original Message-----
From: Eric Lemoine [mailto:[email protected]] 
Sent: October 07, 2010 10:24 AM
To: Andrew Stewart
Cc: [email protected]
Subject: [Users] Adding a menu item to an existing Tbar, not working

On Thursday, October 7, 2010, Eric Lemoine <[email protected]> wrote:
> On Wed, Oct 6, 2010 at 4:44 PM, Andrew Stewart
> <[email protected]> wrote:
>> Ah ok I think I had this backwards, I modified the example and I removed 
>> draw line/draw polyline from the bar and the menu still worked. However if I 
>> remove the other controls from the menu and leave only the polyline/line 
>> then I get the same result, the actions on the toolbar now don't toggle the 
>> actions on the menu even though they belong to the same togglegroup/group. 
>> So do I have to keep the actions from the toolbar inside the menu also for 
>> this to work? Below is my code of the modified example.
>
> I could reproduce the problem, and it looks like a bug in GeoExt.

Actually no, it is not a bug in GeoExt. Toggle groups do not work
across classes, because buttons and menu items aren't registered to
the same toggle manager.

So you need to handle this at the application level, by defining
toggleHandler and checkHandler functions in the action options and
have them take appropriate action.

Cheers,

-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com


[This message has been scanned for security content threats and viruses.]

[The City of Red Deer I.T. Services asks that you please consider the 
environment before printing this e-mail.]




_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to