Skip to Content

HowTo add buttons or links to the toolbar

Despite the links you can add to the text columns you can also have button and links in a horizontal toolbar at the bottom of the detail window. In order to avoid a mixture of controls it is only possible to use links or buttons. Thus you need to set the element type centrally, e.g.:

LV_DETAILS->SET_TOOLBAR_ELEMENT_TYPE( LV_DETAILS->CO_LINE_TYPE_BUTTON ).


After that you can add the actual elements:

LV_DETAILS->ADD_TOOLBAR_ELEMENT( IV_TEXT = 'Button 1' IV_FCODE = 'BTN1'). "#EC NOTEXT

LV_DETAILS->ADD_TOOLBAR_ELEMENT( IV_TEXT = 'Button 2' IV_FCODE = 'BTN2'). "#EC NOTEXT

Important notice

The detail window has only very limited layouting. Thus all elements need to fit on the window, otherwise the elements might be clipped.

Tags:
Former Member

No comments