[Chameleon-dev] [Bug 981] New: [Chameleon - Widget] No error captured when <image/> IS defined and shared resource is NOT defined

bugzilla-daemon at maptools.org bugzilla-daemon at maptools.org
Thu Mar 3 14:02:52 EST 2005


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

           Summary: [Chameleon - Widget] No error captured when <image/> IS
                    defined and shared resource is NOT defined
           Product: Chameleon
           Version: 2.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: cthorne at dmsolutions.ca


When building a chameleon template using a service in stance the following issue
occurred:

1 added a mapdhtml widget. context map is displayed
2 add zoomin widget. when the zoomin tag is defined with the sub tag <image/>
(see below). when the user tries to zoom the app fails.

The three tag structure below one of them only works when the Textbutton shared
resource is defined.


Tag Structure 1:
---------------
if the zoomin widget is defined as:

<cwc2 type="ZoomIn" visible="true" image="buttons/button_zoomin_1.png"
imagewidth="24" imageheight="24" imagetip="Zoom In" toolset="Navigation"
default="true"/>

Tag Structure 2:
---------------
if the images are defined for different states with no "state" sub tag attribute
the application works, but the button image is always based on the last <image/>
sub tag defined, in this case it always shows the pushed in "selected" button. 


<cwc2 type="ZoomIn" visible="true" imagewidth="24" imageheight="24"
imagetip="Zoom In" toolset="Navigation" default="true">
   <image image="buttons/button_zoomin_1.png"/>
   <image image="buttons/button_zoomin_2.png"/>
   <image image="buttons/button_zoomin_3.png"/>
</cwc2>

Tag structure 3: 
----------------
No shared resource but the state sub tag attribute is defined. This creates the
failure because in the template there is no default "Textbutton" shared resource.

<cwc2 type="ZoomIn" visible="true" imagewidth="24" imageheight="24"
imagetip="Zoom In" toolset="Navigation" default="true">
  <image state="normal" image="buttons/button_zoomin_1.png"/>
  <image state="hover" image="buttons/button_zoomin_2.png"/>
  <image state="selected" image="buttons/button_zoomin_3.png"/>
</cwc2>

In both Tag structure 2 and 3 there should be some error captured for the
application developer stating the dependency of the <image/> sub tag to contain
button states, which results in the dependency for the "Textbutton" shared
resource to be defined.

Last comment: Ideally you should be able to set the state of an image without
using the shared resource.



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


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Chameleon-dev mailing list