New topic: 

Processor intensive: fails to update screen

<http://forums.realsoftware.com/viewtopic.php?t=31748>

       Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic         Author  
Message       jefftullin           Post subject: Processor intensive: fails to 
update screenPosted: Mon Dec 28, 2009 6:00 am                        
Joined: Wed Nov 15, 2006 3:50 pm
Posts: 1147              I'm tearing my hair out over keeping the screen 
painted during intensive work.
On a print preview screen, my users can amend certain settings, which requires 
a complete redraw.
Where the results run to many pages, this can take several seconds to complete.
During this time, the screen becomes unresponsive.

I tried adding a sprinkling of app.doevents , but
a) This didn't help
b) It caused re-entrant code and crashes, so had to come out.

I have read that window.updatenow is supposed to cause the screen elements to 
update themselves.
Well, (in the spirit of panto season here in the UK:) 'Oh no it doesnt!'

And progressbar set to max = 0 or a progresswheel , both stop dead while the 
real work is happening, then 'helpfully' start spinning when things are 
finished.

Nowhere in the redraw code do I have any pragma disablebackgroundtasks, so why 
on earth don't these visual screen indicators of background activity do what 
they are supposed to do when I'm doing lots of offscreen painting?

(The actual painting code is an x,y loop which does a lot of maths, uses 
memoryblocks, and a lot of .drawpicture and .drawline  type code.)   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]     
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

rbforumnotifier@monkeybreadsoftware.de

Reply via email to