[Chameleon-dev] [Bug 432] [Chameleon - Core] widgets found in chameleon instead of user-defined directories

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Wed Jul 7 11:40:25 EDT 2004


http://www.maptools.org/bugzilla/show_bug.cgi?id=432





------- Additional Comments From pspencer at dmsolutions.ca  2004-07-07 11:40 -------
In order to make an application use widgets from an application specific
location, you need to register the location with the chameleon framework.  The
method of doing this is to pass an array of directories to be searched to the
CWCExecute function.  In the samples, you would change this line:

$oApp->CWCExecute();

to

$oApp->CWCExecute( "/ms4w/apps/chameleon/samples/htdocs" );

and you would move the ProjectionSelector directory from the
chameleon/htdocs/widgets directory to the chameleon/samples/htdocs directory.

But the real issue resolved by this bug was that if the same widget existed in
both chameleon and the applications' widget path, the one from chameleon would
be used instead of the application one.  So to test this correctly, you should
make a COPY of the ProjectionSelector (or some other widget) and modify in some
way that you can then tell which widget is being used.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Chameleon-dev mailing list