I have an Array held in some GUI class whose elements gets updated on user component changes.
I have another class listening for changes in this array which seems to only work if I declare a Value for each element in the Array as a member and make this array as a “Array< Value >”.
Is there another approach to this because the number of elements in this Array must be set by the user - variable.
I’d like to avoid using button attachments as the Array is changed via mouse interaction on components. That is, I only need one listener for many components that change their corresponding element in the array.
p.s. I’m no advanced programmer.
Many thanks in advance.