wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/Form/EVENT_SHOW_BTN_CONTENT

Version 1 (modified by Don Wilson, 6 years ago) ( diff )

--

EVENT_SHOW_BTN_CONTENT

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_SHOW_BTN_CONTENT is a macro to simplify the call to the form to show the text to appear in the button.

Parameters

  • None

Return Value

This function does not return any value

Remarks

EVENT_SHOW_BTN_CONTENT is a macro to simplify the operation of form events. The preprocessor will replace this with a call to the Hide function of the form.

#define EVENT_SHOW_BTN_CONTENT(line1, morelines...) pItem->ShowButtonContent(line1, ##morelines)

Examples

string productId = "";

EVENT(Product)
{
   if(EVENT_FLAG_SHOW) // Draw Button Contents
   {
      EVENT_SHOW_BTN_CONTENT(productId);
   }
   else
   {
      IN_EVENT_HIDE_FORM;

      InputProductID();
	
      IN_EVENT_SHOW_FORM;
   }
   return 0;
}

EVENT(Customer) {

See Also

Note: See TracWiki for help on using the wiki.