Facility Control

 View Only
  • 1.  Change font size in choice constraint (dropdown)

    Posted 02-19-2023 00:37

    Hello, I would like to make the font of the options in a dropdown menu larger. However, the font setting in the style page of the dropdown only affects the name of the dropdown, not its selectable options. How can I fix this?



    ------------------------------
    Sam R
    ------------------------------


  • 2.  RE: Change font size in choice constraint (dropdown)

    Posted 04-14-2023 18:23

    Hi Sam
    If you put the size into the style area of the choices, you can impact the way the render when the dropdown is visible.

       <param access="1" constrainttype="INT_CHOICE" name="Choice" oid="Choice" precision="0" type="INT32" value="0" widget="combo">
          <constraint key="0">small&lt;size:20&gt;</constraint>
          <constraint key="1">normal&lt;size:40&gt;</constraint>
          <constraint key="2">large&lt;size:60&gt;</constraint>
       </param>



    ------------------------------
    James Peltzer
    Ross Video
    ------------------------------



  • 3.  RE: Change font size in choice constraint (dropdown)

    Posted 10-31-2025 14:50

    Hi @James Peltzer! Long time no post!

    I was looking at this one myself now, as I'm trying to make a dashboard for a Microsoft Surface Tablet.
    The font size works well, but the scroll bar is still tiny if there's more options that needs scrolling.

    Any way to make this "touch-friendly"?



    ------------------------------
    Aleksander Stalsberg
    Inland Norway University of Applied Sciences/Lillehammer Icehockey Club
    Norway
    ------------------------------



  • 4.  RE: Change font size in choice constraint (dropdown)

    Posted 28 days ago

    In general, you might be best to use alternate approaches to a combo box when designing for touch UIs.  One common approach (you'll see it in many of the Carbonite menus) is to use a <popup/> and a parameter with "toggle-buttons" widget hint.



    ------------------------------
    James Peltzer
    Ross Video
    ------------------------------



  • 5.  RE: Change font size in choice constraint (dropdown)

    Posted 11-01-2025 08:30

    Can I also add that while this works. It also messes with the params.getValueAsString function from a dropdown like this. This will include the tag as well and you need some form og regex to remove it when then want to use it.



    ------------------------------
    Aleksander Stalsberg
    Inland Norway University of Applied Sciences/Lillehammer Icehockey Club
    Norway
    ------------------------------