Re: wxEuphoria: Progress Dialog for Non-Timer-Related Activity

new topic     » goto parent     » topic index » view thread      » older message » newer message
euphoric said...

I guess I was doing some things right, but ultimately, setting an auto-close dialog of 100 to 100 makes it close, and it doesn't reopen... grin

I was doing several things that I wanted progress for, using the same dialog, but setting it to 100 for the first one (with a "Complete!" message), was closing it permanently... apparently.

Now, I only go to 99. Looks dumb, but it works.

I'm guessing I could remove the AUTO_HIDE and use end_modal() myself when I'm done with the dialog. I'm going to try it!

Not confident that will work. Waiting...

You don't use wxProgressDialog like a normal control. I guess you could call it ephemeral. Make it, use it, destroy it. Rinse and repeat.

I guess what I should have done was wrap this in a series of functions instead of using the create() function...

atom dialog = progress_dialog( title, message, max_value, parent, ... ) 
 
for value = 1 to max_value do 
    progress_update( dialog, value, message ) 
end for 
 
progress_destroy( dialog ) 

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu