You are currently reviewing an older revision of this page.
When designing your project schema, it might be desirable to set all property fields to the same number of characters. This would produce visually appealing input fields of the same width.
However, when dealing with combo box properties, also known as domain lists, the number of characters does not play a role in defining the width of the list. This results in field length variations which may not be desired.
To resolve this, turn off Calculate List Width in the Combo Box Property page.
Note: The horizontal space for the drop down arrow is approximately two characters.
A sample XML to experiment with is attached.
<?xml version="1.0" encoding="utf-16"?> <GeospatialSchema projectName="Test_XFM" schemaDescr="Test_XFM schema" workspaceRootDir="D:\ProgramData\Bentley\Map CONNECT Edition\Configuration\WorkSpaces" projectParentDir=""> <Workspace name="All Users"> <Features genFile="features.xml" schemaVersion="http://www.bentley.com/schemas/GeoSpatial/XFM/Test_XFM/1.0"> <feature name="Street" alias="Street" collectionName="Street" type="linestring/curve" minOccurs="0" maxOccurs="1" category="BaseMap" propagateToParent="never" propagateFromParent="never" propagateDeleteToParent="never" propagateFromRoot="never" propagateCopyFromRoot="never" propagateCopyToParent="never" propagateCopyFromParent="never" schemaVersion=""> <Symbology type="linear"> <ApplyDrawingScale>true</ApplyDrawingScale> <OverrideScale useCriteria="" /> <Color red="-1" green="-1" blue="-1">1</Color> <Level>Street</Level> <Style>0</Style> <StyleScale>1.0</StyleScale> <Weight>1</Weight> <Class>0</Class> <Priority>0</Priority> <Transparency>0</Transparency> <FillType>None</FillType> <FillMode>0</FillMode> <FillColor red="-1" green="-1" blue="-1">0</FillColor> <AreaType>0</AreaType> </Symbology> <Properties> <property name="Name" alias="Name" preferenceType="dgnFile" type="string" dbProp=""> <initialValue key="placing" synch="true" valueType="value" /> <dataSpec numChars="18" min="" minExclusive="false" max="" maxExclusive="false" /> <itemSpec type="textBox" label="Name:" labelColor="black"> <textBox formatToDisplay="%s" formatToInternal="%s" /> </itemSpec> <hookOptions uppercase="false" readOnly="false" dontclear="false" required="false" synchOnChangeKey="" /> <toolTip>Enter Name</toolTip> </property> <property name="Type" alias="Type" preferenceType="dgnFile" type="string" dbProp=""> <initialValue key="placing" synch="true" valueType="value">Value</initialValue> <dataSpec numChars="16" /> <itemSpec type="comboBox" label="Type:" labelColor="black"> <comboBox valueColumnName="col2" editColumnName="col1" widthFromList="false" formatToDisplay="%s" formatToInternal="%s" numRowsToDisplay="10" listBoxWidth="0" /> </itemSpec> <domainListSpec numColumns="2" addBlankListEntry="false"> <domainRow col1="Alley" col2="ALY" /> <domainRow col1="Avenue" col2="AVE" /> <domainRow col1="Boulevard" col2="BLVD" /> <domainRow col1="Circle" col2="CIR" /> <domainRow col1="Court" col2="CT" /> <domainRow col1="Cove" col2="CV" /> <domainRow col1="Cresent" col2="CRES" /> <domainRow col1="Drive" col2="DR" /> <domainRow col1="Highway" col2="HWY" /> <domainRow col1="Lane" col2="LN" /> <domainRow col1="Loop" col2="LOOP" /> <domainRow col1="Parkway" col2="PKWY" /> <domainRow col1="Place" col2="PL" /> <domainRow col1="Trail" col2="TRL" /> <domainRow col1="Way" col2="WAY" /> </domainListSpec> <hookOptions uppercase="false" readOnly="false" dontclear="false" required="false" synchOnChangeKey="" /> <toolTip>Enter Type</toolTip> </property> <property name="SpeedLimit" alias="Speed Limit" preferenceType="dgnFile" type="integer" dbProp=""> <initialValue key="placing" synch="true" valueType="value">Value</initialValue> <dataSpec numChars="16" /> <itemSpec type="comboBox" label="Speed Limit:" labelColor="black"> <comboBox valueColumnName="col1" editColumnName="col1" widthFromList="false" formatToDisplay="%s" formatToInternal="%s" numRowsToDisplay="10" listBoxWidth="0" /> </itemSpec> <domainListSpec numColumns="1" addBlankListEntry="false"> <domainRow col1="20" /> <domainRow col1="30" /> <domainRow col1="50" /> <domainRow col1="60" /> <domainRow col1="70" /> <domainRow col1="80" /> <domainRow col1="100" /> <domainRow col1="110" /> </domainListSpec> <hookOptions uppercase="false" readOnly="false" dontclear="false" required="false" synchOnChangeKey="" /> <toolTip>Enter Speed Limit</toolTip> </property> <property name="Surface" alias="Surface" preferenceType="dgnFile" type="string" dbProp=""> <initialValue key="placing" synch="true" valueType="value">Value</initialValue> <dataSpec numChars="16" /> <itemSpec type="comboBox" label="Surface:" labelColor="black"> <comboBox valueColumnName="col1" editColumnName="col1" widthFromList="false" formatToDisplay="%s" formatToInternal="%s" numRowsToDisplay="10" listBoxWidth="0" /> </itemSpec> <domainListSpec numColumns="1" addBlankListEntry="false"> <domainRow col1="Asphalt" /> <domainRow col1="Concrete" /> <domainRow col1="Composite" /> <domainRow col1="Gravel" /> <domainRow col1="Other" /> </domainListSpec> <hookOptions uppercase="false" readOnly="false" dontclear="false" required="false" synchOnChangeKey="" /> <toolTip>Enter Surface</toolTip> </property> </Properties> </feature> </Features> <Operations> <operation name="Street" genFile="Street.xml"> <Properties /> <dialogItemLists> <!-- ==================================================================== ToolSettings itemlist ===================================================================== --> <itemlist name="placement" dialogTitle="Place Street"> <dialogItem operation="CompCurv_Ops" property="ArcModes" layout="topLeft" x="6" y="0" xmlns:vb="vbasic" /> <dialogItem operation="CompCurv_Ops" property="allowOffset" layout="topLeft" x="0" y="0" label="~Allow Offset" toolTip="Offset Existing Linear" xmlns:vb="vbasic" /> <dialogItem operation="CompCurv_Ops" property="useOffsetDist" layout="topLeft" x="0" y="0" label="~Use Offset Distance" toolTip="Use Offset Distance" xmlns:vb="vbasic" /> <dialogItem operation="CompCurv_Ops" property="offsetDist" layout="topLeft" layoutType="lastItem" x="12.0" y="0" width="10" toolTip="Offset Distance" xmlns:vb="vbasic" /> <dialogItem alias="Street" property="Name" layout="topLeft" x="0" y="0" initKey="" /> <dialogItem alias="Street" property="Type" layout="topLeft" x="0" y="0" initKey="" /> <dialogItem alias="Street" property="SpeedLimit" layout="topLeft" x="0" y="0" initKey="" /> <dialogItem alias="Street" property="Surface" layout="topLeft" x="0" y="0" initKey="" /> </itemlist> <!-- ==================================================================== Dialog itemlist ===================================================================== --> <itemlist name="edit" resize="false" dialogTitle="Edit Street"> <dialogItem alias="Street" property="Name" layout="topLeft" x="0" y="0" initKey="" /> <dialogItem alias="Street" property="Type" layout="topLeft" x="0" y="0" initKey="" /> <dialogItem alias="Street" property="SpeedLimit" layout="topLeft" x="0" y="0" initKey="" /> <dialogItem alias="Street" property="Surface" layout="topLeft" x="0" y="0" initKey="" /> <stdDlgItem type="separator" anchor="bottomLeft" layout="bottomLeft" x="0" y="1" width="" height="" /> <stdDlgItem type="okButton" anchor="bottomMiddle" layout="bottomMiddle" x="-7" y="1" width="6" /> <stdDlgItem type="cancelButton" anchor="bottomMiddle" layout="topRight" layoutType="lastItem" x="2" y="0" width="6" /> </itemlist> </dialogItemLists> </operation> </Operations> <Methods genFile="methods.xml"> <MethodGroup name="Street"> <file>Street.xml</file> <Method name="Place" OpType="MDL" includeInMainMenu="true"> <procedureName>PlaceCompCurv</procedureName> <parameter name="featureName">Street</parameter> <parameter name="featureAlias">Street</parameter> <parameter name="featureGroup">placement</parameter> <parameter name="cmdPrompt">Place Street</parameter> <parameter name="toolSettingsOp">Street</parameter> <parameter name="toolSettingsName">placement</parameter> <parameter name="refreshAllSegments">false</parameter> <parameter name="showAllOptions">false</parameter> <parameter name="placeAsCollection">False</parameter> </Method> <Method name="Edit" OpType="MDL" includeInMainMenu="false"> <procedureName>EditFeature</procedureName> <parameter name="featureName">Street</parameter> <parameter name="featureAlias">Street</parameter> <parameter name="featureGroup">edit</parameter> <parameter name="cmdPrompt">Edit Street</parameter> <parameter name="dialogOp">Street</parameter> <parameter name="dialogName">edit</parameter> </Method> </MethodGroup> </Methods> <Domains> </Domains> <Criterias genFile="criteria.xml"> </Criterias> <Categories> </Categories> <Commands> <FeatureMgr> <DomainListDef name="MainMenu" numColumns="4" genFile="MainMenu.xml"> <domainRow col1="BaseMap" col2="Street" col3="activate method Street|Place" col4="linestring/curve" /> </DomainListDef> </FeatureMgr> <CmdMsgs /> <Menus genFile="Menus.xml" xmlns:vb="vbasic"> <MenuBar name="GeoMenuBar" mainMenu="true" clearFirst="false" dialogTitle="$$_GEOENGINEEXEBASENAME$$" fileExt="*"> <Menu label="Fe~ature" insertBefore="Window"> <MenuItem label="Edit Properties" command="edit feature" /> <MenuItem label="Analyze" command="activate readonlymethod Analyze|Open" /> <MenuItem label="Data Browser" command="activate readonlymethod Navigator|Open" /> <MenuItem label="-" /> <MenuItem label="Command Manager (Tree)" command="activate readonlymethod MainMenu2|Open" /> <Menu label="Sort Command Manager"> <MenuItem label="Schema Order" command="commandmanagerordering schemaorder" /> <MenuItem label="Ascending Order" command="commandmanagerordering ascendingorder" /> <MenuItem label="Descending Order" command="commandmanagerordering descendingorder" /> </Menu> <MenuItem label="-" /> <MenuItem label="Auto Attribution" autorun="gui set toggle property SysProps/AutoAttribute (on=1 off=0 searchId=200)" command="gui toggle property SysProps/AutoAttribute (on=1 off=0 searchId=200)" searchId="200" /> <MenuItem label="Edit During Attribution" autorun="gui set toggle property SysProps/OpenEditDialogDuringAutoAttribution (on=1 off=0 searchId=201)" command="gui toggle property SysProps/OpenEditDialogDuringAutoAttribution (on=1 off=0 searchId=201)" searchId="201" /> </Menu> <Delete> </Delete> </MenuBar> </Menus> </Commands> <PersistentTopology genFile="topology.xml" schemaVersion="http://www.bentley.com/schemas/GeoSpatial/extensions/topo/1.0"> </PersistentTopology> <Database type="" name="" genFile="database.xml"> </Database> </Workspace> <Workspaces> <Workspace name="GIS" base-srcDir="D:\Daily Work\Map Source Files\General" description="GIS workset" cfgDir="C:\ProgramData\Bentley\Map CONNECT Edition\Configuration\WorkSpaces\Test_XFM\WorkSets\" mainMenuType="Tree" defaultScale="1in=400'"> <Features genFile="features.xml" schemaVersion="http://www.bentley.com/schemas/GeoSpatial/XFM/Test_XFM/1.0" /> <Operations /> <Methods genFile="methods.xml" /> <Domains /> <Criterias genFile="criteria.xml" /> <Categories /> <Scales genFile="scales.xml"> <scale DisplayName="1"=400'" name="1in=400'" PaperUnitName="Inches" NumPaperUnits="1.0" DgnUnitName="Feet" NumDgnUnits="400.0" Hide="false" /> <scale DisplayName="1"=200'" name="1in=200'" PaperUnitName="Inches" NumPaperUnits="1.0" DgnUnitName="Feet" NumDgnUnits="200.0" Hide="false" /> <scale DisplayName="1"=100'" name="1in=100'" PaperUnitName="Inches" NumPaperUnits="1.0" DgnUnitName="Feet" NumDgnUnits="100.0" Hide="false" /> <scale DisplayName="1"=50'" name="1in=50'" PaperUnitName="Inches" NumPaperUnits="1.0" DgnUnitName="Feet" NumDgnUnits="50.0" Hide="false" /> <scale DisplayName="1"=25'" name="1in=25'" PaperUnitName="Inches" NumPaperUnits="1.0" DgnUnitName="Feet" NumDgnUnits="25.0" Hide="false" /> <scale DisplayName="1"=20'" name="1in=20'" PaperUnitName="Inches" NumPaperUnits="1.0" DgnUnitName="Feet" NumDgnUnits="20.0" Hide="false" /> <scale DisplayName="1"=8'" name="1in=8'" PaperUnitName="Inches" NumPaperUnits="1.0" DgnUnitName="Feet" NumDgnUnits="8.0" Hide="false" /> <scale DisplayName="1"=4'" name="1in=4'" PaperUnitName="Inches" NumPaperUnits="1.0" DgnUnitName="Feet" NumDgnUnits="4.0" Hide="false" /> <scale DisplayName="1"=2'" name="1in=2'" PaperUnitName="Inches" NumPaperUnits="1.0" DgnUnitName="Feet" NumDgnUnits="2.0" Hide="false" /> <scale DisplayName="1"=1'" name="1in=1'" PaperUnitName="Inches" NumPaperUnits="1.0" DgnUnitName="Feet" NumDgnUnits="1.0" Hide="false" /> <scale DisplayName="1:100" name="1:100" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="100.0" Hide="false" /> <scale DisplayName="1:200" name="1:200" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="200.0" Hide="false" /> <scale DisplayName="1:300" name="1:300" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="300.0" Hide="false" /> <scale DisplayName="1:400" name="1:400" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="400.0" Hide="false" /> <scale DisplayName="1:500" name="1:500" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="500.0" Hide="false" /> <scale DisplayName="1:800" name="1:800" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="800.0" Hide="false" /> <scale DisplayName="1:1000" name="1:1000" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="1000.0" Hide="false" /> <scale DisplayName="1:2500" name="1:2500" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="2500.0" Hide="false" /> <scale DisplayName="1:5000" name="1:5000" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="5000.0" Hide="false" /> <scale DisplayName="1:10000" name="1:10000" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="10000.0" Hide="false" /> <scale DisplayName="1:12500" name="1:12500" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="12500.0" Hide="false" /> <scale DisplayName="1:25000" name="1:25000" PaperUnitName="Meters" NumPaperUnits="1.0" DgnUnitName="Meters" NumDgnUnits="25000.0" Hide="false" /> </Scales> <Files> <fileCategory name="Dgn Libraries" srcSubDir="dgnlib" destSubDir="dgnlib"> <file sourceFile="TextStyles.dgnlib" destFile="TextStyles.dgnlib" /> <file sourceFile="CartographicLineStyles.dgnlib" destFile="CartographicLineStyles.dgnlib" /> </fileCategory> <fileCategory name="Cell Libraries" srcSubDir="cell" destSubDir="cell"> <file sourceFile="Mapping.cel" destFile="Mapping.cel" /> <file sourceFile="" destFile="" /> </fileCategory> <fileCategory name="Resource Files" srcSubDir="symb" destSubDir="symb"> </fileCategory> <fileCategory name="Seed Files" srcSubDir="seed" destSubDir="seed"> <file sourceFile="Seed2d.dgn" destFile="Seed2d.dgn" /> <file sourceFile="Seed3d.dgn" destFile="Seed3d.dgn" /> </fileCategory> <fileCategory name="Dgn Files" srcSubDir="seed" destSubDir="dgn"> <file sourceFile="Seed2d.dgn" destFile="work.dgn" /> </fileCategory> </Files> <Macros> <macro name="MS_DESIGNSEED" comment="Default seed file" operator="=">2dEnglish.dgn</macro> <macro name="MS_GEOXFM_CREATE_ORPHAN_FOR_MISSING_CELLS" comment="Flag to create orphan cell XML when specified cell is missing" operator="=">1</macro> </Macros> <Commands> <FeatureMgr /> <CmdMsgs /> <Tools genFile="Toolbars.xml" /> <Menus genFile="Menus.xml"> <MenuBar name="GeoMenuBar" mainMenu="true" clearFirst="false" dialogTitle="$$_GEOENGINEEXEBASENAME$$" fileExt="*"> <Menu label="Pl~ot-Scale" autorun="gui set toggle on command=set modelscalename $MODELSCALENAME$" insertBefore="Window" xmlns:vb="vbasic"> <MenuItem label="1"=400'" command="set modelscalename 1in=400'; gui set toggle off searchId=400-419; gui set toggle on searchId=400" searchId="400" /> <MenuItem label="1"=200'" command="set modelscalename 1in=200'; gui set toggle off searchId=400-419; gui set toggle on searchId=401" searchId="401" /> <MenuItem label="1"=100'" command="set modelscalename 1in=100'; gui set toggle off searchId=400-419; gui set toggle on searchId=402" searchId="402" /> <MenuItem label="1"=50'" command="set modelscalename 1in=50'; gui set toggle off searchId=400-419; gui set toggle on searchId=403" searchId="403" /> <MenuItem label="1"=40'" command="set modelscalename 1in=40'; gui set toggle off searchId=400-419; gui set toggle on searchId=404" searchId="404" /> <MenuItem label="1"=25'" command="set modelscalename 1in=25'; gui set toggle off searchId=400-419; gui set toggle on searchId=405" searchId="405" /> <MenuItem label="1"=20'" command="set modelscalename 1in=20'; gui set toggle off searchId=400-419; gui set toggle on searchId=406" searchId="406" /> <MenuItem label="1/8"=1'" command="set modelscalename 1in=8'; gui set toggle off searchId=400-419; gui set toggle on searchId=407" searchId="407" /> <MenuItem label="1/4"=1'" command="set modelscalename 1in=4'; gui set toggle off searchId=400-419; gui set toggle on searchId=408" searchId="408" /> <MenuItem label="1/2"=1'" command="set modelscalename 1in=2'; gui set toggle off searchId=400-419; gui set toggle on searchId=409" searchId="409" /> <MenuItem label="1"=1'" command="set modelscalename 1in=1'; gui set toggle off searchId=400-410; gui set toggle on searchId=410" searchId="410" /> <MenuItem label="1:100" command="set modelscalename 1:100; gui set toggle off searchId=400-419; gui set toggle on searchId=411" searchId="411" /> <MenuItem label="1:200" command="set modelscalename 1:200; gui set toggle off searchId=400-419; gui set toggle on searchId=412" searchId="412" /> <MenuItem label="1:300" command="set modelscalename 1:300; gui set toggle off searchId=400-419; gui set toggle on searchId=413" searchId="413" /> <MenuItem label="1:400" command="set modelscalename 1:400; gui set toggle off searchId=400-419; gui set toggle on searchId=414" searchId="414" /> <MenuItem label="1:500" command="set modelscalename 1:500; gui set toggle off searchId=400-419; gui set toggle on searchId=415" searchId="415" /> <MenuItem label="1:800" command="set modelscalename 1:800; gui set toggle off searchId=400-419; gui set toggle on searchId=416" searchId="416" /> <MenuItem label="1:1000" command="set modelscalename 1:1000; gui set toggle off searchId=400-419; gui set toggle on searchId=417" searchId="417" /> <MenuItem label="1:2500" command="set modelscalename 1:2500; gui set toggle off searchId=400-419; gui set toggle on searchId=418" searchId="418" /> <MenuItem label="1:5000" command="set modelscalename 1:5000; gui set toggle off searchId=400-419; gui set toggle on searchId=419" searchId="419" /> </Menu> <Delete /> </MenuBar> </Menus> </Commands> <PersistentTopology genFile="topology.xml" schemaVersion="http://www.bentley.com/schemas/GeoSpatial/extensions/topo/1.0" /> </Workspace> </Workspaces> <GraphicalSources genFile="graphicalsources.xml"> <GraphicalSourceGroup type="file"> </GraphicalSourceGroup> <GraphicalSourceGroup type="Oracle"> </GraphicalSourceGroup> <GraphicalSourceGroup type="SQLServer"> </GraphicalSourceGroup> <GraphicalSourceGroup type="WFS"> </GraphicalSourceGroup> <GraphicalSourceGroup type="GDB"> </GraphicalSourceGroup> </GraphicalSources> </GeospatialSchema>