Здравствуйте, 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
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,
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
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
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
>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
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
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
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
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,
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
Сергей Черниенко 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
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
Сергей Черниенко 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()
>
> 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
Здравствуйте 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
> Здравствуйте, 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
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
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,
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
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
21 matches
Mail list logo