On Alternative Click
|Code||Can be called by||Definition|
|38||Button - List Box - List Box Column|
Some button styles can be linked to a pop-up menu and display an triangle. Clicking on this triangle causes a selection pop-up to appear that provides a set of alternative actions in relation to the primary button action.
4D allows you to manage this type of button using the
On Alternative Click event. This event is generated when the user clicks on the triangle (as soon as the mouse button is held down):
- If the pop-up menu is separated, the event is only generated when a click occurs on the portion of the button with the arrow. Note that the standard action assigned to the button (if any) is not executed in this case.
- If the pop-up menu is linked, the event is generated when a click occurs on any part of the button. Note that the
On Long Clickevent cannot be generated with this type of button.
This event is generated in columns of object array type list boxes, when the user clicks on a widget ellipsis button ("alternateButton" attribute).