You are here: Symbol Reference > JSDialog Namespace > Classes > TJSCustomButtonItem Class > TJSCustomButtonItem Properties > TJSCustomButtonItem.Default Property
LMD DialogPack
ContentsIndexHome
PreviousUpNext
TJSCustomButtonItem.Default Property
Pascal
property Default: Boolean;

Determines whether the button's OnClick event handler executes when the Enter key is pressed. If Default is true, the button's OnClick event handler executes when the user presses Enter. 

Although an application can have more than one Default button, the form calls the OnClick event handler only for the first visible button in the tab order. Moreover, any button that has focus becomes the Default button temporarily; hence, if the user selects another button before pressing Enter, the selected button's OnClick event handler executes instead.

Copyright © 2013 by LMD Innovative. All rights reserved.
Copyright © 2013 by LMD Innovative. All rights reserved.
What do you think about this topic? Send feedback!