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/DuAEF/DuESF/tools/build/output/DuESF.jsxinc, line 8229
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
optionsPanel DuPopup A panel for options
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/DuAEF/DuESF/tools/build/output/DuESF.jsxinc, line 8271
Changes the background color of the button.
Name Type Description
color DuColor the color.

staticDuButton.setTextColor(color)

D:/DEV_SRC/RxOT/DuAEF/DuESF/tools/build/output/DuESF.jsxinc, line 8279
Changes the text color of the button.
Name Type Description
color DuColor the color.

Type Definitions

onAltClick()

D:/DEV_SRC/RxOT/DuAEF/DuESF/tools/build/output/DuESF.jsxinc, line 8253
The function to execute when the button is Alt + clicked.

onClick()

D:/DEV_SRC/RxOT/DuAEF/DuESF/tools/build/output/DuESF.jsxinc, line 8247
The function to execute when the button is clicked.

onCtrlAltClick()

D:/DEV_SRC/RxOT/DuAEF/DuESF/tools/build/output/DuESF.jsxinc, line 8265
The function to execute when the button is Ctrl + Alt + clicked.

onCtrlClick()

D:/DEV_SRC/RxOT/DuAEF/DuESF/tools/build/output/DuESF.jsxinc, line 8259
The function to execute when the button is Ctrl + clicked.