Introduction

There are many functions that you can use to manipulate both the DevEdit control and its contents. Over the next couple of pages, these functions will be explained and an example will be provided for each.

First, if your application does not already start a PHP session, then you must do so as DevEdit uses session variables to pass data between screens:

<?php session_start(); ?>

Now we must learn how to instantiate (or create) the DevEdit class. There are 3 steps involved. Firstly, you must include the DevEdit class file. Secondly, you must create a new DevEdit class object. Finally, you must assign a unique name to your DevEdit control, as shown below:

<?php

include_once("de/class.devedit.php");
 
// Create a new DevEdit class object
$myDE = new DevEdit;

SetDevEditPath("/de");
$myDE->SetName("myDevEditControl");

?>

Once you've created a DevEdit class object, you call functions against that object, for example:

myDE->ShowControl("90%", "200pt", "/myImages");

Note: You can place the DevEdit "de" folder anywhere on your web server. You simply need to make sure that:

  1. You change the path in the include() tag to reference the proper path to your DevEdit class file
  2. You specify the proper path using the SetDeveditPath function. This path can be document relative such as '../de' or root relative such as '/myapp/de'

Note: You can retrieve the DevEdit contents using either the GetValue function or the $_POST array. The name of the variable in the $_POST array will be [DevEdit_Control_Name]_html.

For example if you pass "myDevEditControl" to the SetName function, the variable would be $_POST["myDevEditControl_html"]

AddCustomInsert

This function can be used to add a custom insert snippet. A custom insert is basically a piece of HTML code that you can insert into the DevEdit control quickly. After calling the AddCustomInsert function, the custom insert button will appear on the toolbar. Simply click on it and your list of custom inserts will appear.

Function Syntax:

void AddCustomInsert ( string InsertName, string InsertHTMLCode )

Function Example:

$myDE->AddCustomInsert("DevEdit Logo", "");

AddCustomLink

This function can be used to add a custom link to the link manager. A custom link is a quick and easy way to add a list of "pre-defined" links to the links manager. To insert a link with no target, specify the third parameter (TargetWindow) as an empty string, "".

Function Syntax:

void AddCustomLink ( string LinkName, string LinkURL, string TargetWindow )

Function Example:

$myDE->AddCustomLink("Interspire Website", "http://www.interspire.com", "_blank");

AddEventListener

This function allows you to add an Javascript event listener to the DevEdit control. For example you can add an onload event so you can call another Javascript function when the editor has finished loading.

Function Syntax:

void AddEventListener(string Event, String FunctionName )

Function Example:

$myDE->AddEventListener("onLoad", "javascript_function_name")

AddHiddenFileOrFolder

This function adds a list of files or folders that you want to hide from the link or media manager. Wildcards are also supported. (*)

Function Syntax:

void AddHiddenFileOrFolder(string FileOrFolderName);

Function Example:

$myDE->AddHiddenFileOrFolder("a762*");
$myDE->AddHiddenFileOrFolder("*.png");
$myDE->AddHiddenFileOrFolder("cover.png");
$myDE->AddHiddenFileOrFolder("this_should_be_hidden");

AddToolbar

This function lets you organize your toolbar to show exactly the buttons you want.

For the tool bar data, | stands for the next tool bar row, and - is a separator.

Function Syntax:

void AddToolbar ( string Name, string Tool Bar Data )

Function Example:

$rows = array (
"Fullscreen,Undo,Redo,Paste,-,OrderedList,UnorderedList,-,JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,-,Custominsert,Help",
"Spellcheck,-,RemoveFormat,-,Indent,Outdent,-,SubScript,SuperScript,CreateLink,CreateEmailLink,Anchor,-,Image,-,Table,Form,Pageproperties",
"Fontname,Fontsize,Formatblock,Fontcolor,Highlight,HR,Insertchars,Showborders",
);
$myDE->AddToolbar("MyToolbar", implode(",|,", $rows)); 

AddToolbarButton

This function lets you add your own button(s) to the toolbar and call an external Javascript function.

Function Syntax:

void AddToolbarButton ( string Name, int Width, int Height, string ImagePath, string JavascriptFunctionName )

Function Example:

$myDE->AddToolbarButton("CustomFields", 97, 20, "http://beta/deveditnx1.6.3/demo_images/crossbrowser.gif", "myfunction('hello')","");

DisableHTMLEntities

This function Stops DevEdit from automatically converting non-ascii characters to HTML entities. For example, ê will remain as is instead of being converted to &ecirc;.

Function Syntax:

void DisableHTMLEntities ( )

Function Example:

$myDE->DisableHTMLEntities();

DisableImageDeleting

This function hides the delete link in the image manager.

Function Syntax:

void DisableImageDeleting ( )

Function Example:

$myDE->DisableImageDeleting();

DisableImageEditing

This function hides the edit link in the image manager.

Function Syntax:

void DisableImageEditing ( )

Function Example:

$myDE->DisableImageEditing();

DisableImageUploading

This function hides the upload file box in the image manager.

Function Syntax:

void DisableImageUploading ( )

Function Example:

$myDE->DisableImageUploading();

DisableInsertFlashFromWeb

This function removes the ability to specify a remote location to a Flash file in the 'Insert media file' popup window.

Function Syntax:

void DisableInsertFlashFromWeb (  )

Function Example:

$myDE->DisableInsertFlashFromWeb();

DisablePreviewMode

This function hides the preview tab at the bottom of the DevEdit control.

Function Syntax:

void DisablePreviewMode ( )

Function Example:

$myDE->DisablePreviewMode();

DisableSingleLineReturn

In Internet Explorer, pressing Enter(Return) on the keyboard in the editor will result in a <P> tag being generated. To generate a <br> tag, a SHIFT + Enter is required. As this is confusing, by default DevEdit inserts a <br> tag when pressing Enter and a <p> tag when pressing SHIFT + Enter.

This function disables this and returns to the default method of handling new lines provided by Internet Explorer.

Function Syntax:

void DisableSingleLineReturn ( )

Function Example:

$myDE->DisableSingleLineReturn();

DisableSmartHistory

Browsers such as Internet Explorer and FireFox deal with the undo / redo history incorrectly. In some circumstances, the history can break such as when inserting images, tables etc. To circumvent this, you can use Smart history to overwrite the undo / redo history programatically. The SmartHistory fixes the undo / redo history buffer but may cause performance issues such as slower editing. This function will disable the SmartHistory.

Function Syntax:

void DisableSmartHistory ( )

Function Example:

$myDE->DisableSmartHistory();

DisableSourceMode

This function hides the source tab at the bottom of the DevEdit control.

Function Syntax:

void DisableSourceMode ( )

Function Example:

$myDE->DisableSourceMode();

DisableXHTMLFormatting

Disabling XHTML formatting means that any HTML produced by DevEdit will be HTML 4.1 compatible instead of XHTML compatible, which is the standard HTML formatting performed by DevEdit.

Function Syntax:

void DisableXHTMLFormatting ( )

Function Example:

$myDE->DisableXHTMLFormatting();

EnableGuidelines

This function enables dashed guidelines for tables and forms by default.

Function Syntax:

void EnableGuidelines ( )

Function Example:

$myDE->EnableGuidelines();

ForcePasteWord

This function forces the Paste from Word function when the user does a normal paste. This is useful if your end users are constantly pasting content from Microsoft Word that contains invalid HTML markup created by Microsoft Word.

Function Syntax:

void ForcePasteWord ()

Function Example:

$myDE->ForcePasteWord();

GetValue

This function gets the resultant HTMLfrom the DevEdit control once the control has been submitted as part of a form.

Function Syntax:

string GetValue ( bool ConvertQuotes )

If ConvertQuotes is true, then the string returned from GetValue will have single quotes and double quotes escaped so that it can be inserted directly into a database.

Function Example:

$HTMLCode = $myDE->GetValue(true);

HideAnchorButton

This function hides the anchor button on the toolbar.

Function Syntax:

void HideAnchorButton ( )

Function Example:

$myDE->HideAnchorButton();

HideBackColorButton

This function hides the background color button on the toolbar.

Function Syntax:

void HideBackColorButton ( )

Function Example:

$myDE->HideBackColorButton();

HideBoldButton

This function hides the bold button on the toolbar.

Function Syntax:

void HideBoldButton ( )

Function Example:

$myDE->HideBoldButton();

HideBulletListButton

This function hides the bullet list button on the toolbar.

Function Syntax:

void HideBulletListButton ( )

Function Example:

$myDE->HideBulletListButton();

HideCenterAlignButton

This function hides the center align button on the toolbar.

Function Syntax:

void HideCenterAlignButton ( )

Function Example:

$myDE->HideCenterAlignButton();

HideCleanHTMLButton

This function hides the clean HTML button on the toolbar.

Function Syntax:

void HideCleanHTMLButton ( )

Function Example:

$myDE->HideCleanHTMLButton();

HideDecreaseIndentButton

This function hides the decrease indent button on the toolbar.

Function Syntax:

void HideDecreaseIndentButton ( )

Function Example:

$myDE->HideDecreaseIndentButton();

HideFlashButton

This function hides the flash button on the toolbar.

Function Syntax:

void HideFlashButton ( )

Function Example:

$myDE->HideFlashButton();

HideFlashTab

This function hides the Flash tab in the media manager.

Function Syntax:

void HideFlashTab ( )

Function Example:

$myDE->HideFlashTab();

HideFontList

This function hides the font list on the toolbar.

Function Syntax:

void HideFontList ( )

Function Example:

$myDE->HideFontList();

HideForeColorButton

This function hides the foreground color button on the toolbar.

Function Syntax:

void HideForeColorButton ( )

Function Example:

$myDE->HideForeColorButton();

HideFormatList

This function hides the format list on the toolbar.

Function Syntax:

void HideFormatList ( )

Function Example:

$myDE->HideFormatList();

HideFormButton

This function hides the form button on the toolbar.

Function Syntax:

void HideFormButton ( )

Function Example:

$myDE->HideFormButton();

HideFullScreenButton

This function hides the fullscreen button on the toolbar.

Function Syntax:

void HideFullScreenButton ( )

Function Example:

$myDE->HideFullScreenButton();

HideGuidelinesButton

This function hides the guidelines button on the toolbar.

Function Syntax:

void HideGuidelinesButton ( )

Function Example:

$myDE->HideGuidelinesButton();

HideHelpButton

This function hides the help button on the toolbar.

Function Syntax:

void HideHelpButton ( )

Function Example:

$myDE->HideHelpButton();

HideHorizontalRuleButton

This function hides the horizontal rule button on the toolbar.

Function Syntax:

void HideHorizontalRuleButton ( )

Function Example:

$myDE->HideHorizontalRuleButton();

HideImageButton

This function hides the image button on the toolbar.

Function Syntax:

void HideImageButton ( )

Function Example:

$myDE->HideImageButton();

HideIncreaseIndentButton

This function hides the increase indent button on the toolbar.

Function Syntax:

void HideIncreaseIndentButton ( )

Function Example:

$myDE->HideIncreaseIndentButton();

HideItalicButton

This function hides the italic button on the toolbar.

Function Syntax:

void HideItalicButton ( )

Function Example:

$myDE->HideItalicButton();

HideJustifyButton

This function hides the justify button on the toolbar.

Function Syntax:

void HideJustifyButton ( )

Function Example:

$myDE->HideJustifyButton();

HideLeftAlignButton

This function hides the left align button on the toolbar.

Function Syntax:

void HideLeftAlignButton ( )

Function Example:

$myDE->HideLeftAlignButton();

HideLinkButton

This function hides the link button on the toolbar.

Function Syntax:

void HideLinkButton ( )

Function Example:

$myDE->HideLinkButton();

HideMailLinkButton

This function hides the mail link button on the toolbar.

Function Syntax:

void HideMailLinkButton ( )

Function Example:

$myDE->HideMailLinkButton();

HideMediaTab

This function hides the Media tab in the media manager.

Function Syntax:

void HideMediaTab ( )

Function Example:

$myDE->HideMediaTab();

HideNumberListButton

This function hides the number list button on the toolbar.

Function Syntax:

void HideNumberListButton ( )

Function Example:

$myDE->HideNumberListButton();

HidePositionAbsoluteButton

This function hides the absolute position button on the toolbar.

Function Syntax:

void HidePositionAbsoluteButton ( )

Function Example:

$myDE->HidePositionAbsoluteButton();

HidePropertiesButton

This function hides the properties button on the toolbar.

Function Syntax:

void HidePropertiesButton ( )

Function Example:

$myDE->HidePropertiesButton();

HideRemoveTextFormattingButton

This function hides the 'remove text formatting' button on the toolbar.

Function Syntax:

void HideRemoveTextFormattingButton ( )

Function Example:

$myDE->HideRemoveTextFormattingButton();

HideRightAlignButton

This function hides the right align button on the toolbar.

Function Syntax:

void HideRightAlignButton ( )

Function Example:

$myDE->HideRightAlignButton();

HideSaveButton

This function hides the save button on the toolbar. Note that if you hide this button, you will be required to add a submit button to your form.

Function Syntax:

void HideSaveButton ( )

Function Example:

$myDE->HideSaveButton();

HideSizeList

This function hides the size list on the toolbar.

Function Syntax:

void HideSizeList ( )

Function Example:

$myDE->HideSizeList();

HideSpellingButton

This function hides the spelling button on the toolbar.

Function Syntax:

void HideSpellingButton ( )

Function Example:

$myDE->HideSpellingButton();

HideStrikethroughButton

This function hides the strikethrough button on the toolbar.

Function Syntax:

void HideStrikethroughButton ( )

Function Example:

$myDE->HideStrikethroughButton();

HideStyleList

This function hides the style list on the toolbar.

Function Syntax:

void HideStyleList ( )

Function Example:

$myDE->HideStyleList();

HideSubScriptButton

This function hides the sub script button on the toolbar.

Function Syntax:

void HideRightSubScriptButton ( )

Function Example:

$myDE->HideSubScriptButton();

HideSuperScriptButton

This function hides the super script button on the toolbar.

Function Syntax:

void HideRightSuperScriptButton ( )

Function Example:

$myDE->HideSuperScriptButton();

HideSymbolButton

This function hides the symbol button on the toolbar.

Function Syntax:

void HideSymbolButton ( )

Function Example:

$myDE->HideSymbolButton();

HideTableButton

This function hides the table button on the toolbar.

Function Syntax:

void HideTableButton ( )

Function Example:

$myDE->HideTableButton();

HideTagBar

This function hides the HTML tag bar from the bottom of the DevEdit control.

Function Syntax:

void HideTagBar ( )

Function Example:

$myDE->HideTagBar();

HideToolbarMode

This function hides the link in the bottom right hand corner of the editor that allows you to switch toolbar modes.

Function Syntax:

void HideToolbarMode ( )

Function Example:

$myDE->HideToolbarMode();

HideUnderlineButton

This function hides the underline button on the toolbar.

Function Syntax:

void HideUnderlineButton ( )

Function Example:

$myDE->HideUnderlineButton();

LoadFromFile

This function can be used to load the contents of a HTML file, which will then automatically become the contents of the DevEdit control. You must call this function before you call the ShowControl function.

Function Syntax:

bool LoadFromFile ( string FilePath, reference ErrorDesc )

Function Example:

$errDesc = "";

// Assumes myDE is a DevEdit control
$myDE->LoadFromFile("mysite.html", $errDesc);
$myDE->SetName("myDevEditControl");

//  The $errDesc variable is passed by reference to the function
if($errDesc != "")
{
echo "An error occured: $errDesc";
}

LoadHTMLFromMySQLQuery

This function can be used to connect to a MySQL database and retrieve the contents of a field, which will then automatically become the contents of the DevEdit control. You must call this function before you call the ShowControl function.

The DatabaseQuery parameter must be a select query. If it returns more than one row/field, then the first field in the first row will become the value of the DevEdit control.

Function Syntax:

bool LoadHTMLFromMySQLQuery ( string DatabaseServer, string DatabaseName, string DatabaseUser, string DatabasePassword, string DatabaseQuery, reference ErrorDesc )

Function Example:

$errDesc = "";
$myDE->SetName("myDevEditControl");

// Assumes $myDE is a DevEdit control
$myDE->LoadHTMLFromMySQLQuery("localhost", "testdatabase", "admin", "password", "select pName from people where pId = 10", $errDesc);

// The $errDesc variable is passed by reference to the function
if($errDesc != "")
{
echo "An error occured: $errDesc";
}

SaveToFile

This function can be used to save the contents of DevEdit to a file. The FilePath variable should be passed relative to your root directory and not as an actual filename, such as /content/mydata.html.

Note: The example code below should be added to the page where you post the DevEdit form to.

Function Syntax:

bool SaveToFile ( string FilePath, reference ErrorDesc )

Function Example:

$errDesc = "";

// Assumes myDE is a DevEdit control
$myDE->SetName("myDevEditControl");
$myDE->SaveToFile("/content/mysite.html", $errDesc)
 
//  The errDesc variable is passed by reference to the function
if($errDesc != "")
echo "An error occured: " . $errDesc;

SetBaseHref

This function is used to specify the basehref path of the HTML being edited.

Function Syntax:

void SetBaseHref ( string Path )

Function Example:

SetBaseHref("http://www.domain.com/path");

SetDevEditPath

This function is used to specify where the main DevEdit folder ("de") resides. This function is NOT called against the DevEdit class. It is called independently. The path that you specify can be relative or absolute. Do not include a trailing forward slash.

Function Syntax:

void SetDevEditPath ( string Path )

Function Examples:

SetDevEditPath("de");
SetDevEditPath("../de");
SetDevEditPath("/foldername/de");

SetDocumentType

This function is used to specify whether a complete HTML document or only a HTML snippet is being edited. The difference here is that a HTML document contains the following tags:


	
		
	
	
	
	

A HTML snippet does not contain those tags.

Function Syntax:

void SetDocumentType ( int DocType )

Set DocType to 0 or DE_DOC_TYPE_SNIPPET to indicate that you are editing a snippet of HTML code.

Set DocType to 1 or DE_DOC_TYPE_HTML_PAGE to indicate that you are editing a complete HTML page.

Function Example:

$myDE->SetDocumentType(DE_DOC_TYPE_SNIPPET);

SetEditImageSavePath

This function sets the path to the folder where DevEdit should save the edited image file. If not set, it will default to the folder where the original file is.

Function Syntax:

void SetEditImageSavePath ( string SavePath )

Function Example:

$myDE->SetEditImageSavePath('/images');

SetFlashPath

This function sets the path to the folder where DevEdit should display Flash files from in the Flash file manager. Note that this path should be relative to your web servers root directory.

Function Syntax:

void SetFlashPath ( string FlashPath )

Function Example:

$myDE->SetFlashPath('/flash_files');

SetFocus

This function sets the focus of the users cursor into the DevEdit editor when DevEdit starts up.

Function Syntax:

void SetFocus ()

Function Example:

$myDE->SetFocus();

SetFontList

This function allows you to change the default list of fonts that are displayed in the font drop down list. Each font name should be separated by a comma. If you do not call this function then the default list of fonts will be displayed.

Function Syntax:

void SetFontList ( string FontList )

Function Example:

$myDE->SetFontList('Arial,Verdana,Tahoma');

SetFontSizeList

This function allows you to change the default list of font sizes that are displayed in the font size drop down list. Each font size should be separated by a comma. If you do not call this function then the default list will be displayed.

Function Syntax:

void SetFontSizeList ( string FontSizeList )

Function Example:

$myDE->SetFontSizeList('2,3,4,5');

SetImageDisplayType

This function determines how images will appear in the image manager.

Function Syntax:

void SetImageDisplayType ( int DisplayType )

If DisplayType is 0 or DE_IMAGE_TYPE_ROW, then images will be displayed in a tabular format without a thumbnail preview.

If DisplayType is 1 or DE_IMAGE_TYPE_THUMBNAIL, then images will be displayed 3-per-line as thumbnails.

The user has the option of selecting what type of display they would like inside the image manager itself and this option will be saved for them the next time they load the image manager.

Function Example:

$myDE->SetImageDisplayType(DE_IMAGE_TYPE_THUMBNAIL);

SetImageUploadSize

This function resizes an upload image to a maximum proportional width or height that has been specified. Eg. User uploads image with 1000x500 dimensions. If a maximum height is set to 200 and a maximum width of 300 is set, then image will be resized to 200x100.

This function requires the PHP GD image library to be installed. If not installed, this function will be ignored.

Function Syntax:

void SetImageUploadSize (mixed Width, mixed Height)

Function Example:

$myDE->SetImageUploadSize(200,200);

SetLanguage

This function allows you to set the language that will be used by the spell checker when it returns suggestions for misspelled words.

Function Syntax:

void SetLanguage ( int Language )

Set Language to 1 or DE_AMERICAN to return spelling suggestions for American English.
Set Language to 2 or DE_BRITISH to return spelling suggestions for British English.
Set Language to 3 or DE_CANADIAN to return spelling suggestions for Canadian English.
Set Language to 4 or DE_FRENCH to return spelling suggestions for French.
Set Language to 5 or DE_SPANISH to return spelling suggestions for Spanish.
Set Language to 6 or DE_GERMAN to return spelling suggestions for German.
Set Language to 7 or DE_ITALIAN to return spelling suggestions for Italian.
Set Language to 8 or DE_PORTUGESE to return spelling suggestions for Portugese.
Set Language to 9 or DE_DUTCH to return spelling suggestions for Dutch.
Set Language to 10 or DE_NORWEGIAN to return spelling suggestions for Norwegian.
Set Language to 11 or DE_SWEDISH to return spelling suggestions for Swedish.
Set Language to 12 or DE_DANISH to return spelling suggestions for Danish.

Function Example:

$myDE->SetLanguage(DE_AMERICAN);

SetLinkPath

This function sets the path to the folder where DevEdit should display files from in the Link file manager. Note that this path should be relative to your web servers root directory.

Function Syntax:

void SetLinkPath ( string LinkPath )

Function Example:

$myDE->SetLinkPath('/files');

SetMaxUploadFilesize

Restricts uploading of files to a maximum file size. This function requires the GD image library to be installed on the server. If the library is not present, this function will be ignored.

Function Syntax:

void SetMaxUploadFileSize(int maxsize);

Function Example:

$myDE->SetMaxUploadFileSize(200);

SetMediaPath

This function sets the path to the folder where DevEdit should display media files from in the media file manager. Note that this path should be relative to your web servers root directory.

Function Syntax:

void SetMediaPath ( string MediaPath )

Function Example:

$myDE->SetMediaPath('/media_files');

SetName

This function assigns a name to your DevEdit control. It must be called before any other function. This name is used to differentiate between multiple DevEdit controls on the same HTML page.

Function Syntax:

void SetName ( string CtrlName )

Function Example:

$myDE->SetName("myDevEditControl");

SetPathType

This function determines how the src attribute of a link/image will be set.

Function Syntax:

void SetPathType ( int PathType )

If PathType is 0 or DE_PATH_TYPE_FULL, then links/images will have the full path specified in their src attribute, such as http://www.mysite.com/test.html.

If PathType is 1 or DE_PATH_TYPE_ABSOLUTE, then links/images will have the absolute path specified in their src attribute, such as /myimage.gif.

Function Example:

$myDE->SetPathType(DE_PATH_TYPE_FULL);

SetSnippetStyleSheet

This function allows you to specify the location of a stylesheet to use when editing code snippets.

Note: You must be in snippet editing mode (i.e. SetDocumentType(DE_DOC_TYPE_SNIPPET) to specify a snippet stylesheet. Due to browser cross-domain security, the stylesheet that you are using must be located on the same domain name as where DevEdit is installed.

Function Syntax:

void SetSnippetStyleSheet ( string StyleSheetURL )

Function Example:

// Assumes $myDE is a DevEdit control
// DevEdit will automatically turn into editing Snippet mode when this function is used

$myDE->SetSnippetStyleSheet("mystyle.css");

SetStyles

This function lets you specify the style attributes applied to the outer most container of the DevEdit container. This is useful if you want to set the position of the DevEdit control if you are using floating DIVS in your source code, etc.

Function Syntax:

void SetStyles ( string StyleValue )

Function Example:

$myDE->SetValue('position:absolute; z-index:1000');

SetTextAreaDimensions

When DevEdit is used in a browser that it isn't compatible with (such as Safari on a Mac), a <textarea> tag will be shown instead of the DevEdit WYSIWYG editing window. The SetTextAreaDimensions function can be used to set the rows and cols attributes of this <textarea> tag.

Function Syntax:

void SetTextAreaDimensions ( int Cols, int Rows )

Function Example:

$myDE->SetTextAreaDimensions(60, 30);

SetValue

This function sets the initial value of the HTML to be displayed in the DevEdit control.

Function Syntax:

void SetValue ( string HTMLValue )

Function Example:

$myDE->SetValue('Hello');

ShowControl

This function outputs all of the necessary HTML and JavaScript to display the DevEdit control as part of a web page.

Function Syntax:

void ShowControl ( mixed Width, mixed Height, string ImagePath )

Width specifies the width of the control when it is displayed.

Height specified the height of the control when it is displayed.

Width and heights can be a percentage (%), in pixels (px) or in points (pt).

ImagePath is the absolute path to a directory from where all images will be displayed in the image manager.

Function Example:

$myDE->ShowControl('90%', '200pt', '/myImages');