[perl-win32-gui-users] richedit setting background-color of some text

2003-07-20 Thread Richard Bennett
(sorry if this message comes through twice) Hi, I am parsing a textfile into a richedit control, and want to highlight certain words. I can do this by changing the fontcolor like this: if(/wordtohighlight/) { $Textbox->SetCharFormat(-color => "#55"); } while parsing the file, but I can'

RE: [perl-win32-gui-users] Click subroutine doesn't get control when script is executing

2003-07-20 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 At 03:58 AM 7/20/2003, you wrote: >In the typiucal windows way (which we can do in PERL), is to start a >TIMER. >The classic to this approach is a "setup" pogram with the prograss bar. > >When you start your script, you will need to set a WM_TIMER for

[perl-win32-gui-users] AddTimer problem

2003-07-20 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It seems that even the simplest things get complicated. I created a timer thus: my $timer1=$window->AddTimer('T1',250); How much simpler can one get then that? Anyway, this produces an error at every timeout: "Use of uninitialized value in subrout

Re: [perl-win32-gui-users] AddTimer problem

2003-07-20 Thread Dennis Putnam
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 At 09:58 PM 7/20/2003, you wrote: >A bald guess, but I've gotten this particular error several times when I >wrote an event handler that didn't return a value. It's worth a look... Thanks for the suggestion. It was worth a look but alas did not help

RE: [perl-win32-gui-users] Click subroutine doesn't get control when script is executing

2003-07-20 Thread Stuart Arnold
In the typiucal windows way (which we can do in PERL), is to start a TIMER. The classic to this approach is a "setup" pogram with the prograss bar. When you start your script, you will need to set a WM_TIMER for some time slice, eg, every 2 seconds. If you're building your own GUI, then before th

[perl-win32-gui-users] richedit setting background-color of some text

2003-07-20 Thread Richard Bennett
Hi, I am parsing a textfile into a richedit control, and want to highlight certain words. I can do this by changing the fontcolor like this: if(/wordtohighlight/) { $Textbox->SetCharFormat(-color => "#55"); } while parsing the file, but I can't find how to change the background color for