fr-ca
1999-12-31
$id:$
Doc_Builder
DM Solutions Group Inc.
chameleon@lists.maptools.org
Christopher R. Thorne
DM Solutions Group Inc.
chameleon@lists.maptools.org
PanMap
TBD
Navigation Widget
1.99
1999-12-31
BETA
Paul Spencer
DM Solutions Group Inc.
chameleon@lists.maptools.org
Allow the user to drag the map image to recenter the map at a given location.
A map widget must be present in the interface for the PanMap widget to function. This does not mean the button will not show up without a map, only that the button would be inactive.
The PanMap widget tag has attributes from the Button Attributes group. This means PanMap Navigation Tool has access to the "TextButtons" Shared Resource. To learn about this Shared Resource, please refer to the Button attribute group section for details.
Ce bouton permet de déplacer l'image dans la fenêtre d'affichage. Pour l'utiliser, cliquez sur l'icône, cliquez la carte et glissez l'image dans la direction désirée. Relâchez le bouton de la souris à la nouvelle position pour actualiser la carte.
<CWC2 TYPE="PanMap"
ENABLED="[TRUE|FALSE]"
FORMINDEX="[0 < integer]"
VISIBLE="[TRUE|FALSE]"
<!-- Navigation Attributes -->
CURSORTYPE="[string]"
DEFAULT="[TRUE|FALSE]"
MAPID="[string]"
WIDGETSTYLE="[string]"
<!-- Button Attribute Group-->
BACKGROUNDIMAGE="[path]"
DEFAULT="[TRUE|FALSE]"
IMAGE="[path]"
IMAGEHEIGHT="[integer]"
IMAGETIP="[string]"
IMAGEWIDTH="[integer]"
LABELALIGN="[LEFT|CENTER|RIGHT]"
LABELANTIALIAS="[TRUE|FALSE]"
LABELCOLOR="[#RRGGBB]"
LABELFONT="[string]"
LABELFONTSIZE="[0 < integer]"
ONCLICK="[string]"
STYLERESOURCE="[string]"
TEXTBUTTONBORDER="[path]"
TEXTBUTTONBORDER_BOTTOM_IMAGE="[path]"
TEXTBUTTONBORDER_BOTTOMLEFT_IMAGE="[path]"
TEXTBUTTONBORDER_BOTTOMRIGHT_IMAGE="[path]"
TEXTBUTTONBORDER_LEFT_IMAGE="[path]"
TEXTBUTTONBORDER_RIGHT_IMAGE="[path]"
TEXTBUTTONBORDER_TOP_IMAGE="[path]"
TEXTBUTTONBORDER_TOPLEFT_IMAGE="[path]"
TEXTBUTTONBORDER_TOPRIGHT_IMAGE="[path]"
TEXTBUTTONCOLOR="[#RRGGBB]"
TEXTBUTTONNUDGE="[integer]"
TEXTBUTTONPADDING="[0 < integer]"
TOOLSET="[string]"
USETEXTBUTTONCACHE="[TRUE|FALSE]">
<!-- Button Subtag Group -->
<IMAGE STATE="[NORMAL|SELECTED|HOVER|DISABLED]"
IMAGE="[path]"/>
<CWC2 />
An image can define the PanMap button.
<cwc2 type="PanMap"
visible="true"
image="buttons/button_pan_1.png"/>
This example shows how the PanMap widget will use a button Shared Resource called "NavigationButtons".
<cwc2 type="PanMap"
visible="true"
imagetip="Pan Map"
image="icons/pan_icon.png"
styleresource="NavigationButtons">
<image state="normal" />
<image state="hover" />
<image state="selected" />
</cwc2>
This PanMap example shows how the widget could be defined without using a Shared Resource. Note that this tool is linked to a group of button-based navigation widgets using the TOOLSET attribute. This means that if PanMap is selected, it will remain active until you select another tool within that tool group.
<cwc2 type="PanMap"
visible="true"
imagetip="Pan Map"
toolset="Navigation"
imagewidth="24"
imageheight="24">
<image state="normal"
image="buttons/button_pan_1.png"/>
<image state="hover"
image="buttons/button_pan_2.png"/>
<image state="selected"
image="buttons/button_pan_3.png"/>
</cwc2>
Hawaii Demo
www.mapsherpa.com/hawaii2/
The Hawaii Demo uses the latest 1.99 Chameleon version.
Base
Button
NavTool
NAV_CMD
unknown
NAV_ALLOW_RECTANGLE
unknown
gnPanWFirstPointX
float
Private
-1
gnPanWFirstPointY
float
Private
-1
NavSetActiveTool
Private
oButton
unknown
true
aVals
unknown
true
PanMapWInit
Private
e
unknown
true
PanMapWMouseMove
Private
e
unknown
true
PanMapWMouseUp
Private
e
unknown
true
PanMapWMouseDown
Private
e
unknown
true
PanMapWDragEnd
Private
x
unknown
true
y
unknown
true
PanMapWDragStart
Private
x
unknown
true
y
unknown
true