ActiveX design object embedded data sources
Hi,
We have Bartender 2019 and we're using the ActiveX controls.
I am trying to figure out how you know what Named Substrings (e.g. embedded data sources) are attached to a design object (e.g. a text field).
The DesignObject class has a GetXML() method which returns something like this:
<Text Enabled="true" FitWidth="1.459 in" FitHeight="0.189 in" Name="Text 4" Width="1.850 in" ConditionalPrintType="Always" Position.X="0.118 in" Position.Y="1.824 in">
<Tabs/>
<Font PointSize="12.000" FontName="Intermec Swiss Mono" Height="-240" Weight="700" IsDeviceFont="true" Scale="100">
<Underline/>
<Strikethrough/>
<Foreground Mode="Solid" Color="00000000"/>
</Font>
<DataSources>
<EmbeddedDataSource ID="{358E9DDA-6840-4976-AD41-10F45946EE9B}" SubStringListStringID="4294967295" CharSet="0" CultureID="-3" InputCultureID="1033">
<Transforms>
<DataEntryTransform Prompt="Name" PromptOnExternalKeyboard="Name:" EnablePromptingOnExternalKeyboard="true"/>
</Transforms>
<Value>Item</Value>
</EmbeddedDataSource>
</DataSources>
</Text>
Note the DataSources and EmbeddedDataSource nodes. This seems to refer to something like this you see in the UI:
However, that just gives you some internal GUID instead of the name of the data source.
And the Format class has the NamedSubStrings property, which gives you a collection of SubString objects, which have properties like this:
name=ItemName
value=Item
type=btSubStringScreenData
However, there is no GUID in here.
In short, you can get a list of named data sources that corresponds to this:
and you can get some XML showing that the text field has some kind of data source.
But there doesn't appear to be anything to tie a data source GUID to a substring name.
Am I missing something? Is there any way to get the named datasources tied to a text object?
Thanks
Tom
请先登录再写评论。
评论
0 条评论