[Chameleon] Creating a "toolset" tool.
Abe Gillespie
abe.gillespie at gmail.com
Wed Sep 28 14:57:02 EDT 2005
I figured it out. Since buttons are MEMBERS of widgets (instead of
being inherited) you have to explicitly issue a
$this->moButton->ParseURL(). I was not doing this. My custom widget
now stays selected for the given toolset it's a part of.
Thanks.
-Abe
On 9/28/05, Abe Gillespie <abe.gillespie at gmail.com> wrote:
> Yep, I've tried both manually setting NAV_CMD.value and explicitly
> calling NavSetActiveTool with the proper arguments. Either way, in my
> widget's ParseURL func, the statement $this->isVarSet("NAV_CMD")
> always comes up false. ???
>
> On 9/28/05, Bart van den Eijnden <BEN at syncera-itsolutions.nl> wrote:
> > Abe,
> >
> > I believe this is done through the NAV_CMD variable.
> >
> > Navtool.php sets the active tool after a page reload in the NavSetActiveTool function.
> >
> > Hope this helps you track down the problem.
> >
> > Best regards,
> > Bart
> >
> > Bart van den Eijnden
> > Syncera IT Solutions
> > Postbus 270
> > 2600 AG DELFT
> >
> > tel.nr.: 015-7512436
> > email: BEN at Syncera-ITSolutions.nl
> > >>> Abe Gillespie <abe.gillespie at gmail.com> 09/27/05 10:58 PM >>>
> > I'm having trouble getting my custom widget behave correctly as part
> > of a toolset. My widget is part of the "Navigation" toolset. The
> > client-side Javascript works correctly. When I go from one tool, say
> > zoom-in, to my tool by selecting it, everything works fine; zoom-in
> > deslects and mywidget selects. But then when the page posts it comes
> > back with no widget selected. What criteria must be set in my widget
> > for it's "activeness" to be persisted across page posts?
> >
> > Thanks.
> > -Abe
> >
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/chameleon
> >
> >
>
More information about the Chameleon
mailing list