Configuring the Status Bar

   The status bar configuration allows both the main window and sub-windows in the application to have their own status bars, and each window can only have one status bar. The status bar is configured using the <statusbar>…</statusbar> tags. Various Ribbon controls can be placed on the status bar. To add Ribbon controls to the status bar, simply configure the corresponding control tags within the <statusbar>…</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 configuration content of the <statusbar>…</statusbar> tags should be placed within the <statusbar>…</statusbar> tags in the config file, meaning that the tags represent the collection of all status bars configured in the plugin's config file. Below, we detail the meaning and function of each attribute of the <statusbar>…</statusbar> tags.

  • visible: Specifies whether the status bar is visible. When the value of this attribute is true, it indicates visible; false indicates invisible.
  • formClass: specifies the form to which you want to bind the status bar.

   Ribbon controls can be placed in the status bar. The tags for configuring Ribbon controls are organized within the < statusbar ></ statusbar > tags. Below, we detail the meaning and function of each attribute of the Ribbon control tags.

  • index: Used to sort controls. When there are multiple controls in the status bar, each control's order is determined by the value of this attribute.
  • label: The title of the control.
  • onAction: The event bound to the control.
  • visible: Specifies the visibility of user-definable controls. When the value of this attribute is true, it indicates visible; false indicates invisible.
  • screenTip: Specifies the prompt displayed when the mouse hovers over a user-definable control.

Related Topics

   Environment Deployment

   Project Template

   Plugin Configuration Overview

   Interface Configuration

   Ribbon Configuration

   Config File Menu

   Configuring Context Menu

   Configuring Dock Bars

   Attributes