I want to increase the font size of the combo box.

  • Hi,

    you need to modify the 'design' to change the appearance of the combobox.

    E.g. have a look into the combobox.xml and there at this part:

    Code
    <combobox_design name="default" margin="2" open_close_speed="0.25">
      <!-- default design - white box with black text and blue selection -->
      <style name="combobox_container_style" bgalpha="1.0" bgcolor="0xFFFFFF" bgborder="1 0xFFFFFF 0.5" bgroundedge="1" bgshadow="0 1 3 0x000000 1.0" />
      <style name="combobox_marker_style" css="color:#FFFFFF;" bg="false" txtshadow="0 0 2 0x000000 1" />
      <style name="combobox_item_style" css="color:#222222;" padding="4 4" bg="false" bgcolor="0xC7E4FC" bgalpha="1.0" bgroundedge="1" txtshadow="0 0 1 0xFFFFFF 1.0" />
    </combobox_design>


    Then copy that part into your xml,
    change the name 'default' to something custom,
    and in this line:

    Code
    <style name="combobox_item_style" css="color:#222222;" padding="4 4" bg="false" bgcolor="0xC7E4FC" bgalpha="1.0" bgroundedge="1" txtshadow="0 0 1 0xFFFFFF 1.0" />


    change this:

    Code
    css="color:#222222;"


    to this:

    Code
    css="color:#222222;font-size:20px;"

    Finally give your <combobox> that design by setting the 'default' attribute to your custom design name:

    Code
    <combobox name="cb11" design="default" ...

    Please see here for more details:
    https://krpano.com/plugins/combobox/#customdesigns

    Best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!