Wx::StyledTextCtrl

2010-08-04 Thread Daniel Carrera
Hello, I just learned about a possibly-cool widget: wxStyledTextCtrl. Apparently it is the Scintilla editor. I'm trying to figure out how to add it to my program: 1) I cannot find it on the wxWidgets reference: http://docs.wxwidgets.org/stable/wx_classref.html#classref 2) But I'm pretty sure it

Re: Wx::StyledTextCtrl

2010-08-04 Thread Alessandro
http://docs.wxwidgets.org/trunk/classwx_styled_text_ctrl.html 2010/8/4 Daniel Carrera > Hello, > > I just learned about a possibly-cool widget: wxStyledTextCtrl. > Apparently it is the Scintilla editor. I'm trying to figure out how to > add it to my program: > > 1) I cannot find it on the

Re: Wx::StyledTextCtrl

2010-08-04 Thread Ahmad Zawawi
Oops i forgot to CC the group. Sorry :) On Wed, Aug 4, 2010 at 1:01 PM, Ahmad Zawawi wrote: > Hi, > > Padre is already using it. You can find the code here: > http://search.cpan.org/~plaven/Padre-0.68/lib/Padre/Wx/Editor.pm > > wx

Re: Wx::StyledTextCtrl

2010-08-04 Thread herbert breunung
http://proton-ce.sourceforge.net/rc/scintilla/pyframe/www.pyframe.com/stc/index-2.html >Hello, > >I just learned about a possibly-cool widget: wxStyledTextCtrl. >Apparently it is the Scintilla editor. I'm trying to figure out how to >add it to my program: > >1) I cannot find it on the wxWidgets re

Re: Wx::StyledTextCtrl

2010-08-04 Thread herbert breunung
kephra as well :) : http://kephra.sourceforge.net/site/en/home_news.shtml >Oops i forgot to CC the group. Sorry :) > >On Wed, Aug 4, 2010 at 1:01 PM, Ahmad Zawawi [ wrote: > >> Hi, >> >> Padre is already using it. You can find the code here: >> http://search.cpan.org/~plaven/Padre-0.68/lib/Padre/W

Unicode problems - euro characters not displaying in widgets ???

2010-08-04 Thread perltk
I have an app that is reading from a database. Some of the names include unicode characters: Heres are some print statement output when running app: > perl uwi_flip.pl Well ==> HENW_Letebr?nner >perl -C uwi_flip.pl Well ==> HENW_Letebrønner Any names wi

Re: Unicode problems - euro characters not displaying in widgets ???

2010-08-04 Thread Mattia Barbon
perltk wrote: I have an app that is reading from a database. Some of the names include unicode characters: Heres are some print statement output when running app: > perl uwi_flip.pl Well ==> HENW_Letebr?nner >perl -C uwi_flip.pl Well ==> HENW_Letebrønner Any names wit

Re: Wx::StyledTextCtrl

2010-08-04 Thread Daniel Carrera
Hello Ahmad, Thanks for the links. I feel dumb because I still can't figure out how to make a simple hello-world editor with Wx::StyledTextCtrl. I can't find anything remotely like a simple example. I tried writing my own: -%<-- use strict; use Wx; package MyApp; use bas

Re: MDI broken

2010-08-04 Thread Mattia Barbon
herbert breunung wrote: Sorry, forgot to answer... the MDI - Wx::Demo is completely broken but I can't make it better with own samples. bugs here? There is the same problem in the wxWidgets MDI demo; FWIW it is not wxPerl-specific. still there: Couldn't require Wx::DemoModules::wxHea

Re: Wx::StyledTextCtrl

2010-08-04 Thread Ahmad Zawawi
use strict; use warnings; use Wx; use Wx::STC; # To import Wx::StyledTextCtrl package MyApp; use base 'Wx::App'; sub OnInit { my $frame = Wx::Frame->new(undef, -1, "Hello World"); my $ctrl = Wx::StyledTextCtrl->new($frame); $frame->Show( 1 ); } package main; MyApp->new()

Re: Wx::StyledTextCtrl

2010-08-04 Thread Daniel Carrera
WHOO HOO!!! THANKS! On Wed, Aug 4, 2010 at 3:35 PM, Ahmad Zawawi wrote: > use strict; > use warnings; > use Wx; > use Wx::STC;  # To import Wx::StyledTextCtrl > package MyApp; > use base 'Wx::App'; > sub OnInit { >        my $frame = Wx::Frame->new(undef, -1, "Hello World"); >        my $ctrl = W

installing on OSX 10.6

2010-08-04 Thread Adam Witney
Hi, I am trying to install wxWidgets and wxPerl on OSX 10.6. There are lots of notes online about different ways (32 bit, 64 bit, wxWidgets 2.8.11, 2.9.1 etc) to get it running, but none have yet been successful for me. I was wondering which method people have found to be successful? Installin

Re: installing on OSX 10.6

2010-08-04 Thread Mattia Barbon
Adam Witney wrote: Hi, I am trying to install wxWidgets and wxPerl on OSX 10.6. There are lots of notes online about different ways (32 bit, 64 bit, wxWidgets 2.8.11, 2.9.1 etc) to get it running, but none have yet been successful for me. I was wondering which method people have found to b

Re: installing on OSX 10.6

2010-08-04 Thread Adam Witney
On 4 Aug 2010, at 16:01, Mattia Barbon wrote: > Adam Witney wrote: > > Hi, > >> I am trying to install wxWidgets and wxPerl on OSX 10.6. >> There are lots of notes online about different ways (32 bit, 64 bit, >> wxWidgets 2.8.11, 2.9.1 etc) to get it running, but none have yet been >> succes

Re: Unicode problems - euro characters not displaying in widgets ???

2010-08-04 Thread perltk
> perl uwi_flip.pl Well ==> HENW_Letebr?nner >perl -C uwi_flip.pl Well ==> HENW_Letebrønner The output from 'perl -C' suggests to me - and I maybe wrong - that the string is indeed unicode. Also, the strings are displayed correctly in the Perl Tk app I am replacing, so I think

Re: Unicode problems - euro characters not displaying in widgets ???

2010-08-04 Thread perltk
Could the choice on font effect this ? Also I don't understand why I get blanks instead of the string with errors like it appears in the print out : HENW_Letebr?nner On 8/4/2010 12:39 PM, perltk wrote: > perl uwi_flip.pl Well ==> HENW_Letebr?nner >perl -C uwi_flip.pl Well ==> H

How to access a Wx::App object property in a Wx::Frame

2010-08-04 Thread Octavian Rasnita
Hello, Please tell me how can I access the properties of the Wx::App object in the subroutine which initializes that object. Is it absolutely necessary to use global variables? (Because I couldn't find another solution.) I did: use MyApp; my $app = MyApp->new; $app->{the_property} = "foo"; $ap

Re: Unicode problems - euro characters not displaying in widgets ???

2010-08-04 Thread perltk
Perhaps this will help. Putting list into wxlistbox. You can see the print statement that produces 'Well ==> HENW_Letebrønner' when executed with 'perl -C' $count=0; foreach ( @{$this->{list}}) { if ($_ =~ /^HENW_Lete/) { print "Well ==> $_\n"; } $this->

Re: How to access a Wx::App object property in a Wx::Frame

2010-08-04 Thread perltk
I think I've used Wx::GetTopLevelParent() On 8/4/2010 12:46 PM, Octavian Rasnita wrote: Hello, Please tell me how can I access the properties of the Wx::App object in the subroutine which initializes that object. Is it absolutely necessary to use global variables? (Because I couldn't find a

[rt.cpan.org #59916] Wx makes perl dumping core when no DISPLAY set

2010-08-04 Thread Jens Rehsack via RT
Wed Aug 04 14:32:57 2010: Request 59916 was acted upon. Transaction: Correspondence added by REHSACK Queue: Wx Subject: Wx makes perl dumping core when no DISPLAY set Broken in: 0.9701, 0.9702 Severity: Critical Owner: Nobody Requestors: rehs...@cpan.org Status: op

Re: Unicode problems - euro characters not displaying in widgets - HELP PLEASE

2010-08-04 Thread perltk
Has anyone got any ideas? Unfortunately, this isn't an inconvience for us - this is a show stopper. Trying to move off perltk and the new Guis are looking good, but if we can not display unicode characters wxperl is dead for us :-( On 8/4/2010 8:16 AM, Mattia Barbon wrote: perltk wrote: I

Re: Unicode problems - euro characters not displaying in widgets - HELP PLEASE

2010-08-04 Thread perltk
Thanks for the response. Reasonably sure data is good - as I mentioned, it display correctly in Tk and on the command line when you run perl with a -C. I'm building a new wxperl right now to compare against, but I will take your advice and try that simple test. As far a fonts go, I removed al

{Spam?} Re: Unicode problems - euro characters not displaying in widgets - HELP PLEASE

2010-08-04 Thread Jiří Pavlovský
On 4.8.2010 22:28, perltk wrote: It's been a while since I've done stuff in wxPerl but I'm absolutely sure I could display unicode characters without problems. What do you mean exactly when you say unicode? What is the used encoding? UTF-8? Here are some ideas: - Did you test Mattia's suggest

FW: Re: Wx::StyledTextCtrl

2010-08-04 Thread herbert breunung
zou need to use Wx::STC; >Hello Ahmad, > >Thanks for the links. I feel dumb because I still can't figure out how >to make a simple hello-world editor with Wx::StyledTextCtrl. I can't >find anything remotely like a simple example. I tried writing my own: > >-%<-- >use stric

Re: Documentation?

2010-08-04 Thread Peter Lavender
Hi Daniel, > What is the best documentation resource to learn wxPerl? Everything I > can find is hugely out of date, and often poorly written: Documentation in any project is always difficult, it's worse when you have a volunteer project and sadly harder still when there are few people in the p

Re: Unicode problems - euro characters not displaying in widgets - HELP PLEASE

2010-08-04 Thread Huub Peters
It's been a while since I've done stuff in wxPerl but I'm absolutely sure I could display unicode characters without problems. What do you mean exactly when you say unicode? What is the used encoding? UTF-8? Here are some ideas: - Did you test Mattia's suggestion? Unicode and databases are known

Re: Unicode problems - A step in the right direction - A bit more Help please

2010-08-04 Thread perltk
Ok heres the script I used to generate unicode file: Look Ok? ## my $ustring = "Hello \x{263A}!\n"; binmode STDOUT, ":utf8"; open FILE, ">:utf8", "OUT.txt"; print FILE "$ustring1$ustring2"; close(FILE); # prove it print "$ustring1$ustring2"; # prove it again open FIL

Re: Unicode problems - euro characters not displaying in widgets ???

2010-08-04 Thread Johan Vromans
perltk writes: > I have an app that is reading from a database. What database? How does the app read fom the db? I use wxPerl witl DBI with PostgreSQL and SQLite backends. To have the database return real UTF-8 encoded stings, for PostgreSQL I need to do: $dbh->do("SET CLIENT_ENCODING TO