Select to view content in your preferred language

Floating help beside the mouse

642
2
11-10-2010 11:18 PM
JamesB
by
Emerging Contributor
http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/toolbar/toolbar_draw.html
When you select a tool like "point" and move over the map, a floating text box appears with some help text. eg "Click to add a point"

Is it possible to add the same help text to other toolbars, like "Zoom in" on Navigation?
http://help.arcgis.com/EN/webapi/javascript/arcgis/demos/toolbar/toolbar_navigation.html

Thanks,
0 Kudos
2 Replies
SoumenduMunshi
Emerging Contributor
In the DIV tag TITLE put your comments that will appear when you hover or click on tool like this-

<div dojoType="dijit.form.Button" id="zoomin" iconClass="zoominIcon" title="Zoom In: Drag a zoom rectangle on-map to zoom in" onClick="navToolbar1.activate(esri.toolbars.Navigation.ZOOM_IN);"></div>

HTH
0 Kudos
JamesB
by
Emerging Contributor
smunshi, notice how on the example I linked, when you select "Point" tool the help text hovers next to the mouse, and follows the mouse round while the tool is active?

Doing what you suggest will only make the text appear when a user hovers over a toolbar button.
0 Kudos