Sugesstion: Component var Object


It would be nice if every Component has a var member, which can be used for various reasons.
Sometimes its just easier to store a little information in the Component (for example for additional information in listener-callbacks), instead of subclassing it or storing a pointer ref in a extra array which stores the additional information.

For example i have a dynamic error list,with contains labels and buttons etc., if i could store the errorID directly into the button, it would be very easy to write the listener callback, now i have to use a extra array-structure to get the right errorId for every button.


That’s what Component::getProperties() is for!


Oh nice :smiley: Sometimes I’m blind :wink: