Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

VisualStyle style property

florian
2021-02-12
2022-12-16
  • florian - 2021-02-12

    Hello,

    I need to create my own VisualStyle with the editor.
    without proper documentation it's hard to guess which property does what.

    Is it correct that it depends on the property 'Style'
    (STYLE9_FLAT, STYLE1_XP, STYLE_BASIC, STYLE_WHITE)
    whether a property shows an effect?

    You can't just copy a property from one style to an other?

    For example, colors in the scrollbar (for a table) are only editable with the flat style.

     
  • surikan - 2022-12-16

    Hi Florian,
    Did you ever get hold of a manual or some info on how to and what are the possible values?

     
  • j-zauner - 2022-12-16

    Hi,

    as mentioned in the other post, an overview over the style entries is coming soon.
    Yes, it is depending on the "Style" property. Because depending on the style different elements are used for a scrollbar button for example.
    In Basic Style it is a button, in flat style it is a Rectangle, so the respective style entries apply.

    So yes, the flat style is the most editable one.
    Colors used in flat style (only!):
    Element-Scrollbar-ButtonColor
    Element-Scrollbar-ScrollAreaColor
    Element-Scrollbar-BackgroundClickColor
    Element-Scrollbar-KnobColor
    Element-Scrollbar-OnlyKnob
    Element-Scrollbar-Knob-RoundRectRadius
    Element-Scrollbar-Knob-FixedLength

    Colors for basic style:
    Element-Control-Color
    Element-Control-HighlightColor
    Element-Control-ArrowColor (Style white and basic)
    Element-Scrollbar-BackgroundClickColor

    There are more style entries for other styles like the white one for example, but the list would be a bit long if I mentioned all of them here.

    Regards
    Julian

     

Log in to post a comment.