Communicator UI: 4.1 FlashingNoteClass: FlashingNote Instance Data

Up: GEOS SDK TechDocs | Up | Prev: 4 FlashingNoteClass | Next: 4.2 Setting Up the Template

FlashingNoteClass only contains one piece of instance data, but it also changes the defaults for its superclass, GenInteractionClass .

Code Display 2-9 FlashingNoteClass Instance Data

#define FLASHING_NOTE_DEFAULT_DURATION						(3*60) /* 3 seconds */
#define FLASHING_NOTE_DEFAULT_MINIMUM_DURATION						(1*60) /* 1 second */
@instance 	word		FNI_duration;
@default GII_attrs =				GIA_NOT_USER_INITIATABLE | GIA_SYS_MODAL);
@default GII_visibility =				GIV_DIALOG;
@default GII_type = 				GIT_MULTIPLE_RESPONSE;
@default FNI_duration = 				FLASHING_NOTE_DEFAULT_DURATION;
@vardata word		HINT_FLASHING_NOTE_DESTROY_SELF_AFTER_DISMISS;
@vardata word		ATTR_FLASHING_NOTE_MINIMUM_DURATION;

FNI _duration stores the maximum duration (in ticks -- 1/60ths of a second) for the dialog to remain on-screen. Do not set this to zero; doing so will make the dialog box "permanent" and incapable of dismissal.


Up: GEOS SDK TechDocs | Up | Prev: 4 FlashingNoteClass | Next: 4.2 Setting Up the Template