I have a Dialog, when I press a button the function execute a while cycle and I show another dialog, the code is:
Code: Select all
void TMK_SelNom::OnButtonIniziaClick( wxCommandEvent& event )
{
TMK_Attesa* Attesa = new TMK_Attesa(NULL, ID_DIALOG_ATTESA, _("Attendere. Elaborazione in corso!"));
Attesa->Show(true);
while( !l_err) {
wxTheApp->Yield();
if( g_sosp)
break;
l_totali++;
if( (l_totali % 10) == 0) {
sprintf( et.et_mser, "Analizzati %ld nominativi", l_totali);
m_attesa->SetLabel( et.et_mser);
}
}
}
Thanks.