ChangeDisplayMode()

Syntax:

ChangeDisplayMode( DisplayIndex, DepthIndex )

Return:

true if the display mode is changed by this function and false if it is not.

Parameters:

DisplayIndex – the index position of the new display mode you want to set. DisplayIndex is an index containing possible screen resolutions (i.e. the display mode in which the user’s screen can be set). The index appears in the following order, 0 = 640x480; 1 = 800x600; 2 = 1024x768, and so on. The index is a zero-based index. This parameter is optional. The default value is –1, which means the display mode is set to the default for the machine.

DepthIndex – the colour depth you want to set for the end-user’s computer. DepthIndex can be any of the following numbers: 15, 16, 24 or 36 (e.g. 16bpp). This parameter is optional. The default value is -1, which means the colour depth is set to the default for the machine.

Remarks:

This function allows you to change the display mode (i.e. screen resolution) and colour depth of the end-user’s machine temporarily while the publication is run. At any time you can re-use the function to return the screen resolution or colour depth to their default value.

image\Script_Button.jpgExamples