Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

How to hide a widget's icon on the toolbar

$
0
0
At http://forums.esri.com/Thread.asp?c=158&f=2421&t=277136, a Q is
How to open widget from other widget and minimize it? From http://forums.arcgis.com/threads/619...another-widget. I got a similar Q but for V3.2.
In Widget A, I added the code below in the widget
AppEvent.dispatch(AppEvent.WIDGET_RUN, 3);
// where 3 is the widget id (refer to config.xml).
Using this piece of code, I should open the widget with id = 3.
In the config.xml,
<widget label="Find an address" right="10" top="450"
icon="assets/images/i_target.png"
config="widgets/Locate/LocateWidget_World.xml"
url="widgets/Locate/LocateWidget.swf"/>
Since I don't want to show the LocateWidget icon on the tool, what is the way to hide its icon and make it invisible? I tried set visible="false" but it does not work.

Viewing all articles
Browse latest Browse all 2097

Trending Articles