setImageViewMode()

Description

Sets how the images are displayed in an image viewer. The default thumbnail mode is 1 by 1.

Syntax

ImageViewerObject.ui.setImageViewMode(column, row);

Parameters

<short> column: specifies the number of columns.
<short> row: specifies the number of rows.

Return value

bool

Remarks

The default thumbnail mode is 1 by 1.

When the view mode is set to -1 by -1, the image viewer only shows the current image. No scroll bar is provided to navigate to other images.

When the view mode is set to m (m>0) by n (n>0), a vertical scroll bar will be provided to navigate to other images.

When the view mode is set to n (n>=1) by -1, a horizontal scroll bar will be provided to navigate to other images.

Example

             var imageviewer = DCSObject.getImageViewer ("ImageViewerContainer");  // Get a specified image viewer
             imageviewer.ui.setImageViewMode (3, 3); // Set the view mode to 3 by 3
       

See also

.ui.setMargin()
.ui.setMouseShape()

Is this page helpful?

Leave a Reply

Your email address will not be published.