ASPiK SDK
Loading...
Searching...
No Matches
Using Templates

Templates are a powerful way to manage and design clusters of controls that are repeated. It is also used when making a tabbed GUI - each of the views in the tabbing system is actually a Template. You use the Edit menu to deal with templates: you cam create, duplicate, and destroy the templates from the Edit menu so you should get used to using those functions. Some notes:

• when you create a template, you must specify a CViewContainer-based object to be the outer control container. There are several containers to choose from and you should experiment with the different containers - be sure to read the VSTGUI4 documentation!!


• each template must specify and link to the exact controls that it contains so you will likely need to use the "Duplicate Template" function to make these copies; make sure to give each copy a unique and easily decoded name.
• when working with templates, make sure you keep track of any custom views or sub-controllers (see advanced GUI stuff)
• templates can be picked up and moved around with all controls following along - this makes it easy to setup repeated rows or columns of control clusters
• the templates will appear in the list below the main canvas; from here you can immediately see the templates child objects. You can also right-click on a template and delete or duplicate it right from that list as shown here:

<br