Re: [perl-win32-gui-users] Re: [perl-win32-gui] newbie query

2001-01-08 Thread Aldo Calpini
Reini Urban wrote:
> Aldo,
> i'm still trying to fool around with cygwin and mingw,
> but at first have to build a new mingw-perl 5.6.1, because with
> this it will be much easier. (it can use the msvc headers and
> libs, and not the cygwin/w32api)
> but at first I have the solve the current cygwin perl-5.6.1-1
> problem with gdbm.

I am also trying to fool around with cygwin, but I didn't
even could produce a working Perl build :-(
I'm trying to build the Perl 5.6.0 source tree under a
precompiled cygwin install, and it seems everything goes
well, I have a perl.exe but everytime it is launched it
says that the application failed to initialize properly
(0xc005). should be something stupid like access denied
to some shared library, but I can't track it down.
BTW, I gave libmsvcrt.a to Configure when it was asking for
my C library, dunno if it's correct...

PS. this thread should probably be moved to the
Perl-Win32-GUI-Hackers mailing list ;-)


cheers,
Aldo

__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;





FW: [perl-win32-gui-users] newbie - trying to get data from text box

2001-01-08 Thread Michael Solomon
Thanks for this

I can now capture the text

What I would also like to do is start with the cursor in the text box rather
than having to click on it.

Is that possible and if so how do I do it


Regards


Mike Solomon


-Original Message-
From:   Anthony C. George [mailto:[EMAIL PROTECTED] 
Sent:   05 January 2001 18:46
To: perl-win32-gui-users@lists.sourceforge.net
Subject:RE: [perl-win32-gui-users] newbie - trying to get data from
text box

To get the text in the box:
$myText=$Frame->aTextField->Text();
To set the text:
$Frame->aTextField->Text($myText);


>tony

-Original Message-
From:   [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Michael Solomon
Sent:   Friday, January 05, 2001 11:18 AM
To: Perl Gui (E-mail)
Subject:[perl-win32-gui-users] newbie - trying to get data from text
box


I have just started looking at Win32 Gui
What I want to do is put up a text box and allow a user to enter data then
capture it
By looking at code posted here I have written the following: use Win32::GUI;
$Frame = new Win32::GUI::Window(
* name => "aFrame",
* top => 100,
* left => 150,
* width => 350,
* height => 200,
* title => "Test Win32::GUI",
);
$Frame->AddTextfield(
* name => "aTextField",
* top => 50,
* left => 20,
* height => 20,
* width => 300,
* prompt => "Type a text here : ",
   );
$Frame->AddButton(
* name => "aButton",
* text => "OK",
* top => 90,
* left => 150,
* height => 25
* width => 50,
   );

$Frame->Show();
Win32::GUI::Dialog();
sub aFrame_Terminate {
* 1;
  }

sub aButton_Click {
print "test\n";
&aFrame_Terminate;
}


What I haven't worked out how to do is to access the text entered.  Also I
want the cursor to start in the text box rather than having to click on it.
Any help will be gratefully received.
Regards

Mike Solomon
Technical Manager
Work 01582 831125
Mobile 07941 537 172
email   [EMAIL PROTECTED]
===
=
Important: Any views or opinions expressed by the sender do not necessarily
represent those of the 3s Group. This e-mail and any attachment(s)
are intended for the above named only and may be confidential.  If you are
not
the named recipient please notify us immediately.  You must not copy or
disclose
the contents to any third party.
Internet e-mail is not a fully secure communications medium.  Please take
this into account when sending e-mail to us.
Any attachment(s) to this e-mail are believed to be free from virus, but it
is the responsibility of the recipient to make all the necessary virus
checks.
www.3s-group.com




___
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users


RE: [perl-win32-gui-users] Memory leak (not really a leak at all)

2001-01-08 Thread ChristianL
I know from personal experience that there is a memory handling problem in
win32-gui.  

I had an application that could be turned on or put into "pause" mode -
which meant it would not do any processing until the start button was
clicked.  This application would drag any computer I put it on to a halt.
The time it took to do this depended on how much memory the machine had to
start with.  

It seems to me that if this problem only concerned windows cache allocation,
that it would not make the box grind to a halt.

I will admit that I do not understand the intricacies of how windows handles
memory, but I did want to add my personal experiences in hopes it may shed
light  on the problems.

HTH,
[EMAIL PROTECTED]

-Original Message-
From: Sam [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 07, 2001 9:32 PM
To: [EMAIL PROTECTED]
Subject: [perl-win32-gui-users] Memory leak (not really a leak at all)


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I found many references to the 'memory leak' in the archived 
messages at http://www.mail-archive.com/perl-win32-
[EMAIL PROTECTED]/.

I believe there isn't a memory leak at all, it appears that the 
memory usage reported by windows task manager includes a 
portion of a windows cache allocated to the program, and that it's 
the cache usage that changes, not the amount of memory that the 
perl interpreter has allocated.
This is based on these observations:
1)  As the memory usage reported by the task manager increases 
the total memory usage does not increase. If you run a compiler or 
something that will allocate memory a bit at a time for a long period 
of time you'll notice that as the compiler's memory usage goes up, 
and so does the total memory usage.
2)  If you minimize the perl-win32-gui app's window the reported 
memory usage goes down to a base value (120K with my perl), and 
every time you minimize the window it goes down to the same 
value. This is _not_ indicative of a memory leak.
3)  If you play with other applications in a similar way you can 
make them exhibit similar behaviour. The reported memory usage 
on other applications (my test was EditPlus) doesn't increase to 
the same extent, but it does increase (more on this difference later).

During the above I looked over the code involved, and attempted to 
isolate a memory leak. So far as I can tell the code is rock solid.


I believe that the difference between a perl-win32-gui application, 
and other pure win32 applications is in the DefWindowProc 
handling. The perl-win32-gui module does call DefWindowProc 
when either you don't have a handler installed, or you return 1, 
however through BoundsChecker I believe that this may not always 
be the case.

I would be interested if someone finds anything else out about this 
problem. Unfortunately I can't spend any more time on this, as it 
appears to me that this isn't a serious bug, at least not something 
that will stop a program from working correctly.



-BEGIN PGP SIGNATURE-
Version: N/A

iQA/AwUBOliL8ZsRND2Z+TaWEQJGwgCeMkadt3YnnIh+sC3In8ZbMObH3WkAoPLK
qIBjQIZHm48LYi6tlAehlC+G
=u9/m
-END PGP SIGNATURE-

Sam Jacobson
R & D Manager / Software Engineer
Selective Communications
Ph +64 9 302 1142
www.selective.co.nz

___
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users



Re: [perl-win32-gui-users] newbie - trying to get data from text box

2001-01-08 Thread Jonathan Southwick
FW: [perl-win32-gui-users] newbie - trying to get data from text boxYes that is 
also possible.  Try this:

To set the cursor in the textfield: 
$Frame->aTextField->SetFocus();

Jonathan Southwick
Technical & Network Services
Allegheny College, Meadville, PA
[EMAIL PROTECTED]



- Original Message - 
  From: Michael Solomon 
  To: Perl Gui (E-mail) 
  Sent: Monday, January 08, 2001 6:55 AM
  Subject: FW: [perl-win32-gui-users] newbie - trying to get data from text box


  Thanks for this 

  I can now capture the text 

  What I would also like to do is start with the cursor in the text box rather 
than having to click on it. 

  Is that possible and if so how do I do it 



  Regards 



  Mike Solomon 



  -Original Message- 
  From:   Anthony C. George [mailto:[EMAIL PROTECTED] 
  Sent:   05 January 2001 18:46 
  To: perl-win32-gui-users@lists.sourceforge.net 
  Subject:RE: [perl-win32-gui-users] newbie - trying to get data from 
text box 

  To get the text in the box: 
  $myText=$Frame->aTextField->Text(); 
  To set the text: 
  $Frame->aTextField->Text($myText); 



  >tony 

  -Original Message- 
  From:   [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] Behalf Of 
  Michael Solomon 
  Sent:   Friday, January 05, 2001 11:18 AM 
  To: Perl Gui (E-mail) 
  Subject:[perl-win32-gui-users] newbie - trying to get data from text 
box 



  I have just started looking at Win32 Gui 
  What I want to do is put up a text box and allow a user to enter data then 
  capture it 
  By looking at code posted here I have written the following: use Win32::GUI; 
  $Frame = new Win32::GUI::Window( 
  * name => "aFrame", 
  * top => 100, 
  * left => 150, 
  * width => 350, 
  * height => 200, 
  * title => "Test Win32::GUI", 
  ); 
  $Frame->AddTextfield( 
  * name => "aTextField", 
  * top => 50, 
  * left => 20, 
  * height => 20, 
  * width => 300, 
  * prompt => "Type a text here : ", 
 ); 
  $Frame->AddButton( 
  * name => "aButton", 
  * text => "OK", 
  * top => 90, 
  * left => 150, 
  * height => 25 
  * width => 50, 
 ); 

  $Frame->Show(); 
  Win32::GUI::Dialog(); 
  sub aFrame_Terminate { 
  * 1; 
} 

  sub aButton_Click { 
  print "test\n"; 
  &aFrame_Terminate; 
  } 



  What I haven't worked out how to do is to access the text entered.  Also I 
want the cursor to start in the text box rather than having to click on it.

  Any help will be gratefully received. 
  Regards 

  Mike Solomon 
  Technical Manager 
  Work 01582 831125 
  Mobile 07941 537 172 
  email   [EMAIL PROTECTED] 
  === 
  = 
  Important: Any views or opinions expressed by the sender do not necessarily 
  represent those of the 3s Group. This e-mail and any attachment(s) 
  are intended for the above named only and may be confidential.  If you are 
  not 
  the named recipient please notify us immediately.  You must not copy or 
  disclose 
  the contents to any third party. 
  Internet e-mail is not a fully secure communications medium.  Please take 
  this into account when sending e-mail to us. 
  Any attachment(s) to this e-mail are believed to be free from virus, but it 
  is the responsibility of the recipient to make all the necessary virus 
  checks. 
  www.3s-group.com 
   




  ___ 
  Perl-Win32-GUI-Users mailing list 
  Perl-Win32-GUI-Users@lists.sourceforge.net 
  http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users 



[perl-win32-gui-users] URL Link Object?

2001-01-08 Thread timothy . b . thomas
Aldo or anyone else-

Is there an object within Win32::GUI that will allow you to have a URL link in 
a GUI-window? When you click on the text it should open up your default browser 
and take you to that URL. You know, the kind that a lot of Apps have in their 
About screen. Or is there another way to create this effect?

Thanks,

Tim Thomas





-
Tim Thomas
Unix Systems Administrator
Lockheed Martin EIS ยท Denver Data Center
303-430-2281
mailto:[EMAIL PROTECTED]  
-





Re: [perl-win32-gui-users] Memory leak (not really a leak at all)

2001-01-08 Thread Reini Urban
Have you tried Devel::Leak ?

It works better with a -DDEBUGGING perl version which I currently 
don't have for MSVC.

Sam wrote:
> I believe there isn't a memory leak at all, it appears that the
> memory usage reported by windows task manager includes a
> portion of a windows cache allocated to the program, and that it's
> the cache usage that changes, not the amount of memory that the
> perl interpreter has allocated.
>
> During the above I looked over the code involved, and attempted to
> isolate a memory leak. So far as I can tell the code is rock solid.
-- 
Reini Urban
http://xarch.tu-graz.ac.at/autocad/news/faq/autolisp.html