TBackgroundWorker visual results

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

TBackgroundWorker visual results

Postby cozturk » December 6th, 2008, 7:04 pm

I heard BackgroundWorker but I didn't check what is it.
( I thought this component is image related component :D )


A few minute ago , I see this is excellent threading component ! . Thank you Kambiz ! =D>

And I have small question:
For demo application, Form Borderstyle changed to bsSingle.
While pressing maximize icon, BackgroundWorker( and its thread) works in background I'm sure. I have checked by Process Explorer . Thread continued, and finished normally.

Unfortunatelly thread results cannot be shown while holding maximize icon.
I want to use this component for hardware related applications. Any brute force methot available to show thread results ?
maximize.jpg
maximize.jpg (6.78 KiB) Viewed 878 times
cozturk
Moderator
Moderator
 
Posts: 63
Joined: June 30th, 2005, 5:39 am
Location: Istanbul - Turkiye

Re: TBackgroundWorker visual results

Postby Kambiz » December 6th, 2008, 9:25 pm

In Windows, any reaction with a window must be done by the thread who has created the window. Therefore in Delphi only the main VCL thread can update the visuals.

As the result, when the main VCL thread is busy with something like resizing the form, it does not update the window. As I know, there is no workaround for this limitation.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 4 guests

cron