A structure that can be used to instantiate a ControlTemplate object instance in a window The ControlTemplate contains just those fields that are not specific to a particular window, and the control's placement within that window A typical use case would be for creating controls that will be displayed more than once on the same window, and vary only in location. More...
#include <control_template.h>
Data Fields | |
| h_align_type | h_align_ |
| button vs checkbox vs radio button, etc. | |
| v_align_type | v_align_ |
| whether the control should be positioned relative to the left side, right side, or centered | |
| int16_t | x_offset_ |
| whether the control should be positioned relative to the top edge, bottom edge, or centered | |
| int16_t | y_offset_ |
| horizontal coordinate relative to the parent window's left or right edge. If h_align_ is H_ALIGN_CENTER, this value will be ignored. | |
| int16_t | width_ |
| vertical coordinate relative to the parent window's top or bottom edge. If v_align_ is V_ALIGN_CENTER, this value will be ignored. | |
| int16_t | height_ |
| width of the control | |
| int16_t | min_ |
| height of the control | |
| int16_t | max_ |
| minimum allowed value | |
| Bitmap * | image_ [2][2] |
| maximum allowed value | |
| char * | caption_ |
| 4 image state bitmaps: [active yes/no][pushed down yes/no] | |
| int16_t | avail_text_width_ |
| optional string to draw centered horizontally and vertically on the control. Typical use case is for a button. | |
A structure that can be used to instantiate a ControlTemplate object instance in a window The ControlTemplate contains just those fields that are not specific to a particular window, and the control's placement within that window A typical use case would be for creating controls that will be displayed more than once on the same window, and vary only in location.