Button
The Button enumerated data type is used to define the complete list of buttons that can be created and displayed on a TabControl. Figure 19-8 shows the code required.
An enumerated data type is used to define a fixed list of elements, and is typically used in an enterprise framework to provide a level of control and a point of flexibility and customization. For example, we could develop functionality that iterates through the elements listed in an enumerated data type, and have ancestor code that creates a visual control for each element found. Therefore, to add another visual control, we could simply add an additional element to the enumerated list.
Each element in the enumerated data type consists of a name, value and index. In the code ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access