« Return to Thread: Change values out of a thread

Re: Change values out of a thread

by Kind, Uwe (AGIS) :: Rate this Message:

| View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi maleadt,

 

have a look at the Win32::GUI::ThreadUtils package. It comes with a good example for changing the value of a progress bar. Setting the content of a textbox is quite comparable.
 
Bye,
Uwe
 

Von: perl-win32-gui-users-bounces@... [mailto:perl-win32-gui-users-bounces@...] Im Auftrag von MALEADt
Gesendet: Mittwoch, 27. Dezember 2006 21:01
An: perl-win32-gui-users@...
Betreff: [perl-win32-gui-users] Change values out of a thread

Hi,

 

Maybe a stupid question, but how do I change a value of a textbox out of a thread?

Textbox is created in the main program. On a button click, a thread is launched and detached, but that thread can’t change the value of that textbox.. always getting: “thread failed to start: can’t call method “change” on unblessed reference at …”.

 

Thanks in advance,

maleadt


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@...
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/

 « Return to Thread: Change values out of a thread