I'm making an excel-like program.
I have an ArrayCtrl with dynamic columns and I wanted to add Ctrls so that you can edit the content.
I was trying to add them by default for every column, so I made this:
Unfortunately it's very slow, both the loading of the table and the program itself once it's loaded.
So I had an idea... When you click on a cell, it creates the edit just for that cell and if you click outside or press "enter" it destroys itself and the new value is updated.
Actually I declare them before that piece of code, inside the function, if I make a public variable it kinda works (it clones the input on every column). I'll post the whole script so I don't need to write an huge post.
The problem is that they are not "static" so I can't create 20 single variables for every type... I need something dynamic with pointers and slicing, while Edit function doesn't want them...
error: no matching function for call to 'Upp::ArrayCtrl::Column::Edit(Upp::Ctrl*&)'