Select to view content in your preferred language

Enhanced Draw Widget Missing Buttons

1064
4
05-31-2011 05:25 AM
ChristopherDamon
Deactivated User
When using the enhanced Draw and Measure widget (2.3.1), I seem to be missing most labels for the "font color", "font size", etc. as well as the "show measurements" and "clear drawing".  I have tried both the compiled and uncompiled versions with the same results, and it doesn't matter which browser I'm using.  See attached image.

Should I be explicitly setting these label colors within the DrawWidget.mxml file?
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Christopher,

It kind of looks like you are not setting the DrawWidget.xml location correctly.

<widget label="Draw and Measure" left="60" top="400"  preload="open"
                icon="assets/images/i_draw2.png"
                config="widgets/eDraw/DrawWidget.xml"
                url="widgets/eDraw/DrawWidget.swf"/>
0 Kudos
ChristopherDamon
Deactivated User
Robert,

Thanks for taking a look at this.  Except for the "preload" option, my code seems to match what you have.  If I open your widget demo page from the gallery, it works fine.  I don't quite understand why only select pieces of the mxml would render properly; usually I receive errors during the build process that would flag problems.


<widget label="Draw and Measure" left="60" top="400"
            icon="assets/images/i_draw2.png"
            config="widgets/eDraw/DrawWidget.xml"
            url="widgets/eDraw/DrawWidget.swf"/>
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Christopher,

   I am really puzzled by this... If you open the DrawWidget.xml in internet explorer does it give you any errors? Maybe the download got corrupted for you and you should try t download it again.
0 Kudos
ChristopherDamon
Deactivated User
Robert,

I had downloaded a new version of the zip file this morning thinking the same thing, but thought I would go through the entire exercise again just to be sure.

In FlexBuilder I removed the eDraw module reference and the widget reference in the config file.  Just for good measure I deleted everything in the bin-release and bin-debug folders and rebuilt the project.

Then I cleared the browser cache.

I downloaded a new version of the code and tried the compiled version first -- same results.  Then I used the uncompiled code, referenced the mxml file, and rebuilt the project -- same results.  At least the problem is consistent.

There were no errors reported when I opened DrawWidget.xml using IE, so I ran the debug tool within FlexBuilder to see if any errors were thrown.  When I click on the eDraw Widget, I receive the following warning:
warning: unable to bind to property 'style' on class 'Object' (class is not an IEventDispatcher)
This is the only indication of a problem, no other errors or warnings pop up.
0 Kudos