Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Properties SubGroup show color

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Properties SubGroup show color

    Can someone please help me with this? I want to show color chosen by user in properties subgroup description (as in default plot subgroup which creates itself after AddPlot()). I know how to show any text or parameter with this code:

    Code:
    public override string ToString() { return "text"; }
    ..but dont know how to show color as color (not hex code). Thanks


    Click image for larger version

Name:	image.png
Views:	84
Size:	20.8 KB
ID:	1326618

    #2
    Hello Marty125,

    Thank you for your post.

    Apologies if I'm misunderstanding you, are you simply looking to create your own property for the user to select the color which looks like the one in the screenshot?

    You can create your own user defined color input which will display as shown in your screenshot.



    Please let me know if this doesn't guide you in the right direction.

    Comment


      #3
      Yeah, I know how to create color user input. I have my ExpandableObjectConverter Class (properties subgroup) with color input in it. And there is this part of code I wrote before which overrides descrtiption of the subgroup. I can put any parameters just by using X.ToString() and it will be shown there (as e.g. "Solid" in the picture). But I dont know how to put color rectagngle there which will show in the header which color user chosed.

      Comment


        #4
        Hello Marty125,

        Thank you for clarifying.

        Unfortunately, this is not supported or documented. AddPlot and AddLine are specifically built into the platform and are not the same as Expandable objects, which are a generic way of making a section that isn't fully supported.

        However, this thread will remain open for any users who may want to suggest unsupported/undocumented code.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X