Communicator UI: 5.2 FoamProgressDialog: Setting Up the Template

Up: GEOS SDK TechDocs | Up | Prev: 5.1 FoamProgressDialog Instance Data | Next: 5.3 Using a FoamProgressDialog

A FoamProgressDialogClass object (and its children) should be contained within its own resource. The resource should remain unattached to the application tree. The routine PutUpDialogViaUIThread() will take care of copying and attaching the group of objects.

To set up your template, perform the following steps:

Code Display 2-12 FoamProgressDialog Template

@start FoamProgressDialogTemplate, notDetachable;
@chunk TCHAR DescriptionText[] = "While, we're waiting a series of dots will appear below."
@chunk TCHAR StatusText[] = "Here are the dots: ";
@object FoamProgressDialogClass ProgressSample = {
    FPDI_descriptionText = @DescriptionText;
    FPDI_statusText = @StatusText;
    GII_attrs = (@default | GIA_SYS_MODAL) & ~GIA_MODAL;
    GI_states = (@default) & ~GS_USABLE;
    HINT_DRAW_IN_BOX;
}
@end FoamProgressDialogTemplate;

Up: GEOS SDK TechDocs | Up | Prev: 5.1 FoamProgressDialog Instance Data | Next: 5.3 Using a FoamProgressDialog