From: Johannes G. <in...@de...> - 2002-10-07 20:55:24
|
Hello List, i'm new to wxperl .. so i would try it out, but i got an intall error. i use activeperl v5.6.1 on w2k. this is the error-msg.: Installing package 'Wx'... Error installing package 'Wx': Read a PPD for 'Wx', but it is not intended for this build of Perl (MSWin32-x86-multi-thread) any ideas what to do? thx a lot hannes |
From: DH <cra...@ya...> - 2002-10-08 00:42:31
|
PPM (the shell) has a wee bug in that sometimes it gets confused like you've seen. That is why I sometimes have to run the following program (also available from http://crazyinsomniac.perlmonk.org/perl/ppm/ ) Just download a binary from either http://wxperl.sourceforge.net/download.html extract it some place, cd to that directory, and run this program. It's basically what PPM does when it's installing modules #!/usr/bin/perl -w use Cwd; use strict; use Config; use ExtUtils::Install; use ActivePerl::DocTools; my %current_package; ########################################################################################## #$current_package{'NAME'} = 'Wx'; print "Enter the package name :"; $current_package{'NAME'} = <STDIN>; chomp($current_package{'NAME'}); ################################################################################# my $inst_archlib = $Config{installsitearch}; my $inst_root = $Config{prefix}; my $packlist = MM->catfile("$Config{installsitearch}/auto", split(/-/, $current_package{'NAME'}), ".packlist"); # copied from ExtUtils::Install my $INST_LIB = MM->catdir(MM->curdir,"blib","lib"); my $INST_ARCHLIB = MM->catdir(MM->curdir,"blib","arch"); my $INST_BIN = MM->catdir(MM->curdir,'blib','bin'); my $INST_SCRIPT = MM->catdir(MM->curdir,'blib','script'); my $INST_MAN1DIR = MM->catdir(MM->curdir,'blib','man1'); my $INST_MAN3DIR = MM->catdir(MM->curdir,'blib','man3'); my $INST_HTMLDIR = MM->catdir(MM->curdir,'blib','html'); my $INST_HTMLHELPDIR = MM->catdir(MM->curdir,'blib','htmlhelp'); my $inst_script = $Config{installscript}; my $inst_man1dir = $Config{installman1dir}; my $inst_man3dir = $Config{installman3dir}; my $inst_bin = $Config{installbin}; my $inst_htmldir = $Config{installhtmldir}; my $inst_htmlhelpdir = $Config{installhtmlhelpdir}; my $inst_lib = $Config{installsitelib}; while (1) { my $cwd = getcwd(); $cwd .= "/" if $cwd =~ /[a-z]:$/i; eval { ExtUtils::Install::install({ "read" => $packlist, "write" => $packlist, $INST_LIB => $inst_lib, $INST_ARCHLIB => $inst_archlib, $INST_BIN => $inst_bin, $INST_SCRIPT => $inst_script, $INST_MAN1DIR => $inst_man1dir, $INST_MAN3DIR => $inst_man3dir, $INST_HTMLDIR => $inst_htmldir, $INST_HTMLHELPDIR => $inst_htmlhelpdir},0,0,0); }; # install might have croaked in another directory chdir($cwd); # Can't remove some DLLs, but we can rename them and try again. if ($@ && $@ =~ /Cannot forceunlink (\S+)/) { my $oldname = $1; $oldname =~ s/:$//; my $newname = $oldname . "." . time(); unless (rename($oldname, $newname)) { return 0; } } # Some other error elsif($@) { return 0; } else { last; } } ActivePerl::DocTools::UpdateHTML(); ActivePerl::DocTools::WriteTOC(); --- Johannes Gamperl <in...@de...> wrote: > Hello List, > > i'm new to wxperl .. so i would try it out, but i got an intall error. > i use activeperl v5.6.1 on w2k. this is the error-msg.: > > Installing package 'Wx'... > Error installing package 'Wx': Read a PPD for 'Wx', but it is not > intended for this build of Perl (MSWin32-x86-multi-thread) > > any ideas what to do? > > thx a lot > hannes > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users __________________________________________________ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com |
From: boo r. <boo...@at...> - 2002-10-08 19:45:32
|
hello, all I thought it might be good for us to start a repository of wxperl components that we've created. I've about a half dozen components that I use for different things all the time, and would like to put them up for the common good. Is there a desire for such a thing? boo |
From: Jouke V. <jo...@pv...> - 2002-10-09 05:02:07
|
On Tue, Oct 08, 2002 at 01:47:50PM -0600, boo radley wrote: > hello, all > > I thought it might be good for us to start a repository of wxperl > components that we've created. I've about a half dozen components that I > use for different things all the time, and would like to put them up for > the common good. Is there a desire for such a thing? This is what CPAN is for I think! -- ---------------------------------------------------------------------- | Jouke Visser | http://jouke.pvoice.org (personal) | | | http://www.pvoice.org (pVoice & pStory) | | Perl GUI Geek | http://wxperl.pvoice.org (wxPerl) | ---------------------------------------------------------------------- |
From: DH <cra...@ya...> - 2002-11-22 05:35:35
|
Hello. I'm a writing/designing an app. What's available for saving font settings? Can I use XRC to do this? To let the user choose font/color, I dooos a my $fD = Wx::FontDialog->new( $frame, Wx::FontData->new() ); if( $fD->ShowModal() == wxID_OK ) { $fD = $fD->GetFontData(); my $c = $fD->GetColour(); my $f = $fD->GetChosenFont(); ## serialize $c and $f here ## by hand? ( there's gotta be something written already to do this ) } What do you do? __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Scott L. <sla...@th...> - 2002-11-22 07:05:27
|
On Thu, 21 Nov 2002, DH wrote: > What's available for saving font settings? > Can I use XRC to do this? > > To let the user choose font/color, I dooos a > > my $fD = Wx::FontDialog->new( $frame, Wx::FontData->new() ); > > if( $fD->ShowModal() == wxID_OK ) { > $fD = $fD->GetFontData(); > my $c = $fD->GetColour(); > my $f = $fD->GetChosenFont(); > > ## serialize $c and $f here > ## by hand? ( there's gotta be something written already to do this ) > > } > > What do you do? Wx::ConfigBase http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/docs/wxwin467.htm#wxconfigoverview |
From: Mattia B. <mb...@ds...> - 2002-11-22 18:43:07
|
On Thu, 21 Nov 2002 21:35:26 -0800 (PST) DH <cra...@ya...> wrote: > Hello. > I'm a writing/designing an app. > What's available for saving font settings? > Can I use XRC to do this? I have absolutely no idea if XRC can do this (ask wx-users). However, if you are using wxWindows 2.3.x, you can use Wx::Font::GetNativeFontInfoDesc and ::SetNativeFontInfo. > To let the user choose font/color, I dooos a > > my $fD = Wx::FontDialog->new( $frame, Wx::FontData->new() ); > > if( $fD->ShowModal() == wxID_OK ) { > $fD = $fD->GetFontData(); > my $c = $fD->GetColour(); > my $f = $fD->GetChosenFont(); > > ## serialize $c and $f here > ## by hand? ( there's gotta be something written already to do this ) > > } HTH Mattia |
From: Simon F. <sf...@fl...> - 2002-11-25 16:27:32
|
I think this might be a subject for [wx-users], but I'm interested in what's involved from a perl perspective... I'd like to build a custom wx control out of existing controls. Specifically I want to cross a Wx::TreeCtrl with a Wx::CheckBox (think: the kind of control you see see in 'disk backup' applications). 1. Am I right that I need to use wxUniversal to build these controls? and that I cannot use wxUniversal and wxMSW in the same application (yet)? 2. Is there some perl-ish way of overriding Wx::TreeCtrl to add a checkbox to each Wx::TreeItem or do I need to build it in C++ first? I guess I should also ask, have I overlooked some control/flag that already impliments a Check-TreeCtrl? Thanks --simon |
From: Mattia B. <mb...@ds...> - 2002-11-25 21:51:01
|
On Mon, 25 Nov 2002 16:27:00 +0000 Simon Flack <sf...@fl...> wrote: > I think this might be a subject for [wx-users], but I'm interested in > what's > involved from a perl perspective... > > I'd like to build a custom wx control out of existing controls. > Specifically > I want to cross a Wx::TreeCtrl with a Wx::CheckBox (think: the kind of > control you see see in 'disk backup' applications). Generally, deriving from native widgets (wxButton, wxTreeCtrl (on MSW), wxCheckBox, etc, etc, etc) in order to alter their look and feel is unsupported in wxWindows. > 1. Am I right that I need to use wxUniversal to build these controls? > and > that I cannot use wxUniversal and wxMSW in the same application (yet)? No, and yes. You can emulate it by using checked and unchecked icons for tree items (you can use the same trick with Wx::ListCtrl, BTW). It is correct that you can't currently use wxUniversal widgets with wxMSW. > 2. Is there some perl-ish way of overriding Wx::TreeCtrl to add a > checkbox to > each Wx::TreeItem or do I need to build it in C++ first? See above. > I guess I should also ask, have I overlooked some control/flag that > already > impliments a Check-TreeCtrl? AFAIK, no. HTH Mattia |
From: boo r. <boo...@at...> - 2002-11-27 08:47:58
|
I'm trying to use Wx::FileSystem's FindFirst/ FindNext, but am finding that wxFILE/ wxDIR don't seem to be exported by either Wx or Wx::FileSystem. Although I found the values (wxFILE is 1 and wxDIR is 2, if you're curious...), I wonder was just trying to export from the wrong modules? |
From: Mattia B. <mb...@ds...> - 2002-11-27 08:57:27
|
On Wed, 27 Nov 2002, boo radley wrote: >I'm trying to use Wx::FileSystem's FindFirst/ FindNext, but am finding >that wxFILE/ wxDIR don't seem to be exported by either Wx or >Wx::FileSystem. Although I found the values (wxFILE is 1 and wxDIR is 2, >if you're curious...), I wonder was just trying to export from the wrong >modules? In general, all constants are exported by 'use Wx "wxFOO"'. If this fails, this means that the constants are not "wrapped" in wxPerl. WRT these two constants, I'll add them. Regards Mattia |
From: DH <cra...@ya...> - 2002-11-29 11:17:15
|
If i have a wxPanel with a green background and black foreground, and I create a wxCheckBox as a child of my beautiful panel, isn't the wxCheckBox supposed to inherit the back/fore ground colors? A wxLabel does it, and a wxLabel is part of a wxCheckBox, so I think it should. Is this is a bug in wxWindows itself or just wxPerl? __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: DH <cra...@ya...> - 2002-11-29 17:46:46
|
Hi. If i have a Wx::ToolBar, and I add a tool to it like, so my $b1 = Wx::Bitmap->new('bah.jpg', wxBITMAP_TYPE_JPEG); $toolBar->AddTool(-1,$b1); the -1 (toolid) is apparently taken litelarly (doesn't work). Is this a WxWindows bug, or a wxperl bug? (I'd expect -1 to assign a unique id like usual) now for the 2 bitmap version, this i'm sure is a bug in wxPerl. my $b1 = Wx::Bitmap->new('bah.jpg', wxBITMAP_TYPE_JPEG); my $b1 = Wx::Bitmap->new('bah2.jpg', wxBITMAP_TYPE_JPEG); $toolBar->AddTool(6066,$b1,$b2); When you click on the tool, the 2nd bitmap is supposed to show, but it doesn't. The 2nd bitmap argument is wxNullBitmap by default, but if I pass a real bitmap, it should be my bitmap, and sadly that isn't the case in wxPerl. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Mattia B. <mb...@ds...> - 2002-11-30 14:43:34
|
On Fri, 29 Nov 2002 09:46:41 -0800 (PST) DH <cra...@ya...> wrote: > Hi. > If i have a Wx::ToolBar, > and I add a tool to it like, so > > my $b1 = Wx::Bitmap->new('bah.jpg', wxBITMAP_TYPE_JPEG); > $toolBar->AddTool(-1,$b1); > > the -1 (toolid) is apparently taken litelarly (doesn't work). > Is this a WxWindows bug, or a wxperl bug? (I'd expect -1 to assign a > unique id like usual) > > now for the 2 bitmap version, this i'm sure is a bug in wxPerl. > > my $b1 = Wx::Bitmap->new('bah.jpg', wxBITMAP_TYPE_JPEG); > my $b1 = Wx::Bitmap->new('bah2.jpg', wxBITMAP_TYPE_JPEG); > $toolBar->AddTool(6066,$b1,$b2); > > When you click on the tool, the 2nd bitmap is supposed to show, but it > doesn't. > > The 2nd bitmap argument is wxNullBitmap by default, but if I pass a real > bitmap, it should > be my bitmap, and sadly that isn't the case in wxPerl. It appears this is not implemented in Win32. I don't have wxPerl/wxGTK compiled now to try it. Regards Mattia |
From: DH <cra...@ya...> - 2002-12-02 05:26:36
|
I have a neat little splitter window, and i've just maximized the app, a wxMaximizeEvent has been fired, and the app has been maximized. My splitterwindow is SplitVertically, and when the app is maximized, the right half is the one that always grows. How do I change this? (is it possible, i want the left side to grow) __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Mattia B. <mb...@ds...> - 2002-12-02 08:53:50
|
On Sun, 1 Dec 2002, DH wrote: >I have a neat little splitter window, >and i've just maximized the app, >a wxMaximizeEvent has been fired, and the app has been maximized. > >My splitterwindow is SplitVertically, >and when the app is maximized, the right half is the one that >always grows. >How do I change this? (is it possible, i want the left side to grow) AFAIK not automatically. You yust catch the maximize event and call ->SetSashPosition from the handler. Regards Mattia |
From: boo r. <boo...@at...> - 2002-12-03 20:12:51
|
I see that it's been in since 0.09, but I'm having problems locating it, let alone using it. Did it get removed since 0.09? |
From: Mattia B. <mb...@ds...> - 2002-12-03 21:55:27
|
On Tue, 03 Dec 2002 13:15:25 -0700 boo radley <boo...@at...> wrote: > I see that it's been in since 0.09, but I'm having problems locating it, > let alone using it. Did it get removed since 0.09? Hmm, I see I missed Wx::Config->new (will add), OTOH if you llok at the demo, around line 415, you will see a typical use, equivalent to using Wx::Config->new. HTH Mattia |
From: DH <cra...@ya...> - 2002-12-05 04:28:11
|
wxPerl-0.12-wx-2.3.4-docs-chm.chm says wxFontDialog::ShowModal wxPerl note: This method is not implemented in wxPerl This ain't true, it *is* implemented ;) __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
From: Mattia B. <mb...@ds...> - 2002-12-05 08:51:21
|
On Wed, 4 Dec 2002, DH wrote: >wxPerl-0.12-wx-2.3.4-docs-chm.chm says > > wxFontDialog::ShowModal > wxPerl note: This method is not implemented in wxPerl > >This ain't true, it *is* implemented ;) The trouble is that the (simple) script I use does not take into account inheritance. If someone wants to fix it (before I get to it, which may be a looooong time), just ask, I will send it with instructions. Regards Mattia |
From: Mattia B. <mb...@ds...> - 2002-11-30 14:43:34
|
On Fri, 29 Nov 2002 03:17:08 -0800 (PST) DH <cra...@ya...> wrote: > If i have a wxPanel > with a green background and black foreground, > and I create a > wxCheckBox > as a child of my beautiful panel, > isn't the wxCheckBox supposed to inherit the back/fore ground colors? > A wxLabel does it, and a wxLabel is part of a wxCheckBox, so I think it > should. > Is this is a bug in wxWindows itself or just wxPerl? wxWindows; when you report it, be sure to report wxWindows version and OS. Regards Mattia |