15.08.2013 Views

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Object: ”ObjectCommand Item Object”<br />

Description: Sets the command object to look at the next command in the menu<br />

or toolbar. All methods in the CCommandItem interface will apply to that<br />

command. You must use the object’s other properties and methods to obtain<br />

information on the command.<br />

A return value of “false” means there is no next command. If “false”, the<br />

command reference does not change and remains on the previous command.<br />

This method works with CmdFirst.<br />

Here is an example of how to use these methods.<br />

function ListAllMenuItems(sEditorName)<br />

{<br />

var objMenus = <strong>eWebEditPro</strong>.instances[sEditorName].editor.Toolbars();<br />

var objCmdItem = objMenus.CommandItem(""); // no command name for no specific command<br />

}<br />

Method: CmdNext<br />

if(objCmdItem.CmdFirst() == true)<br />

{<br />

do<br />

{<br />

ShowText (objCmdItem.getPropertyString("CmdName") + " - " +<br />

objCmdItem.getPropertyString("CmdCaption"));<br />

} while(objCmdItem.CmdNext() == true);<br />

}<br />

Method: CommandAdd<br />

Object: ”ObjectCommand Item Object”<br />

Description: Adds a command to the specified toolbar.<br />

Object: ”Toolbars Object”<br />

Parameters<br />

Parameter Type Description<br />

CommandName String The name of the command to add. When selected,<br />

this is the string value sent up as the command.<br />

See Also: ”Commands”<br />

CommandCaption String The caption to use next to the command.<br />

ToolTip String Tool tip text that pops up when the cursor hovers<br />

over a command.<br />

<strong>Ektron®</strong> <strong>eWebEditPro</strong> Developer’s <strong>Reference</strong> <strong>Guide</strong>, Release 5.1, Revision 1 50

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!