You are here: Symbol Reference > JSDialog Namespace > Classes > TJSCustomButtonItem Class > TJSCustomButtonItem Properties
LMD DialogPack
ContentsIndexHome
PreviousUpNext
TJSCustomButtonItem Properties

The properties of the TJSCustomButtonItem class are listed here.

 
Name 
Description 
 
Determines whether the button's OnClick event handler executes when the Escape key is pressed. If Cancel is true, the button's OnClick event handler executes when the user presses Esc. Although an application can have more than one Cancel button, the form calls the OnClick event handler only for the first visible button in the tab order. 
 
The text that appears on the button 
 
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. 
 
When True the shield icon is displayed on the custom button. It doesn't matter if command links are being displayed, the shield is displayed regardless. 
 
Default Enabled state for the button. 
 
The custom image associated with the button. This image should be only 16 x 16 pixels. 
 
Hint 
Contains the text string that can appear when the user moves the mouse over the control. 
 
If the CustomButtons have an image list assigned then the button will display the image at the index specified in that image list. 
 
Info 
Additional text information that is displayed under the buttons Caption and to the right of any Picture that is associated with the button. 
 
The return result that the dialogs ModalResult property is set to when this button is clicked. 
 
Assign a picture to your custom button to display an image under the Caption and to the left of any assigned Info text. While the picture can be any size you choose, the recommended maximum size if 48 x 48 pixels. 
 
If the CustomButtons have a Picture image list assigned then the button will display the image at the index specified in that image list. 
 
The return value that is used to identify when this button has been clicked in the dialog. Handle the OnControlClick event and check the Value parameter to identify which button has actually been clicked. 
 
Default Visible state for the button. 
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!