Changes between Version 13 and Version 14 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Form/FORM_ADD_BUTTON
- Timestamp:
- 04/13/18 09:24:03 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Form/FORM_ADD_BUTTON
v13 v14 38 38 39 39 The FORM_ADD_BUTTON macro should not be inserted in a condition. An entire form FORM_INIT .. FORM_HIDE may be in a condition. If any FORM_ADD_BUTTON macros are in conditions the form will then have an invalid pointer for each occurrence. The reason is that the FORM_ADD_BUTTON macro declares a CFormButton item and then adds the item to the specified form. The CFormButton item will go out of scope at the end of the condition. If conditional items are needed the FORM_FLAG_DISABLE may be used to make the item hidden. The [wiki:CForm CForm::EnableItem] function may then be used to conditionally show the item. 40 41 === Button Styles === 42 * FORM_BUTTON 43 * FORM_BUTTON_BIG 44 * FORM_BUTTON_OUTLINE 45 * FORM_BUTTON_INVERT 46 * FORM_BUTTON_OWNERDRAW 47 48 FORM_BUTTON_INVERT is recommended for new apps. This can be combined with FORM_OUTLINE_xLINE_WND (x = number of lines of extra text inside the button: can be from 1 to 15) flag and FORM_SHOW_EVENT flag to create buttons that show settings within the button. 40 49 41 50 == Examples ==