ImageEn, unit iexTransitions

TIETransitionParams.WordTransWord

TIETransitionParams.WordTransWord


Declaration

property WordTransWord: string;


Description

Specify the word that is displayed during a "Word" transition.
It can be a single character, e.g. a letter or a symbol from Wingdings, or a whole word.

The following "Word" transition properties can be customized:
TIETransitionParams.WordTransWord
WordTransFontName
WordTransFontStyle
WordTransQuality

These apply to all "Word" transition effects:

iettRandomBoxesWithWord
iettRandomWord *
iettExpandingWord *
iettWordWipeOut *
iettWordWipeIn *
iettWordWipeInAndOut *
iettWordHalfSweep
iettWordFullSweep
iettWordFullExpandingSweep

Note: Effects with an asterisk will cycle through each specified letter, displaying one at a time. If you wish to display a whole (only a short one is recommended) then enclose it in quotations, e.g. "HI!"
Other effects will always display the full word.

Default: 'A'


Examples

// Set properties for Word transition
ImageEnView1.TransitionParams.WordTransWord      := 'BLAM';
ImageEnView1.TransitionParams.WordTransFontName  := 'Arial';
ImageEnView1.TransitionParams.WordTransFontStyle := [fsBold];

// Prepare ImageEnView1 for a transition (e.g. so loading the image will not immediately update the display)
ImageEnView1.PrepareTransition();

// Load the next image
ImageEnView1.IO.LoadFromFile( GetNextImage() );

// Run the transition
ImageEnView1.RunTransition( iettRandomBoxesWithWord, 1000 );




// Display snowflakes in random positions
ImageEnView1.TransitionParams.WordTransWord      := 'T';  // Snowflake in the Wingdings font
ImageEnView1.TransitionParams.WordTransFontName  := 'Wingdings';
ImageEnView1.TransitionParams.WordTransFontStyle := [fsBold];

ImageEnView1.PrepareTransition();
ImageEnView1.IO.LoadFromFile( GetNextImage() );
ImageEnView1.RunTransition(iettRandomWord, 2000);


// Transition, showing each letter of the word "ImageEn" in turn
ImageEnView1.TransitionParams.Word := 'ImageEn';
ImageEnView1.PrepareTransition();
ImageEnView1.IO.LoadFromFile( GetNextImage() );
ImageEnView1.RunTransition(iettWordWipeInAndOut, 5000);


// Transition wiping the screen with the word "GO!"
ImageEnView1.TransitionParams.Word := '"GO!"'; // Enclose in quotes to avoid cyling. Small words are best
ImageEnView1.PrepareTransition();
ImageEnView1.IO.LoadFromFile(GetNextImage() );
ImageEnView1.RunTransition(iettWordWipeInAndOut, 5000);