GEOS SDK TechDocs
|
|
4 FlashingNoteClass
|
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.
GEOS SDK TechDocs
|
|
4 FlashingNoteClass
|
4.2 Setting Up the Template