[perl-win32-gui-users] textfield looking like html/css input

2007-04-25 Thread Waldemar Biernacki

Hi!

I have already asked about the problem earlier but no one could answered 
me.

I am doing it again reformulating the question.
The answer (positive or negative) is very important for me.

I have two input fields (in html/css dialect):

1. 
2. 

The first one is a normal textfield in Win32::GUI. I would be very, very 
pleased I someone could give me a way how to get textfield which looks 
like the second input. Maybe it is outside the possibilities of MS 
Win32::GUI library. Such information is also very vary precious.


Anyway! I would be happy getting any help!







Re: [perl-win32-gui-users] textfield looking like html/css input

2007-04-25 Thread Robert May

Waldemar Biernacki wrote:

I have two input fields (in html/css dialect):

1. 
2. 

The first one is a normal textfield in Win32::GUI. I would be very, very 
pleased I someone could give me a way how to get textfield which looks 
like the second input. Maybe it is outside the possibilities of MS 
Win32::GUI library. Such information is also very vary precious.


Remove the WS_EX_CLIENTEDGE extended style:

#!perl -w
use strict;
use warnings;

use Win32::GUI qw(CW_USEDEFAULT WS_EX_CLIENTEDGE);

my $mw = Win32::GUI::Window->new(
-left => CW_USEDEFAULT,
-size => [400,300],
);

$mw->AddTextfield(
-pos => [10,10],
-size => [100,20],
);

$mw->AddTextfield(
-pos => [10,35],
-size => [100,18],
-remexstyle => WS_EX_CLIENTEDGE,
);

$mw->Show();
Win32::GUI::Dialog();
$mw->Hide();
exit(0);
__END__

Making the border 2 pixels wide and red (as per your html/css) is (much) 
harder.


Regards,
Rob.



Re: [perl-win32-gui-users] textfield looking like html/css input

2007-04-25 Thread Waldemar Biernacki

Robert May napisaƂ:

Thank you Rob!

I'll can control my screens much more now.


Waldemar




Waldemar Biernacki wrote:

I have two input fields (in html/css dialect):

1. 
2. 


The first one is a normal textfield in Win32::GUI. I would be very, 
very pleased I someone could give me a way how to get textfield which 
looks like the second input. Maybe it is outside the possibilities of 
MS Win32::GUI library. Such information is also very vary precious.


Remove the WS_EX_CLIENTEDGE extended style:

#!perl -w
use strict;
use warnings;

use Win32::GUI qw(CW_USEDEFAULT WS_EX_CLIENTEDGE);

my $mw = Win32::GUI::Window->new(
-left => CW_USEDEFAULT,
-size => [400,300],
);

$mw->AddTextfield(
-pos => [10,10],
-size => [100,20],
);

$mw->AddTextfield(
-pos => [10,35],
-size => [100,18],
-remexstyle => WS_EX_CLIENTEDGE,
);

$mw->Show();
Win32::GUI::Dialog();
$mw->Hide();
exit(0);
__END__

Making the border 2 pixels wide and red (as per your html/css) is 
(much) harder.


Regards,
Rob.