WD Animation when opening and closing the windows
nValue is int
i is int
sStringSelectedElements is string
// Default animation
IF CBOX_OPENING[1]
nValue = waDefault
END
// Random animation
IF CBOX_OPENING[2] THEN
nValue = waRandom
END
// Check all the check boxes to find out the ones that were chosen.
IF CBOX_OPENING[3] = True THEN nValue += waCircularFadeIn
IF CBOX_OPENING[4] = True THEN nValue += waTopFilling
IF CBOX_OPENING[5] = True THEN nValue += waInterleave
IF CBOX_OPENING[6] = True THEN nValue += waFountain
IF CBOX_OPENING[7] = True THEN nValue += waBook
IF CBOX_OPENING[8] = True THEN nValue += waMorphCylinder
IF CBOX_OPENING[9] = True THEN nValue += waMorphSphere
IF CBOX_OPENING[10] = True THEN nValue += waMorphWave
IF CBOX_OPENING[11] = True THEN nValue += waZigZag
IF CBOX_OPENING[12] = True THEN nValue += waRotationMulti
IF CBOX_OPENING[13] = True THEN nValue += waRotationX
IF CBOX_OPENING[14] = True THEN nValue += waRotationY
IF CBOX_OPENING[15] = True THEN nValue += waTransparent1
IF CBOX_OPENING[16] = True THEN nValue += waTransparent2
IF CBOX_OPENING[17] = True THEN nValue += waTransparentFixed
IF CBOX_OPENING[18] = True THEN nValue += waZoom
// WinAnimationNext is used to define the animation that will be used during the next opening or closing
// of window. You can also use WinAnimationOpening or WinAnimationClosing.
//
WinAnimationNext(nValue,TXT_DURATION*100)
// Saves the selected elements in a string in order to redisplay them later
nNbCheckBoxes is int = CBOX_OPENING..Occurrence
FOR i = 1 TO nNbCheckBoxes
IF CBOX_OPENING[i] = True THEN
sStringSelectedElements += i + ";"
END
END
OpenSister(MyWindow..Name,sStringSelectedElements)
Close()