
Set to true to fire the click event when the enter key is pressed
Member of Raised Button (PRIM_MD.RaisedButton)
Data Type - Boolean
Details
The ButtonDefault property associates the button to the Enter key. When True, pressing the Enter key will fire the Click event, unless focus has been moved to another button. Only one button can be set to True.
Example
This page shows the use of ButtonDefault and ButtonCancel. Pressing Enter or Escape will fire the OK and Cancel click events respectively.
Begin_Com Role(*EXTENDS #PRIM_WEB) Define_Com Class(#PRIM_MD.RaisedButton) Name(#OK) DisplayPosition(1) Left(206) Parent(#COM_OWNER) TabPosition(1) Top(128) ButtonDefault(True) Icon('check') Define_Com Class(#PRIM_MD.RaisedButton) Name(#Cancel) DisplayPosition(2) Left(303) Parent(#COM_OWNER) TabPosition(2) Top(128) ButtonCancel(True) Icon('close') Evtroutine Handling(#OK.Click) #sys_web.Alert( "OK" ) Endroutine Evtroutine Handling(#Cancel.Click) #sys_web.Alert( "Cancel" ) Endroutine End_Com
See also
LANSA Version 15, April 2020