Hi James,
Thanks for getting back to me. I can get your example to work as the parameter is an INT16 choice constraint.
When I try and do the same on a String Key/Value constraint it doesn't seem to work. Is that to be expected?
<param access="1" constraintstrict="false" constrainttype="STRING_STRING_CHOICE" maxlength="0" name="OS1_FIRST_A" oid="0x8" type="STRING" value="0" widget="default">
<constraint key="0">Smallest<size:smallest></constraint>
<constraint key="178">Normal<size:normal></constraint>
<constraint key="242">Biggest<size:biggest></constraint>
</param>
I appreciate in this example an INT16 constraint would be a better choice. Should the formatting work here too?
Thanks,
------------------------------
Noah
------------------------------
Original Message:
Sent: 08-23-2021 13:29
From: James Peltzer
Subject: Text Sizing & Style Issues with Dropdown Boxes
Hi Noah
Putting the size information into the choices is still the only mechanism that can impact the dropdown list fonts. I have verified that it is working in the shipping version (DB 9.2.1) of DashBoard. I understand that putting it into the string value for the parameter is not your preferred choice but it is the mechanism we have available. If using the value as a String for DataLinq is problematic, you can also copy the non-style part of the string to a different parameter and DataLinq that one.

<abs contexttype="opengear" id="_top" keepalive="false" style="">
<meta>
<params>
<param access="1" constrainttype="INT_CHOICE" name="Choices" oid="choices" precision="0" type="INT16" value="2" widget="combo">
<constraint key="0">Smallest<size:smallest></constraint>
<constraint key="1">Smaller<size:smaller></constraint>
<constraint key="2">Small<size:small></constraint>
<constraint key="3">Normal<size:normal></constraint>
<constraint key="4">Big<size:big></constraint>
<constraint key="5">Bigger<size:bigger></constraint>
<constraint key="6">Biggest<size:biggest></constraint>
</param>
<param access="1" maxlength="0" name="Selected Choice String" oid="selected_choice_string" type="STRING" value="Small" widget="label"/>
</params>
</meta>
<param expand="true" height="127" left="141" oid="choices" runtasksonload="true" showlabel="false" top="159" width="415">
<task tasktype="ogscript">var choiceString = this.getValueAsString() + '';
var styleStart = choiceString.indexOf('<');
if (styleStart > 0)
{
params.setValue('selected_choice_string', 0, choiceString.substring(0, styleStart));
}
else
{
params.setValue('selected_choice_string', 0, choiceString);
}</task>
</param>
<param expand="true" height="45" left="145" oid="selected_choice_string" showlabel="false" top="317" width="413"/>
</abs>
Cheers
James
------------------------------
James Peltzer
Ross Video
Original Message:
Sent: 08-23-2021 12:37
From: Noah Callaway
Subject: Text Sizing & Style Issues with Dropdown Boxes
Hi James,
Is the font size for dropdowns still a fixed size in #DashBoard 9.2?
I've tried the above method of adding style information in the text component, but it's quite messy and doesn't seem to work.
Thanks,
------------------------------
Noah
Original Message:
Sent: 11-12-2020 03:18
From: Ding YouXing
Subject: Text Sizing & Style Issues with Dropdown Boxes
Hi James
Is there a way to add attributes to <param> instead of modifying the constraints individually? There are two problems with that.
- it's a hassle to operate.
- it does change the style, but when you use this panel to stream it to datalinq.It displays the code in full, but that's not what I want.
PS: Does this work for String type params?

#DashBoard