[perl-win32-gui-users] refresh gui

2002-02-25 Thread NAHUM Marc
hye,
How can'i refresh a windows ?
I try to made a progress bar and i need refresh the window when a new action
is do ...
Thanks for help ...

Marc,





Re: [perl-win32-gui-users] refresh gui

2002-02-25 Thread Johan Lindstrom

At 11:32 2002-02-25 +0100, NAHUM Marc wrote:

How can'i refresh a windows ?
I try to made a progress bar and i need refresh the window when a new action
is do ...


$win->InvalidateRect(1);

will send a WM_PAINT to the window, causing it to be redrawn.

The method can also be called on a single control.


/J

 --  --- -- --  --  -- -  - -
Johan LindströmSourcerer @ Boss Casinos [EMAIL PROTECTED]

Latest bookmark: "Re (tilly) 6 Code Critique"






Re: [perl-win32-gui-users] ActivePerl 5.6.1 build 631 with Win32-GUI 0.0.558

2002-02-25 Thread Eric Hansen
Peter, Thanks for the suggestion. For some reason, this is not helping 
completelty. I am at least getting a border around my ListView, but the columns 
and rows are still not working.   I wonder if Win32-GUI 0.0.558 binary build is 
not compatible with 5.6.1/631 ActivePerl binary build?   

Also, I have found that the Terminate event for a GUI Window/DialogBox causes a 
Windows illegal operation messagebox to pop up if the application is compiled 
with Indigostar PERL2EXE compiler version 5.03, the latest version for Perl 
5.6.1.  But running an application with the Perl Interpreter for 5.6.1/631, I 
don't get the error msg box upon the Terminate event firing.  

I am temporaily going  back to earlier,  more stable releases of   
ActivePerl (i.e. 5.19), Win32-GUI (i.e. 0.0.434), and PERL2EXE (i.e. 3.12) as 
of 1 year ago, the last time I upgraded.  I had no problems then.

Eric


>>> "Peter Köller" <[EMAIL PROTECTED]> 02/23/02 02:05AM >>>
Hello Eric,

I have a solution: Try to insert the magic spell "-style => WS_CHILD |
WS_VISIBLE | 1" in the AddListView. This worked for me.

Peter

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Auftrag von
> Eric Hansen
> Gesendet am: Freitag, 22. Februar 2002 20:05
> An: perl-win32-gui-users@lists.sourceforge.net 
> Betreff: [perl-win32-gui-users] ActivePerl 5.6.1 build 631 with
> Win32-GUI 0.0.558
>
> I just uninstalled my old build of both ActivePerl and Win32-GUI
> and installed the latest releases. Rebooted and everything.
> Win32-GUI is not working right anymore   I ran a small
> program (with a ListView, see below code) that ran fine with
> older releases of Perl and Win32-GUI, but runs like garbage with
> the new installs. The ListView looks like hell.  I can't see the
> control at all, no borders, no column headers.  All I see are the
> words "Apples  Pears  Oran..."   all on the same row?What I
> should see is a column header "FRUIT" and underneath that I
> should see Apples on the first row, Pears on the second row, and
> Oranges on the third row.  Anybody tried the latest Perl build
> with latest Win32-GUI build and experienced any problems???
>
> Thanks,
> Eric
> Dallas, TX USA
>
> use Win32::GUI;
>
> $W = new Win32::GUI::DialogBox(
> -name => "Window",
> -text => "ListView Test",
> -width => 275,
> -height => 250,
> -left => 50,
> -top => 50
> );
>
> $LV = $W->AddListView(
>  -name => "ListView",
>  -left => 12,
>  -top => 10,
>  -height => 200,
>  -width  => 225,
> );
> $LV->View(1);   # detailed listing, i.e. columns and rows
>
> $W->Show();
> $W->BringWindowToTop();
> Load_ListView();
>
> Win32::GUI::Dialog();
>
> sub Load_ListView {
>$LV->InsertColumn(-index => 1, -width => 200, -text => "FRUIT");
>
>$LV->InsertItem(-item => 0, -text => "Apples");
>$LV->InsertItem(-item => 1, -text => "Pears");
>$LV->InsertItem(-item => 2, -text => "Oranges");
> }
>
> sub Window_Terminate {
>return -1;
> }
>
> #-- END SCRIPT
>
>
> ___
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users 
>





[perl-win32-gui-users] HTML rendering

2002-02-25 Thread Matthew Wagenknecht
Is there an easy way to render HTML? Other that shelling to IE, of course..

I have a GUI app that builds a tree based on the results of a scan.. I'd
like to view a conditional web page depending on what sub-item the user
clicks on..

If all else fails, I'll just shell to IE.

...::: Matt :::...
Special thanks go out to 
my good friends, 
Sugar and Caffeine.. 



Re: [perl-win32-gui-users] ActivePerl 5.6.1 build 631 withWin32-GUI 0.0.558

2002-02-25 Thread Peter Köller
That is strange, Eric. I have no problems with  ActivePerl 5.6.1 Build 631,
Win32-GUI 0.0.558 and Perl2Exe 5.03.

Perhaps you want to try my sources:
http://sourceforge.net/projects/auctioneer/. I am making excessive use of
ListViews.

Hope, you find the problem,

Peter

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag von
> Eric Hansen
> Gesendet am: Montag, 25. Februar 2002 15:48
> An: perl-win32-gui-users@lists.sourceforge.net
> Betreff: Re: [perl-win32-gui-users] ActivePerl 5.6.1 build 631
> withWin32-GUI 0.0.558
>
> Peter, Thanks for the suggestion. For some reason, this is not
> helping completelty. I am at least getting a border around my
> ListView, but the columns and rows are still not working.   I
> wonder if Win32-GUI 0.0.558 binary build is not compatible with
> 5.6.1/631 ActivePerl binary build?
>
> Also, I have found that the Terminate event for a GUI
> Window/DialogBox causes a Windows illegal operation messagebox to
> pop up if the application is compiled with Indigostar PERL2EXE
> compiler version 5.03, the latest version for Perl 5.6.1.  But
> running an application with the Perl Interpreter for 5.6.1/631, I
> don't get the error msg box upon the Terminate event firing.
>
> I am temporaily going  back to earlier,  more stable releases of
> ActivePerl (i.e. 5.19), Win32-GUI (i.e. 0.0.434), and PERL2EXE
> (i.e. 3.12) as of 1 year ago, the last time I upgraded.  I had no
> problems then.
>
> Eric
>
>
> >>> "Peter Köller" <[EMAIL PROTECTED]> 02/23/02 02:05AM >>>
> Hello Eric,
>
> I have a solution: Try to insert the magic spell "-style => WS_CHILD |
> WS_VISIBLE | 1" in the AddListView. This worked for me.
>
> Peter
>
> > -Ursprüngliche Nachricht-
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Auftrag von
> > Eric Hansen
> > Gesendet am: Freitag, 22. Februar 2002 20:05
> > An: perl-win32-gui-users@lists.sourceforge.net
> > Betreff: [perl-win32-gui-users] ActivePerl 5.6.1 build 631 with
> > Win32-GUI 0.0.558
> >
> > I just uninstalled my old build of both ActivePerl and Win32-GUI
> > and installed the latest releases. Rebooted and everything.
> > Win32-GUI is not working right anymore   I ran a small
> > program (with a ListView, see below code) that ran fine with
> > older releases of Perl and Win32-GUI, but runs like garbage with
> > the new installs. The ListView looks like hell.  I can't see the
> > control at all, no borders, no column headers.  All I see are the
> > words "Apples  Pears  Oran..."   all on the same row?What I
> > should see is a column header "FRUIT" and underneath that I
> > should see Apples on the first row, Pears on the second row, and
> > Oranges on the third row.  Anybody tried the latest Perl build
> > with latest Win32-GUI build and experienced any problems???
> >
> > Thanks,
> > Eric
> > Dallas, TX USA
> >
> > use Win32::GUI;
> >
> > $W = new Win32::GUI::DialogBox(
> > -name => "Window",
> > -text => "ListView Test",
> > -width => 275,
> > -height => 250,
> > -left => 50,
> > -top => 50
> > );
> >
> > $LV = $W->AddListView(
> >  -name => "ListView",
> >  -left => 12,
> >  -top => 10,
> >  -height => 200,
> >  -width  => 225,
> > );
> > $LV->View(1);   # detailed listing, i.e. columns and rows
> >
> > $W->Show();
> > $W->BringWindowToTop();
> > Load_ListView();
> >
> > Win32::GUI::Dialog();
> >
> > sub Load_ListView {
> >$LV->InsertColumn(-index => 1, -width => 200, -text => "FRUIT");
> >
> >$LV->InsertItem(-item => 0, -text => "Apples");
> >$LV->InsertItem(-item => 1, -text => "Pears");
> >$LV->InsertItem(-item => 2, -text => "Oranges");
> > }
> >
> > sub Window_Terminate {
> >return -1;
> > }
> >
> > #-- END SCRIPT
> >
> >
> > ___
> > Perl-Win32-GUI-Users mailing list
> > Perl-Win32-GUI-Users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
> >
>
>
>
> ___
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
>




[perl-win32-gui-users] ListView - selected Items

2002-02-25 Thread Eugeniy Ogloblin
Hello All,

How to get selected items in ListView?

  

-- 
Best regards,
 Eugeniy  mailto:[EMAIL PROTECTED]





[perl-win32-gui-users] ListView - selected Items

2002-02-25 Thread JColwell
@items = $window->DataView->SelectedItems();

then you can do something like 

foreach ( @items )
{
# do something with each item
}

Jeff Colwell
No electrons were harmed in making this e-mail message.


-Original Message-
From: Eugeniy Ogloblin [mailto:[EMAIL PROTECTED]
Sent: Monday, February 25, 2002 1:04 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] ListView - selected Items


Hello All,

How to get selected items in ListView?

  

-- 
Best regards,
 Eugeniy  mailto:[EMAIL PROTECTED]



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



RE: [perl-win32-gui-users] ListView - selected Items

2002-02-25 Thread JColwell
That will work provided you create your ListView with the name "DataView"


#--
$window->AddListView
#--
(
-name   => "DataView",
-top=> 160,
-left   =>   0,
-width  => 600,
-height => 200,
-addstyle   =>  WS_CHILD   |
WS_VISIBLE |
ES_AUTOVSCROLL | 
WS_VSCROLL |
 1,
-checkboxes =>   0,
-fullrowselect  =>   1,
-gridlines  =>   1,
-multisel   =>   2,
-view   =>   1,
);

Jeff Colwell
No electrons were harmed in making this e-mail message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, February 25, 2002 3:04 PM
To: [EMAIL PROTECTED]; perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] ListView - selected Items



@items = $window->DataView->SelectedItems();

then you can do something like 

foreach ( @items )
{
# do something with each item
}

Jeff Colwell
No electrons were harmed in making this e-mail message.


-Original Message-
From: Eugeniy Ogloblin [mailto:[EMAIL PROTECTED]
Sent: Monday, February 25, 2002 1:04 PM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] ListView - selected Items


Hello All,

How to get selected items in ListView?

  

-- 
Best regards,
 Eugeniy  mailto:[EMAIL PROTECTED]



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

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