Hello! I’m just starting out using VSTGUI and had a few questions about using sub-controllers. I’m using a data exchange system (more or less the one described in the data exchange tutorial) and wanted to update a CTextLabel to display one of the incoming data values. Based on reading some documentation/form posts, it seems like a sub-controller would be the best way to do this (could be wrong of course). I created the code for my sub-controller, but I’m unsure about how to link the sub-controller to the main controller/call its function to edit its linked label.
I was also trying to assign the sub-controller using the UI Editor, and was unsure whether to assign it to the main view (and have it look for a specific tag matching the label I want to edit in its verifyView function) or to assign it to the label itself.
Finally, I wasn’t sure specifically what to put in the UI Editor’s sub-controller text field (i.e. if it’s supposed to populate with different sub-controller options like the control-tag field and I’m missing some step to make that occur, or if I’m just meant to type in the name of my sub-controller class manually).
Any tips for any of these questions would be great, again I’m just starting out so there’s a high chance I’m just approaching the problem wrong too – let me know if so! Thanks!