Here's a very simple solution that I have used (I use CodeWarrior v7.x 
thus far):

In my resource header:
#define PleaseWaitLabel                 5011    //(Left Origin = 36, Top Origin = 
54, Usable = 0, Font = Standard)


The PleaseWaitLabel has the following text:
"Please Wait....

... I'm digesting this data...."

(NOTE that the label is !usable and the chart is usable, initally, not 
that it matters much, since I toggle the usability of these objects - 
see below:)

In my code I do the following:

        FrmHideObject( frmP, FrmGetObjectIndex( frmP, LongCalcTable));          // 
hide the table
        FrmShowObject( frmP, FrmGetObjectIndex( frmP, PleaseWaitLabel));        // 
show the wait message

        for( row = 0; row < rowsInTable; row++) {
                ChartGetRowData( row);  // V. heavy calculations
        }
        
        FrmHideObject( frmP, FrmGetObjectIndex( frmP, PleaseWaitLabel));        // 
hide the wait message
        FrmShowObject( frmP, FrmGetObjectIndex( frmP, LongCalcTable));          // 
show the table


R

ana erdozain wrote:

> hi:
> you can use a progress dialog!
> try to do that:
> 
> to show the dialog 
> 
> #if SDK_VERSION < 35
>   pProgress = ( ProgressPtr ) PrgStartDialogV10(
> cTitle, cbProgress );
> #else
>   pProgress = ( ProgressPtr ) PrgStartDialogV31(
> cTitle, cbProgress );
> #endif
>   pProgress->cancel = !bShowCancel;
>   PrgUpdateDialog( pProgress, 0, 0, cMessage, true );
>   
> to update the dialog:
>                 
> PrgUpdateDialog( progressP, err, 0, message, true );
> 
> to cancel the dialog do that:
> 
> PrgStopDialog( progressP, false );
> 
> --- Sylvain Fonteneau <[EMAIL PROTECTED]>
> wrote:
> 
>>Hello there,
>>
>>My program perform a lengthy operation and I would
>>want to display a "Please wait..." message box
>>without
>>any buttons. This message would be deleted at the
>>end
>>of the operation.
>>
>>Can anyone help me ?
>>_____________________
>>Sylvain Fonteneau
>>
>>
>>
> ___________________________________________________________
> 
>>Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et
>>en fran�ais !
>>Yahoo! Mail : http://fr.mail.yahoo.com
>>
>>-- 
>>For information on using the Palm Developer Forums,
>>or to unsubscribe, please see
>>
> http://www.palmos.com/dev/support/forums/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
> 
> 
> 




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to