Summary: | [Chameleon] Widget Path Parameters "Relative to What?" | ||
---|---|---|---|
Product: | Chameleon | Reporter: | Chris Thorne <cthorne@dmsolutions.ca> |
Component: | Widget | Assignee: | Jeff McKenna <jmckenna@gatewaygeomatics.com> |
Status: | ASSIGNED | ||
Severity: | normal | CC: | chameleon-dev@lists.maptools.org |
Priority: | P2 | ||
Version: | 1.99 | ||
Target Milestone: | FUTURE | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
The new button architecture works like this: * if reference is absolute then the image is left alone and assumed to be in the location specified. * if the reference is relative then the code tries to find the image in the following locations: - relative to application directory - relative to the application's web path - relative to chameleon so if you say 'images/icon_query.png' and this is not in your application then it will use the icon_query from chameleon. But if it is in your application then it will the one in your application. All image paths related to buttons are handled consistently in this way. Other widgets should also work this way and if they don't then it is a bug and should be filed when found. Widget documentation should be updated to reflect the above (for Button attributes for images/fonts) for 1.99 release The Widget development documentation should reflect the same rule, bug can be closed once that is written.
excellent! accepting bug
updated version to 1.99
Question and comment about this process. If chameleon cannot find the image I specify, does that get reported to the error widget to let me know I have done something wrong? If not, I think it sould do this too.
I don't think it does, you should probably file a separate bug for this since it is a new feature.
filed bug 362 as an enhancement to discuss my prevuious comment
Changed target to 1.99 Final
There is nothing in the Application Developer's Guide on skinning, which there should be and it would include this. Post 2.0 I guess.