II. Server Side Services

II-2. Window Services

WS001: orderFront

void orderFront();

This method brings the SDM main window to the front of all other applications

WS002: setCurrentViewByIndex

void setCurrentViewByIndex(int index)

This method selects the subwindow of an MDI app as the current view, and brings it to the front of all other views

WS003: viewCount

int viewCount()

This method returns the number of views (the number of maps currently open) in an MDI app.

WS004: maximizeMainWnd

void maximizeMainWnd()

This method expands the SDM window to its maximum size.

WS005: moveMainWnd

void moveMainWnd(short x, short y, short nwidth, short nheight)

This method moves the SDM window to an x,y pixel location and to a size of n-width, n-height in pixels.

WS006: minimizeMainWnd

void minimizeMainWnd()

This method minimizes or iconizes the SDM window.

WS007: restoreMainWnd

void restoreMainWnd()

This method restores the SDM window to its normal size.

WS008: minimizeOverviewWnd

void minimizeOverviewWnd()

This method minimizes or iconizes the SDM overview window. .

WS009: restoreOverviewWnd

void restoreOverviewWnd()

This method restores the SDM overview window to its normal size.

WS010: openNewViewForFile

void openNewViewForFile( string path )

where "path" is the full path to the .des file that is to be opened.

In SDI mode, this method replaces the currently displayed map with the one given by "Path". In MDI mode, a new child window (view) is opened and loaded with the map. Other views are not affected.

WS011: openNewViewForFile

void copyToClipboard()

This method copies the area displayed in the view to a device independent bitmap (DIB) on the system clipboard. An OLE application such as Microsoft Word could then be opened and the bitmap can be placed in the document by executing a paste function.

 

II-3. Server Side Services: View Services >>>>