Select to view content in your preferred language

Mouse cursor & tooltip with editor

3129
8
09-01-2010 01:12 PM
OlivierROSSINI
Deactivated User
Hi Flex Team,

Is there a way to customize the tooltip and icon that appears when the mouse is over the map when using a feature template for editing?

When an editing feature template is selected from the feture template picklist, the mouse cursor changes when dragging over the map and displays a tooltip like "Click to start drawing" associated to an icon (the same as the selected feature template icon).
I need to change the text (for localization purpose).
I can't find how to do it.
Is it hardcoded in the swc lib file?
Is it doable? How?

Thanks in advance for your answer.

Regards,

olivier
Tags (2)
0 Kudos
8 Replies
BjornSvensson
Esri Regular Contributor
Olivier, the drawtool tips have already been localized into six languages.

Out-of-the-box we support English (en-US), German (de_DE), Spanish (es_ES), French (fr_FR), Japanese (ja_JP) and Chinese (zh_CN).   For other languages please contact your local Esri distributor.

To use a specific language, simply compile with the appropriate locale.  In Flash Builder, go to Project -> Properties -> Flex Compiler and under the "Additional compiler arguments" change "-locale en_US" to "-locale fr_FR".
0 Kudos
OlivierROSSINI
Deactivated User
That's great.
Thanks

olivier
0 Kudos
guiles78
Deactivated User
Hi,

i have a question concerning this tooltip. Is there a way to change the tooltip text by code?

Thanks by advance for your answer.
0 Kudos
MattMoyles
Occasional Contributor
i think you can do it when you activate the draw tool.

setMapAction(DrawTool.MAPPOINT, "Tooltip text here", null, callbackFunction);
0 Kudos
DamodarDas
New Contributor
Dear ArcMap experts,

   We are digitalizing lots of urban information and we want to see an
   info text box or a tooltip from the mousepointer while drawing.

   We just need to show the length property at the
   side of the mouse pointer.
   The length always appear at the status bar but is very hard to trace
   and look at the same time to the status bar, and keep the angle
   simultaneously.
   How to customize that code to get it and how to install in Arc Map ?

Thanks in advance for your kind answer 🙂
0 Kudos
BjornSvensson
Esri Regular Contributor
Dear ArcMap experts,
...
   How to customize that code to get it and how to install in Arc Map ?


@damodaranudas, this is a forum specific for the ArcGIS API for Flex, not ArcMap. Are you trying to do this in ArcMap or in a web application developed using the ArcGIS API for Flex?
0 Kudos
BrunoPereira1
Deactivated User
Hi, I got that problem too, I have Changed the tooltip of the mouse, but when I roll in widget component, and then roll out, the default label tooltip (ESRI DEFAULT), shows.

I am using version 2.2 of the Flex viewer.

has solutioin for that?


Thanks!!
Bruno Faria
0 Kudos
KarenRobine
Frequent Contributor
@damodaranudas, this is a forum specific for the ArcGIS API for Flex, not ArcMap. Are you trying to do this in ArcMap or in a web application developed using the ArcGIS API for Flex?


Bjorn:
I'm trying to do this in ArcGIS API For Flex. While I'm using the Draw Tool, I would love the cursor to show the length of the line I'm currently drawing. Is this possible?
0 Kudos