Configure the status bar

Status bar configuration. The main window and sub-windows in Application can have their own status bar, and each window can only have one status bar. The status bar is configured through < statusbar >. tab. Various ribbon controls can be placed on the status bar. To add a ribbon control to the status bar, simply click on the < statusbar > You can configure the label of the corresponding control between the labels.

<statusbars>
    <statusbar formClass="com.supermap.desktop.mapview.FormMap" id="Map" visible="true">
        <label index="1" label="Objects:" visible="true" width="120"/>
        <label index="2" label="20" visible="true" width="0"/>
        <label index="3" label="  Scale:" visible="true" width="0"/>
        <comboBox customProperty="" helpURL="" id="Scale" image="" index="4" label="比例尺" 
                  screenTip="" onAction="CtrlActionMapScale" screenTipImage="" visible="true" width="180">
            <item customProperty="" image="" index="0" label="1:5,000"/>
            <item customProperty="" image="" index="0" label="1:10,000"/>
            <item customProperty="" image="" index="0" label="1:25,000"/>
            <item customProperty="" image="" index="0" label="1:50,000"/>
            <item customProperty="" image="" index="0" label="1:100,000"/>
            <item customProperty="" image="" index="0" label="1:250,000"/>
            <item customProperty="" image="" index="0" label="1:500,000"/>
            <item customProperty="" image="" index="0" label="1:1,000,000"/>
        </comboBox>
        <textBox index="5" label="Longitude Latitude" onAction="" readOnly="true" screenTip="" screenTipImage="" 
                 text="经度:***,纬度:***" visible="true" width="0"/>
        <textBox index="6" label="坐标系" onAction="" readOnly="true" screenTip="" screenTipImage="" 
                 text="坐标系:GCS_WGS_1984" visible="true" width="0"/>
        <label index="7" label="Center:" visible="true" width="0"/>
        <textBox index="8" label="X" onAction="" readOnly="true" screenTip="" screenTipImage="" 
                 text="0" visible="true" width="0"/>
        <textBox index="9" label="Y" onAction="" readOnly="true" screenTip="" screenTipImage="" text="0" visible="true" width="0"/>
        <button index="10" onAction="CtrlActionCopyCenterPoint" screenTip="Copy center point coordinates" 
                image="../resources/MapView/Menu/CenterPositionCopy.png" visible="true" style="MEDIUM"/>
        <button index="11" onAction="CtrlActionPasteCenterPoint" screenTip="Paste center point coordinates" 
                image="../resources/MapView/Menu/CenterPositionPaste.png" visible="true" style="MEDIUM"/>
    </statusbar>
</statusbars>      

… The configuration content of the tag is to be placed in the < statusbar > in the Config File … Between tags, that is, the tag represents the set of all status bars configured in the Config File of the plug-in. The following describes < statusbar > in detail … The meaning and function of each attribute of the tag.

  • Visible: Specifies whether the status bar is visible. When the value of this property is true, it means visible. When the value of this property is false, it means invisible.
  • FormClass: Specifies the status bar Bound Forms, that is, the type of window to which the status bar belongs. After this property is set, the status bar will appear in the window of the corresponding type.

Ribbon controls can be placed on the status bar, and the labels that configure the ribbon controls are organized between < statusbar > . The following details the meaning and function of each attribute of the Ribbon control label.

  • Index: Used to sort controls, that is, when there are multiple controls in the status bar, each control will be sorted by the value of this property.
  • Label: The title of the control.
  • OnAction: The event to which the control is bound.
  • Visible: Specifies the visibility of the User Custom control. When the value of this property is true, it means visible. When the value of this property is false, it means invisible.
  • ScreenTip: Specifies the Prompt to display when the mouse hovers over the User Custom control.

Related content

Environment deployment

Engineering template

Plug-in configuration overview

Interface configuration

Ribbon configuration

Config File menu

Configure the Context Menu

Configure Dock Bars

Attributes