Non-editable TextPropertyComponent


#1

Hi All!

Would it be possible to add an argument or a setter/getter to make TextPropertyComponents non-editable? Seems easy enough to edit/add a constructor:

class TextPropertyComponent::LabelComp  : public Label,
                                          public FileDragAndDropTarget
{
public:
    LabelComp (TextPropertyComponent& tpc, const int charLimit, const bool multiline)
        : Label (String(), String()),
          owner (tpc),
          maxChars (charLimit),
          isMultiline (multiline)
    {
        setEditable (true, true, false);

        updateColours();
    }

Thank you!

Vincent


#2

I’ve added this and it will be on the develop branch shortly.


#3

Amazing, thank you!