Windows programming question

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

Hi all,

I am not understanding how the order of events really works.  I'm using 
Judith's IDE, and Win32lib--both the newest versions.

Here is a procedure for a button:
procedure btnOK_onClick
    sequence themsg
    themsg = "Now about to run other procedure.\n"
    setText(InfoWindow,themsg)
    sleep(10)
    process_requirement({InfoWindow,DLProgress})
end procedure

But even with the sleep(10) in there (which I just added for 
troubleshooting this), the text in my InfoWindow (a ML Text box) doesn't 
get updated until AFTER the other procedure has completed.

I am guessing there is some way to force a refresh of my InfoWindow before 
continuing the procedure.  How?

Similarly, the procedure that gets called downloads a file, then runs it 
with a "system" call.  It shows the download progress while downloading the 
file, in a label box.  What is displayed are bytes downloaded so far, and 
the percent of the total, like this:
"12849 bytes (5%)"

But again, the updating of the label box lags far behind.  The program 
actually gets downloaded, runs, and only after I quit it does the progress 
indicator get refreshed to say 100%.  In my initial testing of the download 
procedure, I just wrote everything to a command window with "puts" 
commands, and did not have this problem.

Could someone fill me in on refreshing widget/window contents?

Thanks,
Ted

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

Search



Quick Links

User menu

Not signed in.

Misc Menu