Class: DuButton

DuButton

For use with DuScriptUI.
An Image Button.
This is not a real class, and cannot be instanciated.
Use DuScriptUI.button to create an Image Button.
The Image Button inherits the Group object from ScriptUI and has all of its properties and methods.

new DuButton()

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 8889
Properties:
Name Type Description
helpLink string A URL to a help page, shown on shift click on the button.
image Image The scriptui object representing the image.
label StaticText The label
optionsPopup DuPopup A popup for .
optionsPanel Group The ScriptUI Group where to add the options (child of the popup).
onClick DuButton~onClick The function to execute when the button is clicked
onAltClick DuButton~onAltClick The function to execute when the button is Alt + clicked
onCtrlClick DuButton~onCtrlClick The function to execute when the button is Ctrl + clicked
onCtrlAltClick DuButton~onCtrlAltClick The function to execute when the button is Ctrl + Alt + clicked

Methods

staticDuButton.setBackgroundColor(color)

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 8932
Changes the background color of the button.
Name Type Description
color DuColor the color.

staticDuButton.setTextColor(color)

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 8940
Changes the text color of the button.
Name Type Description
color DuColor the color.

Type Definitions

onAltClick()

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 8914
The function to execute when the button is Alt + clicked.

onClick()

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 8908
The function to execute when the button is clicked.

onCtrlAltClick()

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 8926
The function to execute when the button is Ctrl + Alt + clicked.

onCtrlClick()

D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 8920
The function to execute when the button is Ctrl + clicked.