Taking merge behavior into account (see Merging sectino), nested templating is rather straightforward as far as the XML definitions go. Templates can be nested, meaning that a template is defined with another template as the source type. Then, you can include the text entry template within any window, and customize it further with layout information and logic specific to that window.)Ĭompartmentalizing complex window control logic outside of the window class definition.Ĭreating new control types, such as string cycling buttons or checkbox buttons. ![]() ![]() ![]() (Ex: For a standard text entry field, you may define a string field template with a common frame and font to be used. Use templates to allow ruleset layers and extensions to more easily override your interface for theming.Ĭreate a common look and feel for your interface (such as standard text entry fields), while allowing those elements to be customized within each interface. ![]() Manage frequently used control definitions in one place. There are a number of reasons to use templates, including: Templates allow window control definitions to be extended and enhanced.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |