Setting the Origin for Exploding or Rolling

When the window is put on the screen, exploding and rolling start at the window's explosion origin. When the window is removed by imploding or rolling, the window rolls back or implodes back into the explosion origin. By default, the center point is the explosion origin.

Designer: You can specify the explosion origin with the Designer. You can also change it in your code, at any point after you have read the window from the Designer library.

Code: To change this, use the set window explode origin function, sw_exporg():

void sw_exporg(org, wnp);
 
short org;
/* Explosion/rolling origin
*/
WINDOWPTR wnp;
/* Window to assign functions to
*/

The explode/roll origin can be any of the following:

EXPCTR Center point going up, down, right, and left
EXPBOT Bottom horizontal line going up
EXPTOP Top horizontal line going down
EXPCTRHORZ Middle horizontal line going up and down
EXPLFT Left vertical line going right
EXPBOTLFT Bottom left corner going up and right
EXPTOPLFT Top left corner going down and right
EXPLFTCTR Left midpoint going up, down, and right
EXPRT Right vertical line going left
EXPBOTRT Bottom right corner going up and left
EXPTOPRT Top right corner going down and left
EXPRTCTR Right midpoint going up, down, and left
EXPCTRVERT Middle vertical line going left and right
EXPBOTCTR Bottom midpoint going left, right, and up
EXPTOPCTR Top midpoint going left, right, and down
OFF No explosion

Setting How Many Steps It Takes to Explode or Roll a Window

Exploding and rolling is accomplished by putting the window up or down in progressively larger or smaller states. The number of steps it takes to explode or roll a window is determined by the window set step quantity, an environment setting. The number is dependent on the operating system.

Designer: This option must be changed in your code.

Code: To change the default, use the set number of window set steps function, se_wnsetstepq():

If the number of window set steps is set to zero or one, there is only a slight delay before the entire window is displayed. A higher number of window set steps produces smoother looking exploding/rolling at the expense of more time.

The time that it takes to explode/implode or unroll/roll a window depends on the system and communications speed.


Home Contents Previous Next