|
Home » Development Area » DigiGuide Script » API Index » Class: App » addNewCommand Method
Class App : addNewCommand Method
| void addNewCommand( String commandName, Function function, Function updateFunction ) |
Summary
Add a new command into the system.
Parameters
| Parameter | Description |
| String commandName |
The new command name |
| Function function |
Function called when the command is invoked |
| Function updateFunction |
Function that gets called when the UI needs to update. |
|
|
|
Examples
app.addNewCommand( "QuickTest", onQuickTest, onQuickTestUIUpdate ); app.addKeyboardShortcut( "QuickTest", "Ctrl+Shift+K" );
function onQuickTest() { alert( "hello" ); }
function onQuickTestUIUpdate( up ) { up.enable( true ); }
|
See Also
App : addKeyboardShortcut
UIUpdate
Requirements
build 1065
(Last updated: July 04, 2008 15:18:19)
|
|