Table of Contents

Class messagesdictionary

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

contains all the prompt messages used by control, in order to be translated in other languages

It is accessible by MessagesDictionary

public class messagesdictionary
Inheritance
messagesdictionary
Inherited Members

Examples

    var vdcanvas;// keep the vdcanvas control global for quick access inside the functions since it is the only one in the this page
    function vdrawInitPageLoad() {//Intiallize theweb control inside this function.It must be called inside onload event of this page
        vdmanager.AttachCanvas("canvas");//create a new web control andattch it to the canvas elemement
        vdcanvas = vdmanager.vdrawObject();//return a refence to the attached web control
        vdcanvas.vdAfterOpenDocument = _vdAfterOpenDocument;//defines the function that will be fire when a web control document loaded.
        vdcanvas.vdPrompt = _onprompt;//defines the function that will be fire when a vdcanvas.Prompt is called in order to print the message on this page
        vdcanvas.vdError = _vdError;//defines the function that will be fire when an error ocured in order to print the message on this page
    }

    function printInfo(text) {//print messages in the 'info' element of this page
        document.getElementById("info").innerHTML = ":" + text; 
    }
    function _vdError(sender, ErrCategoryId, statusId, info) {
        printInfo("Error status code = " + statusId.toString() + ". " + (info ? info : ""));
    }
    function _onprompt(sender, msg) {
        printInfo(msg);
    }

    function _vdAfterOpenDocument() {//fire when a web control document loaded.
        vdcanvas.Prompt("Document opened successfully");
        //change messages to your local language
        vdcanvas.MessagesDictionary.SPECIFY_START_POINT = "My local Sepecify start point";
        vdcanvas.MessagesDictionary.SPECIFY_NEXT_POINT = "My local Sepecify next point";
        vdcanvas.scriptCommand.line();//begin command user line that prompts user.
    }
    function test() {
        //select a new document for the web control.
        //NOTE: Always a document must be selected to the web control.Else the web control is unusable
        vdcanvas.SelectDocument("vddocument.vds");
    }



Test
:

Properties

PROGRESS_DOWNLOAD

Returns the 'Download drawing...' message

PROGRESS_READ_DRAWING

Returns the 'Read drawing...' message

SELECT_ENTITIES

Returns the 'Select entities' message

SPECIFY_CENTER_POINT

Returns the 'Specify center point' message

SPECIFY_END_POINT

Returns the 'Specify end point' message

SPECIFY_FIRST_CORNER

Returns the 'Specify first corner' message

SPECIFY_INSERTION_POINT

Returns the 'Specify insertion point' message

SPECIFY_NEXT_POINT

Returns the 'Specify next point' message

SPECIFY_OTHER_CORNER

Returns the 'Specify other corner' message

SPECIFY_RADIUS

Returns the 'Specify radius' message

SPECIFY_REFERENCE_POINT

Returns the 'Specify reference point' message

SPECIFY_ROTATION

Returns the 'Specify rotation' message

SPECIFY_SCALE

Returns the 'Specify scale' message

SPECIFY_SECOND_POINT

Returns the 'Specify second point' message

SPECIFY_START_POINT

Returns the 'Specify start point' message