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 _______________________________________________ Users mailing list [email protected] http://www.geoext.org/cgi-bin/mailman/listinfo/users
