[wxperl-users] wxPerl::Styles

Hi all,

Here's a style shortcut package to complement wxPerl::Constructors


I realize that style('hscroll', te => 'process_enter|multiline') isn't 
much shorter than (style => Wx::wxHSCROLL()|Wx::wxTE_PROCESS_ENTER()|
Wx::wxTE_MULTILINE()), but shortness is only an interim goal.  By 
processing the constants as strings, I'm hoping to enable a better 
XRC-like thing.  In the meantime, it's shorter enough that I think I 
can get all of the style onto one line more often than not.


This is copied from the documentation.  See the svn above.

  use Wx qw(
  ... wxALIGN_RIGHT ... ;


  use Wx ();
  use wxPerl::Styles 'wxVal';
  ... wxVal('align_right') ... ;

  use Wx ();
  use wxPerl::Constructors;
  use wxPerl::Styles 'style';

  my $text_ctrl = wxPerl::TextCtrl->new($self, 'some text here',
    style('hscroll', te => 'process_enter|multiline')

Hot dogs:  just another condiment.
--Heart-attack Man

4/5/2007 9:11:21 AM
perl.wxperl.users 3070 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 51


Similar Artilces:

[wxperl-users] wxPerl Wiki => wxPerl Kwiki
Hello all, Once upon a time I installed a Wiki, called it the wxPerl Wiki and didn't look at it anymore. I noticed that only a few people use it, it's been hacked a few times, and to make it work, at least yours truly should put more time and effort in it. This morning I started installing Kwiki, which is a far better Wiki platform than the Wiki that was installed. Apart from the UserPreferences page (working on it), everything works as it should. However, the data people entered in the old Wiki can't be converted to Kwiki automatically. Therefore I need your ...

[wxperl-users] [ wxperl-Bugs-1237847 ] wxPerl does not build with wxUniversal
Bugs item #1237847, was opened at 2005-07-13 23:24 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115655&aid=1237847&group_id=15655 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Mattia Barbon (mbarbon) Assigned to: Nobody/Anonymous (nobody) Summary: wxPerl does...

Fwd: wxPerl on the Mac; was: [wxperl-users] Re: problems with wxPerl
>To: Jouke Visser <jouke@pvoice.org>, wxperl-users@lists.sourceforge.net >From: Christian Jaeger <christian.jaeger@sl.ethz.ch> >Subject: wxPerl on the Mac; was: [wxperl-users] Re: problems with wxPerl >Date: Sun, 30 Sep 2001 23:08:19 +0100 > >Hello, > >I'm crossposting this reply to the macosx-perl mailing list because >there is some interest, too. Actually I forgot to put the macosx-perl adress on it. >At 14:02 Uhr +0200 24.9.2001, Jouke Visser wrote: >>I wondered if anyone yet tried to compile wxPerl on a Mac. If not, I'...

[wxperl-users] [ wxperl-Bugs-588884 ] wxperl will not compile
Bugs item #588884, was opened at 2002-07-30 17:13 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115655&aid=588884&group_id=15655 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Dan Stahlke (danstahlke) Assigned to: Nobody/Anonymous (nobody) Summary: wxperl will not compile Initial Comment: I cannot get the wxPerl module to compile. It breaks with this message: c++ -c -I/usr/local/lib/wx/include/gtk-2.3 -I/usr/local/include -I. -fno-rtti -fno-exceptions -O2 -DVERSION=\0.10\ -DXS_VERSION=\0.10\ -fpic -I/usr/lib/perl5/i386-linux/CORE -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_REENTRANT Controls.c Controls.c: In function `void XS_Wx__RadioBox_SetString(CV *)': Controls.c:4792: no matching function for call to `wxRadioBox::SetString (int &, wxString &)' make: *** [Controls.o] Error 1 I am using Perl 5.6.1 under Linux 2.4.18, GTK 1.2.10, wxWindows 2.3.2, gcc 2.95.3, wxPerl 0.10. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115655&aid=588884&group_id=15655 ...

[wxperl-users] WxPerl on FreeBSD?
Has anyone built WxPerl on FreeBSD? The problem is that Perl on FreeBSD is built without pthreads, but wxwindows is built with pthreads. perl5 Makefile.PL complains about library settings it inherits from gtk-config: % /usr/local/bin/perl5 Makefile.PL Checking if your kit is complete... Looks good Unrecognized argument in LIBS ignored: '-Wl,-E' Unrecognized argument in LIBS ignored: '-pthread' Wheb built this way, "make test" reports it can't find pthread_create. Manually sprinkling a bunch of "-pthread"s and "-lc_r" gets it t...

[wxperl-users] wxperl and Printers
Hi, I need to print some text/report to specific printer with a logo, without use the printer dialog. Is there are any example about how to use de printer functions on WxPerl? Basically, the secuence would be to assign printer, select the font name and pitch, print some text and end document. Any help will be appreciated. ...

[wxperl-users] wxPerl demo
Hi all, I am going to split the demo distribution from wxPerl, make it installable from CPAN and include most of what is currently under samples/ inside the demo. As a start I created the wxDemo module in CVS, which is a slightly improved version of the current demo, plus code extracted from the (horrible) control sample. In the next wxPerl release, I will remove the demo/ subdirectory and any samples I was able to assimilate in the demo. In the future I plan to change the look of the demo to be somewhat like the 'widgets' wxWidgets sample: on the right of the ...

[wxperl-users] wxPerl wxGetPasswrodFromUser
This is a multi-part message in MIME format. ------=_NextPart_000_0130_01C3A2D0.47712300 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable please, what is the corresponding wxperl function (and how to use) to = the 'C' wxGetPasswordFromUser? I did not find doc for that. my env : wxperl 0.15 and ActiveState 5.6.1 on win XP. thanks in advance, ulisses ------=_NextPart_000_0130_01C3A2D0.47712300 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable &l...

[wxperl-users] MozEmbed and WxPerl
Has anyone wrapped the mozilla embedded library for WxPerl the way it's been done for Gtk (and Wx under Python) by any chance? I need this, but I figured I'd check to see if someone'd done it before I did it myself. -- Dan --------------------------------------it's like this------------------- Dan Sugalski even samurai dan@sidhe.org have teddy bears and even teddy bears get drunk Hi Dan, Dan Sugalski <dan@sidhe.org> wrote: > Has anyone wrapped the mozilla ...

[wxperl-users] WxPerl Samples..
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am currently using WxWin 2.26 with c++, and I am an occassional perl programmer. I would like to know if anyone has some WxPerl samples handy, I downloaded the recent distribution and installed it with PPM. I downloaded the .chm document file supplied at the ftp site for wxperl, and searched for "perl" in the document, and found only one hit?!? Would just like to see some sample script to get me started.. cya... Amanjit Gill (amanjit.gill@gmx.de) MSN Messenger (amanjit_gill@hotmail.com) "Just do it. ...

[wxperl-users] wxPerl Wiki
The wxPerl Wiki I mentioned before has more or less been set up. The current url is , which will become http://wxperl.pvoice.org/cgi-wxperl/view.pl/FrontPage in a few days (after the dns change has been propagated throughout the world). Of course the Wiki is empty right now, but I'll be starting to put things on it, and hope a lot of you will do the same. Jouke ...

[wxperl-users] wxperl on solaris ?
I desperately need a perl GUI that runs on solaris/linux/windows. So I found wxperl that seems very nice, and runs pretty well on windows and linux. But I can't manage to make it works under solaris2.6, with gtk1.2.10, wxGtk-2.4, perl 5.6.1 and gcc2.95.2. the compilation process seems successful, but when I try to run any wxperl script, I get the following message : ClassInfo initialization failed 'wxSashWindow' at /nfs/aletheia/packages/all/perl/lib/5.6.1/sun4-solaris2.6/DynaLoader.pm line 206. Compilation failed in require at -e line 1. BEGIN failed--compila...

[wxperl-users] wxPerl-Constructors
Hi all, I've finally gotten around to the s/WxPerl/wxPerl/ rename. Has anybody tried it yet? Any thoughts before it goes on CPAN? http://scratchcomputing.com/svn/wxPerl-Constructors/trunk The next release of dotReader will be depending on it, so that should happen "real soon now". --Eric -- "Beware of bugs in the above code; I have only proved it correct, not tried it." --Donald Knuth --------------------------------------------------- http://scratchcomputing.com --------------------------------------------------- Hi Eric. I think ...

[wxperl-users] Perl2Exe with wxPerl
Is it possible to use Perl2Exe, or PerlApp, with wxPerl to create binaries for distribution, or is there another way? Thanks, Marcus I tried to do this recently and found that I had to include the wx22_7.dll *outside* the exe, as long as it's in a system dir or in the same dir as your exe, it should work. I've been thinking about maybe binding the dll into the exe and then seeing if I could use a BEGIN block to copy that dll to where it needs to be. We'll see. -Casey Williams ----- Original Message ----- From: "Marcus" <lists@wordit.com> ...

[wxperl-users] wxPerl documentation
Hi, I'm new to wxPerl and I'm finding that I fall into the cracks between wxPerl and wxWindows. I'm not sure what documentation to follow. Specifically, at the moment I'm trying to create a ListBox. I appear to have succeeded, that is, I don't get any errors, but I also don't see a box. How do I give it a position, size, etc? The syntax I'm using is not what's specified in the wxWindows online document (more like Perl), but I don't want to start guessing. I have <CODE> my $list1 = Wx::ListBox->new(); # make a list box, I hope...

[wxperl-users] WxPerl installation
Hi - I've been having an extremely difficult time installing WxPerl on my debian stable (sarge). There are no instructions on how to do that nor are there any recent .deb files (do please consider adding them to the sf.net repository). I even tried to get the files directly from CPAN and that too died due to some dependency issues (directly from CPAN). Note that the CPAN page, http://search.cpan.org/~mbarbon/Wx-0.57/Wx.pm states that one should 'Please see docs/install.txt in source package' which is not intuitive since there are no directions of what package that ...

[wxperl-users] wxPerl overview
dear monks and mongers in the wx docu is a page about wxpython. see at: http://proton-ce.sourceforge.net/rc/wxwindows/docs/html/wx/wx500.htm#wxpython but nothing about wxperl. im about to change that. I askby this way you, all my precious brothers and sisters, for any suggestions and hints. my half ready version is online at http://proton-ce.sourceforge.net/rc/wxperl/wx500.htm. i know the chapter about other gui isnt ready, maybe has someone more experience with PerlQT or PerTK to prevent that i blame myself. and the text for the hello wxperl, .... im on it the linklist to t...

[wxperl-users] Contributing to wxperl
Hi there! I'm relatively new to wx perl and am finding it to be very useful. There are a few wxWidgets classes that are not yet implemented that I would like to use. At the moment of particular interest is wxGraphicsPath. Is there a quick guide for contributing to wxperl somewhere? I assume to add a wx class I need to add the XS interface for it and it's dependencies. What else needs to be done, any work in Wx.pm or elsewhere? Thank you! Klaas On Thu, 07 Jun 2007 10:53:39 +1200 Klaas Hartmann <k.hartmann@math.canterbury.ac.nz> wrote: Hi, > I'...

[wxperl-users] wxPerl constants
Hi, Newbie question - how does one suck in all the wxPerl constats into your code ie stulff like wx_OK etc etc. Geoff -- View this message in context: http://www.nabble.com/wxPerl-constants-t1177761.html#a3098302 Sent from the wxperl-users forum at Nabble.com. On Feb 23, 2006, at 1:47 PM, Geoff M wrote: > > Hi, > > Newbie question - how does one suck in all the wxPerl constats into > your > code ie stulff like wx_OK etc etc. > > Geoff Name all of the constants your package needs in the "use statement. E.g.: use Wx qw(wxHORIZONTA...

[wxperl-users] about wxPerl under solaris
We had a little problem having wxPErl running under solaris2.6, with gtk1.2.10, wxGtk-2.4, perl 5.6.1 and gcc2.95.2. All compiled well but when we tryed to run wxPerl apps, we got: " ClassInfo initialization failed 'wxSashWindow' at /nfs/aletheia/packages/all/perl/lib/5.6.1/sun4-solaris2.6/DynaLoader.pm line 206. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. Segmentation Fault (core dumped) " I just mail a solution that worked for us and solved our problem, I hope it'll help other people with the sa...

[wxperl-users] Activestate and WxPerl
Hi, <I've read through the archives first, before posting> I just installed Activestate (v5.6.1, below is the output of perl -V). Then following the readme (I untarred/unzipped to d:\data\download\wxperl). I tried to install and I'm getting: D:\Data\Download\WXPerl>ppm install --location=. Wx 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) 2 questions: 1) suggestion on fixing the above? 2) Do I need to install WxWindows in addition...

[wxperl-users] wxPerl at GPW
Tomorrow at the German Perl Workshop I will be presenting a wxPerl tutorial. I just finished the slides and examples (some of which borrowed a lot of code from you Mattia...) and I've put them online so that everyone who is interested can use it. You can find it at http://www.pvoice.org/GPW/index.html Have fun! -- *-----------------------------------------------* |Jouke Visser |jouke@pvoice.org | |Perl GUI Geek |http://www.pvoice.org | *-----------------------------------------------* PS: Notice new mailaddress!! > Tomorrow at the German Per...

[wxperl-users] wxperl on MacOSX
Hello I'm happy to find today the announcement of a wxwindows-perl interface in www.perl.com's newsletter. It could just be what I'm looking for: some perl gui for MacOS (9/)X. Tough I'm a bit in doubt whether wxperl will work on the mac (primarily MacOSX, MacOS9 would be cool too)? I want to create a rather simple gui: create popup dialogs on top of the desktop (maybe floating windows). It's for a networked message application. It should pop up a window if it receives a message. I've been thinking about porting the perl Mac::* toolbox modules to ...

[wxperl-users] your wxPerl wishlist?
Hi all, I'm working on a few ideas for better expressing wx child widgets and layouts in Perl and I'm curious what you think is most needed. First, let me say a big thank you to Mattia. I've been using wxPerl for a while now and am fairly familiar with the code and what a monumental effort this was and is. Mattia, you deserve many more thank-you's and likely don't hear them often enough. What I'm working on is something like an "ideal syntax", not any sort of flaw in the bindings. Next, I've heard "I want a good, free GUI rad too...

Web resources about - [wxperl-users] wxPerl::Styles - perl.wxperl.users

O'Reilly Open Source Convention 2007 • July 23-27, 2007 • Portland, Oregon
O'Reilly Open Source Convention 2007 - July 23-27, 2007 - Portland, Oregon

Resources last updated: 3/10/2016 11:51:14 AM