Re: [perl-win32-gui-users] How to dynamically combine bitmaps in toolbar

2007-08-26 Thread Waldemar Biernacki
Thank you Robert!,

I tried to do this imageList instead, however documentation is not clear 
enough for me... :(

Temporaly solution is making a serial independent Buttons.

Thanks again,

Waldemar


Dnia niedziela, 26 sierpnia 2007 13:21, Robert May napisaƂ:
> On 22/08/07, Waldemar Biernacki <[EMAIL PROTECTED]> wrote:
> > Hello everyone!
> >
> > I've found usefull notes on toolbar. However I have not found how to
> > combine different images to get one toolbar. Later on is my code. I have
> > three bitmaps: one, two and both. If you call the script as follows:
> >
> > perl script.pl both
> >
> > then you get two-images toolbar. But if you call
> >
> > perl script.pl whatever
> >
> > then you dont get proper toolbar bitmap (Perl complains that it needs a
> > list and the second addbitmap: $TB->AddBitmap($two, 2); is incorrect.
> >
> > Is someone able to help me and show how to combine inline bitmaps
> > dynamically in toolbar?
>
> Sorry, I don't have time to look at this properly, but it looks to me
> like the code for AddBitmap() is broken - I don't think it should be
> croak()ing if the toolbar already has an imagelist as it should just
> add to the end of the list ...
>
> Have you tried using an ImageList instead?
>
> I'll be back home in a week or so, and have some examples there if you
> still haven't got anywhere.
>
> Regards,
> Rob.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/


Re: [perl-win32-gui-users] PL_memory_wrap...

2007-08-26 Thread Robert May
On 27/08/07, marco hofmann <[EMAIL PROTECTED]> wrote:
> As script the report is:
>
> Can't call method "VERSION" on an undefined value at perlversion.pl line 2.

Sorry, that should have been:

print "$]\n";
print ActivePerl->VERSION(), "\n";

Can you try again - if I got it right this time, the second line
should print the ActivePerl build number.

My suspicion is that the version of PAR you have installed is built
against a perl prior to perl 5.8.7(? if I remember correctly thiswas
when PL_memory wrap was introduced).

(Really we should be building Win32::GUI against an older perl too,
but 1.05 was built against 5.8.7.)

Regards,
Rob.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/


Re: [perl-win32-gui-users] PL_memory_wrap...

2007-08-26 Thread marco hofmann
As script the report is:

Can't call method "VERSION" on an undefined value at perlversion.pl line 2.
5.008008

and the pp packed exe reports:

Can't call method "VERSION" on an undefined value at
script/perlversion.pl line 2.
5.008

I think I get the versions of PAR and pp from the ActiveState Repository.

Regards,
Marco

Robert May schrieb:
> On 24/08/07, Marco Hofmann <[EMAIL PROTECTED]> wrote:
>> I have problems with pp and win32::gui() package. If I pack
>> a script containing only the line
>>
>> use Win32::GUI();
>>
>> with
>>
>> pp -o test.exe test.pl
>>
>> I get the error message, when starting test.exe:
>>
>> The procedure entry point "PL_memory_wrap" can't be located in
>> DLL"perl58.dll"
> 
> Where did you get your version of PAR and pp from, and what version of
> perl was it built against?
> 
> Create a script that prints the perl version:
> 
> print "$]\n";
> print $ActivePerl->VERSION(), "\n";
> 
> and report what it says when run as a script using your current perl,
> and as a pp packed exe.
> 
> Regards,
> Rob.
> 



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/


Re: [perl-win32-gui-users] How to dynamically combine bitmaps in toolbar

2007-08-26 Thread Robert May
On 22/08/07, Waldemar Biernacki <[EMAIL PROTECTED]> wrote:
> Hello everyone!
>
> I've found usefull notes on toolbar. However I have not found how to combine
> different images to get one toolbar. Later on is my code. I have three
> bitmaps: one, two and both. If you call the script as follows:
>
> perl script.pl both
>
> then you get two-images toolbar. But if you call
>
> perl script.pl whatever
>
> then you dont get proper toolbar bitmap (Perl complains that it needs a list
> and the second addbitmap: $TB->AddBitmap($two, 2); is incorrect.
>
> Is someone able to help me and show how to combine inline bitmaps dynamically
> in toolbar?

Sorry, I don't have time to look at this properly, but it looks to me
like the code for AddBitmap() is broken - I don't think it should be
croak()ing if the toolbar already has an imagelist as it should just
add to the end of the list ...

Have you tried using an ImageList instead?

I'll be back home in a week or so, and have some examples there if you
still haven't got anywhere.

Regards,
Rob.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/


Re: [perl-win32-gui-users] PL_memory_wrap...

2007-08-26 Thread Robert May
On 24/08/07, Marco Hofmann <[EMAIL PROTECTED]> wrote:
> I have problems with pp and win32::gui() package. If I pack
> a script containing only the line
>
> use Win32::GUI();
>
> with
>
> pp -o test.exe test.pl
>
> I get the error message, when starting test.exe:
>
> The procedure entry point "PL_memory_wrap" can't be located in
> DLL"perl58.dll"

Where did you get your version of PAR and pp from, and what version of
perl was it built against?

Create a script that prints the perl version:

print "$]\n";
print $ActivePerl->VERSION(), "\n";

and report what it says when run as a script using your current perl,
and as a pp packed exe.

Regards,
Rob.

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/