Configuring Status Bar

Status bar configuration allows both main windows and child windows in applications to have their own status bars, with each window limited to one status bar. Configuration is done through <statusbar>...</statusbar> tags. Various Ribbon controls can be placed on the status bar by configuring corresponding control tags within these statusbar tags.

<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="Scale" 
                  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="Longitude: ***, Latitude: ***" visible="true" width="0"/>
        <textBox index="6" label="Coordinate System" onAction="" readOnly="true" screenTip="" screenTipImage="" 
                 text="Coordinate System: 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 <statusbar>...</statusbar> configuration content should be placed within the <statusbars>...</statusbars> tags in the config file. The <statusbars> tag represents the collection of all status bars configured in the plugin's config file. Below are detailed explanations of the attributes in the <statusbar> tag.

  • visible: Specifies the visibility of the status bar. When set to true, the status bar is visible; false makes it hidden.
  • formClass: Specifies the form to which the status bar is bound.

  Ribbon controls can be placed on the status bar by configuring their tags between <statusbar>...</statusbar>. Below are detailed explanations of the attributes for Ribbon control tags.

  • index: Specifies the sorting order of controls in the status bar.
  • label: The caption text of the control.
  • onAction: The event handler bound to the control.
  • visible: Determines the visibility of user-definable controls. True makes them visible; false hides them.
  • screenTip: Specifies the tooltip text displayed when hovering over user-definable controls.

Related Topics

Environment Deployment

Project Template

Plugin Configuration Overview

Interface Configuration

Ribbon Configuration

Config File Menu

Context Menu Configuration

Dockbar Configuration

Attributes