[perl-win32-gui-users] working/not working timer

2005-08-03 Thread Сергей Черниенко
Здравствуйте, perl-win32-gui-users, Yesterday I've posted about not working timer. I've got a lot of useful answers. Script was use strict; use Win32::GUI; my $mw = Win32::GUI::Window->new(-name => 'mw', -size => [400, 400], -po

RE: [win32gui] [perl-win32-gui-users] The window -backgroud option

2005-08-03 Thread Lloyd, Steve
Rob, Is there a planned date for the next release? Also, many of the common events do not work on the main Window, right? Like MouseOver and MouseOut... use strict; use Win32::GUI; $|=1; my $main = Win32::GUI::Window->new( -name => 'Main', -text => 'Perl', -width => 200,

Re: [win32gui] [perl-win32-gui-users] The window -backgroud option

2005-08-03 Thread Robert May
I just put a fix for this into CVS. Rob. Jeremy White wrote: Can anyone remember if this has ever worked? Looking at the options logic within Win32-GUI you should be able to do: my $win = new Win32::GUI::Window( -name=> "WinMain", -pos => [100, 100], -size => [10

Re: [perl-win32-gui-users] Readonly TextEdit redraw problem

2005-08-03 Thread Robert May
I've just put a fix for this into CVS. Regards, Rob. Robert May wrote: OK, I think that I've narrowed it down. A readonly edit control sends a WM_CTLCOLORSTATIC message before re-drawing, rather than a WM_CTLCOLOREDIT message. In the former case the code sets the background mode to TRANSPA

Re: [win32gui] RE: [perl-win32-gui-users] Control for Displaying the contents of a text file?

2005-08-03 Thread Robert May
Mark Sutfin wrote: I installed 1.02 (5.8.7). I still cannot locate the Text() method in the Win32::GUI:Textfield entry. Could it be that I'm so new to this, I didn't understand that it's listed on the "Common Methods" entries? You're absolutely correct. Is there a beginners win32::gui list

RE: [perl-win32-gui-users] Control for Displaying the contents of a text file?

2005-08-03 Thread Mark Sutfin
>Robert wrote > Then insert the $content in the Win32::GUI control you want. >For a Textfield that would be >$textfield->Text($content); >undef $content; # unless you really want the text stored twice Thank you... I installed 1.02 (5.8.7). I still cannot locate the Text() method in the W

Re: [win32gui] RE: [perl-win32-gui-users] Control for Displaying the contents of a text file?

2005-08-03 Thread Robert May
Mark Sutfin wrote: That's what I was asking..."but did not see a method to assign the content to the control". Here's what I see available thru the docs.. * Constructor o new Win32::GUI::Textfield(PARENT, %OPTIONS) * Methods o LineFromChar(INDEX) o MaxLen

RE: [perl-win32-gui-users] Control for Displaying the contents of a text file?

2005-08-03 Thread Mark Sutfin
Octavian Rasnita wrote Teddy >You need to read the content of that file with: You're correct, and I didn't explain that I had already populated a local var with the content of the text file IO::File->new. Teddy >Then insert the $content in the Win32::GUI control you want. That's what I was ask

Re: [perl-win32-gui-users] Control for Displaying the contents of a text file?

2005-08-03 Thread Robert May
Octavian Rasnita wrote: my $content; { local $/; open(FILE, $file_path); open(FILE, $file_path) or die "Failed to open $file_path: $!"; *always* check error conditions $content = ; close FILE; } Then insert the $content in the Win32::GUI control you want. For a Textfield that would be $text

Re: [perl-win32-gui-users] Control for Displaying the contents of a text file?

2005-08-03 Thread Octavian Rasnita
You need to read the content of that file with: my $content; { local $/; open(FILE, $file_path); $content = ; close FILE; } Then insert the $content in the Win32::GUI control you want. Teddy - Original Message - From: "Mark Sutfin" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 03,

[perl-win32-gui-users] Control for Displaying the contents of a text file?

2005-08-03 Thread Mark Sutfin
Hello, Newbie has just started experimenting with Win32::GUI. Great stuff. I see that GetOpenFileName() returns the file I selected from the dialog box. Which control(s) might easily display the contents of this text file? I was guessing textfield...? But did not see a method to assign the content

Re:[perl-win32-gui-users] timer do not work

2005-08-03 Thread Robert May
Сергей Черниенко wrote: But! Timer do not work as before though I declared $mw as our (not my) (Steve Lloyd advice) and corrected event handler. It's like that handler not executed at all. I have Win32-GUI 1.02, perl 5.8.6 and Windows98SE It works fine here using lexical variables, Win98SE, pe

Re: [win32gui] Re[2]: [SPAM] - [perl-win32-gui-users] timer do not work - Email found in subject

2005-08-03 Thread Robert May
Apologies for the duplication - I should read all my mail before replying. Oh why can't mail user agents thread properly. Rob. Robert May wrote: Сергей Черниенко wrote: LS> Change LS> my $mw = Win32::GUI ... LS> To LS> our $mw = Win32::GUI ... LS> This will allow the timer subroutine to see

Re: [win32gui] Re[2]: [SPAM] - [perl-win32-gui-users] timer do not work - Email found in subject

2005-08-03 Thread Robert May
Сергей Черниенко wrote: LS> Change LS> my $mw = Win32::GUI ... LS> To LS> our $mw = Win32::GUI ... LS> This will allow the timer subroutine to see the $mw object. That'll make no difference. The subroutine can already see the lexically scoped variable. sub CheckDir_Timer { $mw->>Hide()

RE: Re[4]: [perl-win32-gui-users] timer do not work

2005-08-03 Thread Peter Eisengrein
> > You absolutely right. It was stupid mistake. But! Timer do not work as > before though I declared $mw as our (not my) (Steve Lloyd advice) and > corrected event handler. It's like that handler not executed at all. > I have Win32-GUI 1.02, perl 5.8.6 and Windows98SE > I don't think my or our

Re[4]: [perl-win32-gui-users] timer do not work

2005-08-03 Thread Сергей Черниенко
Здравствуйте Peter, Wednesday, August 03, 2005, 7:10:55 PM, Вы написали: >> Здравствуйте, perl-win32-gui-users, >> I wrote simple script with timer. It's supposed that timer >> hides/shows main window but window is always visible. What's the >> matter? PE> Your if() logic in CheckDir_Tim

RE: [perl-win32-gui-users] timer do not work

2005-08-03 Thread Peter Eisengrein
> Здравствуйте, perl-win32-gui-users, > I wrote simple script with timer. It's supposed that timer > hides/shows main window but window is always visible. What's the > matter? Your if() logic in CheckDir_Timer sub. If you look closely, you will see that the window gets hidden and then shown

Re[2]: [SPAM] - [perl-win32-gui-users] timer do not work - Email found in subject

2005-08-03 Thread Сергей Черниенко
Hello Steve, Wednesday, August 03, 2005, 6:36:10 PM, You wrote: LS> Change LS> my $mw = Win32::GUI ... LS> To LS> our $mw = Win32::GUI ... LS> This will allow the timer subroutine to see the $mw object. No luck. $mw visible all the time as before. And could You explain why such change w

RE: [SPAM] - [perl-win32-gui-users] timer do not work - Email found in subject

2005-08-03 Thread Lloyd, Steve
Change my $mw = Win32::GUI ... To our $mw = Win32::GUI ... This will allow the timer subroutine to see the $mw object. Steve Lloyd If the world didn't suck, we would probably all just fall off. http://www.basgetti.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] O

[perl-win32-gui-users] timer do not work

2005-08-03 Thread Сергей Черниенко
Здравствуйте, perl-win32-gui-users, I wrote simple script with timer. It's supposed that timer hides/shows main window but window is always visible. What's the matter? use strict; use Win32::GUI; my $mw = Win32::GUI::Window->new(-size => [400, 400], -pos => [200, 200], -title => "FormsTest

[perl-win32-gui-users] Daniel GIRAUD est absent

2005-08-03 Thread dgiraud
Je serai absent(e) du 30/07/2005 au 01/09/2005. Mon remplacement est assuré par Stéphane Reytan [EMAIL PROTECTED] 01 41 37 70 10 En cas d'urgence appeler le service informatique 01 41 37 73 13 ([EMAIL PROTECTED]) Pour les problèmes réseaux contacter JP Gluntz ou envoyer un message à : [EMAIL PRO