| 1 | = EVENT_FLAG_SHOW = |
| 2 | For buttons defined with the flag FORM_OUTLINE_1LINE_WND .. FORM_OUTLINE_15LINE_WND a hole is present in the display of the button to allow custom text to be displayed within the button. EVENT_FLAG_SHOW is a defined value for the nData parameter of the button event to indicate the display text should be shown. |
| 3 | |
| 4 | |
| 5 | == Examples == |
| 6 | |
| 7 | {{{ |
| 8 | string productId = ""; |
| 9 | |
| 10 | EVENT(Product) |
| 11 | { |
| 12 | if(EVENT_FLAG_SHOW) // Draw Button Contents |
| 13 | { |
| 14 | EVENT_SHOW_BTN_CONTENT(productId); |
| 15 | } |
| 16 | else |
| 17 | { |
| 18 | IN_EVENT_HIDE_FORM; |
| 19 | |
| 20 | InputProductID(); |
| 21 | |
| 22 | IN_EVENT_SHOW_FORM; |
| 23 | } |
| 24 | return 0; |
| 25 | } |
| 26 | |
| 27 | EVENT(Customer) { |
| 28 | |
| 29 | }}} |
| 30 | |
| 31 | == See Also == |
| 32 | |
| 33 | * [wiki:EVENT_SHOW_BTN_CONTENT EVENT_SHOW_BTN_CONTENT] |
| 34 | * [wiki:FORM_INIT FORM_INIT] |
| 35 | * [wiki:FORM_SHOW FORM_SHOW] |
| 36 | * [wiki:FORM_RUN FORM_RUN] |
| 37 | |