Re: Learning wxPerl - the book

2016-01-19 Thread Steve Cookson
Hi Guys, On 18/01/16 22:10, James Lynes wrote: I have no idea if all of the Member Functions that are listed in the wxWidgets HTML docs are actually wrapped. Does anybody know of unwrapped classes and or members. We might start to draw up a listr. Regards Steve.

Online training

2016-02-04 Thread Steve Cookson
Hello Guys, I keep thinking how can we lower the barriers to wxPerl and increase its uptake. I wondered if some online training might be quite nice. I would like to try creating some online training videos, maybe we could upload them to youtube or somewhere. I wondered if anyone knew of any cla

Two parameter versus three parameter EVTs

2009-08-06 Thread Steve Cookson
Hi, [Sorry for the cross-posting, I've only just found this group]. I'm having difficulty passing an object to an event handler in Perl. I have two events which populate a screen with patient details Either by pressing search and returning a value: Wx::Event::EVT_BUTTON( $self,

Which is the main wxPerl support site you use

2009-08-06 Thread Steve Cookson
Hi Guys, I've just found this list. I have been using the wonderful wxPerl experimentally since the beginning of the year using wxGlade to get me started. But I've had to use the C++ community to support my work. So I have the C++ book, the C++ 2.8.10 documentation, I'm a member of the C++ supp

wxPerl wiki

2009-08-06 Thread Steve Cookson
Sorry to hear about the Wiki, I hope enough time has passed for everyone to grieve, so I'm going to put a less funereal spin on the front page. I'd like to encourage everyone to contribute a small something (a piece of code or advice etc) to the site. Is http://wxperl.pvoice.org/ the main wxPerl

Documentation - again

2009-08-07 Thread Steve Cookson
Hi Eric, Sorry I'm a bit behind the curve on this one. I'm pleased to hear that you are embarking on some Doc. Did you ever get this to work: http://prdownloads.sourceforge.net/wxperl/wxPerl-0.82-wx-2.8.7-docs-chm.chm For me it only showed blank pages on the right-hand pane. So I don't know

GetEvent

2009-08-07 Thread Steve Cookson
Hi Guys, Does anyone know how to use any of the GetEvent keywords? I have a subroutine which is called by a number of events, some of which pass 3 parameters and some of which pass 2 (ie they don't all pass $self). The processing is slightly different depending on which event triggered the routi

Destructors

2009-08-07 Thread Steve Cookson
Hi Guys, Does anyone know what the correct syntax for a Perl destructor is, if I want to remove a field, sizer or tab from a pane? Any suggestions welcome! Regards Steve <>

RE: Documentation - again

2009-08-07 Thread Steve Cookson
riday, August 07, 2009, Steve Cookson wrote: > Hi Eric, > > Did you ever get this to work: > > http://prdownloads.sourceforge.net/wxperl/wxPerl-0.82-wx-2.8.7-docs-chm. chm > > For me it only showed blank pages on the right-hand pane. So I > don't know if it was any good.

RE: Documentation - again

2009-08-07 Thread Steve Cookson
HTH, Sean *** On Fri, Aug 7, 2009 at 9:28 AM, Steve Cookson wrote: > Hi Octavian, > > I recduecd the filename to its minimum, but no joy. > > Don't worry. > > Regards > > Steve > > > -Original Message- > Fro

RE: Destructors

2009-08-07 Thread Steve Cookson
to delete part of an object, I should use a different command. Regards Steve -Original Message- From: Andri Möll [mailto:an...@dot.ee] Sent: 07 August 2009 13:53 To: Steve Cookson Cc: wxperl-users Subject: Re: Destructors On Fri, 2009-08-07 at 13:23 -0300, Steve Cookson wrote: > H

RE: Destructors

2009-08-07 Thread Steve Cookson
Hi, Thanks to everyone for their help. Here is an answer that works: $self->{"Notebook_tab_1"}->DestroyChildren(); $self->{"Notebook"}->RemovePage(0); Regards Steve -Original Message- From: Steve Cookson [mailto:steve.cook

RE: Destructors

2009-08-08 Thread Steve Cookson
Hi Mattia, Thanks for this. Are they both the same? Obviously one line is better than two! Regards Steve -Original Message- From: Mattia Barbon [mailto:mattia.bar...@libero.it] Sent: 08 August 2009 04:50 To: Steve Cookson Cc: wxperl-users@perl.org Subject: Re: Destructors Steve

RE: Destructors

2009-08-08 Thread Steve Cookson
Well they both seem to work in my code so I'm using the one-liner, rather than The two-liner. Thanks and regards Steve -Original Message- From: Steve Cookson [mailto:steve.cook...@sca-uk.com] Sent: 08 August 2009 13:24 To: 'Mattia Barbon' Cc: wxperl-users@perl.

Distinguishing between event types

2009-08-09 Thread Steve Cookson
Hi, I have a number of events that call the same subroutine. The events may be a mixture of button events or lose focus events and I need to process differently depending on which event it is. Eg, A search button is the same a change value of text field and exit (loose focus). But if the wh

FW: Distinguishing between event types

2009-08-10 Thread Steve Cookson
icked so I use $self->GetId() and I get "-205". What is this? And there are other event codes like 10114, when I expected wxEVT_COMMAND_KILL_FOCUS - 10202. Where can I find a table that tells me what 10114 and other codes are? Have a good day. Regards Steve _

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
My mistake, I was using wxEVT_COMMAND_KILL_FOCUS, when I should have used wxEVT_KILL_FOCUS. Regards Steve _ From: Steve Cookson [mailto:steve.cook...@sca-uk.com] Sent: 10 August 2009 09:02 To: wxperl-users@perl.org Subject: FW: Distinguishing between event types OK I'm m

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
s. I'm comfortable now with how to identify which event called the event-handler, but I'm still struggling to understand how to identify the variables involved when $self is not passed as a parameter. Regards Steve _ From: Steve Cookson [mailto:steve.cook...@sca-uk.com]

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
to the pointer to the main screen so that I can Do cross validation etc. What do you think? But I haven't tried $Event->Skip(), so that might help too. Regards Steve -Original Message- From: Doubi [mailto:doubi...@googlemail.com] Sent: 10 August 2009 16:11 To: wxperl-

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
on of another. However I think I am beginning to crack it (see my email to Ryan just now). Thanks again for your kind help. Regards Steve -Original Message- From: Andri Möll [mailto:an...@dot.ee] Sent: 10 August 2009 15:48 To: Steve Cookson Cc: wxperl-users@perl.org Subject: RE: Distingui

Duplicate EVT_KILL_FOCUS triggers

2009-08-12 Thread Steve Cookson
Hi, I Have a piece of Perl code: Wx::Event::EVT_KILL_FOCUS($self->{Ctl_Patient_Ref_0_Txt}, \&__lookup_patient_id); Wx::Event::EVT_KILL_FOCUS($self->{Ctl_Patient_Description_Txt}, \&__lookup_patient_id); When I tab out of $self->{Ctl_Patient_Ref_0_Txt} into $self->{Ctl_Patient_Description_Txt},

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
AIL - James McDonald [mailto:ja...@jamesmcdonald.id.au] Sent: 14 August 2009 02:39 To: wxperl-users@perl.org Subject: wxGlade Generated Code I use wxPerl to create custom interfaces. Alot of these interfaces have a Number Keypad and I've only just figured out how to get hold of the actual obj

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
ct I click using a post from Steve Cookson (Thanks Steve). It's embarrassing to admit but I was creating one event handler per key ( keyPress1, keyPress2 etc...) So using: my $keyLabel = $event->GetEventObject()->GetLabel(); I can get the text on the button I have clicked. But let

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
Original Message- From: Johan Vromans [mailto:jvrom...@squirrel.nl] Sent: 14 August 2009 09:27 To: wxperl-users@perl.org Subject: Re: wxGlade Generated Code "Steve Cookson" writes: > However on the Glade code, while I wrote my whole prototype In > Glade, and I wouldn't h

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
Whoops, I removed all references to the $i parameter before I sent, but I forgot to remove: "In this routine, you should ignore the $i parameter." Regards Steve -Original Message----- From: Steve Cookson [mailto:steve.cook...@sca-uk.com] Sent: 14 August 2009 09:54 To: &#x

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
Hi Ryan, So that's how it works! So if I want to detect tabbing out of a field to trigger validation, I use the lose focus event (EVT_KILL_FOCUS) on the control. But alt-tab (and I guess alt-esc etc) to another app also trigger it. How can I filter out alt-tab etc? Regards Steve -Ori

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
in all for my double postings ] Hi Steve, Steve Cookson wrote: > So that's how it works! So if I want to detect tabbing out of a field > to trigger validation, I use the lose focus event (EVT_KILL_FOCUS) on > the control. But alt-tab (and I guess alt-esc etc) to another app > al

RE: wxGlade Generated Code

2009-08-15 Thread Steve Cookson
: Johan Vromans [mailto:jvrom...@squirrel.nl] Sent: 15 August 2009 14:16 To: Steve Cookson Subject: Re: wxGlade Generated Code "Steve Cookson" writes: > So if I want to detect tabbing out of a field > to trigger validation, I use the lose focus event (EVT_KILL_FOCUS) on > the

Perl Validators

2009-08-16 Thread Steve Cookson
elp. Regards Steve -Original Message- From: Johan Vromans [mailto:jvrom...@squirrel.nl] Sent: 16 August 2009 05:26 To: wxperl-users@perl.org Subject: Re: wxGlade Generated Code "Steve Cookson" writes: > I have looked at them, but I didn't totally understand how they w

http://wxperl.pvoice.org/

2009-08-17 Thread Steve Cookson
Hi Guys, Are there some instructions on how to add a new page to this Wiki? Regards Steve <>

RE: http://wxperl.pvoice.org/

2009-08-17 Thread Steve Cookson
Thanks Eric. It's done now. http://wxperl.pvoice.org/w/index.php/Event_List. Regards Steve -Original Message- From: wxperl.d...@gmail.com [mailto:wxperl.d...@gmail.com] Sent: 17 August 2009 14:33 To: Steve Cookson Subject: Re: http://wxperl.pvoice.org/ On Mon, Aug 17, 2009

Event Codes and IDs

2009-08-17 Thread Steve Cookson
Sorry, this didn't get sent-> OK, I don't know if this will help anyone else, but here is a list of event codes and IDs. I've posted it on: http://wxperl.pvoice.org/w/index.php/Event_List NB This is the Perl list, so not all C++ events may have been ported to Perl. The ID's Also are Perl IDs.

GridBagSizer

2009-08-17 Thread Steve Cookson
Hi Does anyone use the GridBagSizer sizer type? If so what is the 'use' file name? I can't seem to find it. Regards Steve <>

FW: GridBagSizer

2009-08-17 Thread Steve Cookson
Actually, maybe I got that question wrong. Really its wxGBPosition, that is failing. "Undefined subroutine wxGBPosition called at .." Regards Steve _ From: Steve Cookson [mailto:steve.cook...@sca-uk.com] Sent: 17 August 2009 16:14 To: 'wxperl-users@pe

RE: FW: GridBagSizer

2009-08-17 Thread Steve Cookson
Hi Mattia, Thanks, spot on. Regards Steve -Original Message- From: Mattia Barbon [mailto:mattia.bar...@libero.it] Sent: 17 August 2009 16:28 To: Steve Cookson Cc: wxperl-users@perl.org Subject: Re: FW: GridBagSizer Steve Cookson wrote: > Actually, maybe I got that question wr

Freeze() 'n' Thaw()

2009-08-17 Thread Steve Cookson
Hi, When I load a new item, I have a number of tabs being filled in one pass. Maybe 60 controls for each tab (including plain text labels) and maybe 10 tabs. It takes a few seconds, during which time the screen is permanently being refreshed. I wondered if I could use Freeze() and Thaw() to a)

RE: http://wxperl.pvoice.org/

2009-08-17 Thread Steve Cookson
James McDonald [mailto:ja...@jamesmcdonald.id.au] Sent: 17 August 2009 19:27 To: Steve Cookson Subject: Re: http://wxperl.pvoice.org/ Steve Cookson wrote: > Thanks Eric. It's done now. > > http://wxperl.pvoice.org/w/index.php/Event_List. > > Regards > > Steve > > >

RE: http://wxperl.pvoice.org/

2009-08-17 Thread Steve Cookson
Sorry, should have said: http://www.activestate.com/pdf/datasheet_komodo_5-1.pdf Regards Steve -Original Message- From: James McDonald [mailto:ja...@jamesmcdonald.id.au] Sent: 17 August 2009 19:27 To: Steve Cookson Subject: Re: http://wxperl.pvoice.org/ Steve Cookson wrote

Getting back out of a dialog box.

2009-08-18 Thread Steve Cookson
Hi, I'm sorry this has turned into a rather longer posting than I had intended. I've been googling returning from a dialog box and I found James' posting: http://www.nntp.perl.org/group/perl.wxperl.users/2008/06/msg5919.html Which gives some hints around cancel. Really what I want to do is whe

RE: Getting back out of a dialog box.

2009-08-19 Thread Steve Cookson
nal Message- From: Johan Vromans [mailto:jvrom...@squirrel.nl] Sent: 19 August 2009 05:05 To: wxperl-users@perl.org Subject: Re: Getting back out of a dialog box. "Steve Cookson" writes: > If I put in and event filter to update the database, then OK doesn't close > the Dialo

RE: Getting back out of a dialog box.

2009-08-19 Thread Steve Cookson
o be wx_ID_OK, but that sort of defeats the purpose and means I will have multiple OK buttons. Maybe 5 OK buttons. So what does wx_ID_OK do that deletes the dialog box and exits in a controlled way? Regards Steve -Original Message- From: Steve Cookson [mailto:steve.cook...@sca-uk.com] Se

RE: RE: Getting back out of a dialog box.

2009-08-19 Thread Steve Cookson
Hi Mattia, Thanks for this. In the end I used. $self->EndModal(wxID_ADD); Although using wxID_OK worked, it messed up the other wxID_OK. According to the "Book", you can have multiple wxID_OK's in your application but only one per dialog or frame. Regards Steve -Original Mes

Events, again.

2009-08-19 Thread Steve Cookson
Hi People, Thanks to all of you who have contributed to my understanding on events. Although I've read the chapter in Bruce Perens so many times my head is spinning it still wasn't sinking in. Anyhow, I've summarised what you've all said and added in some solutions to my own problems and put

RE: Events, again.

2009-08-19 Thread Steve Cookson
vents, again. "Steve Cookson" writes: > http://wxperl.pvoice.org/w/index.php/Event_Handlers Good job, Steve! A couple of remarks. For a 2-arg event handler, you can pass the full $self object with a wrapper: Wx::Event::EVT_KILL_FOCUS($self->{field_1}, sub { eve

Interfacing to Prolog

2009-08-21 Thread Steve Cookson
Hi People, I'm thinking of adding Prolog to my application does anyone have any experience of interfacing to Prolog with wx or just with Perl? If so, can you give me some hints or point me to some code? Regards Steve <>

Data dictionaries.

2009-08-23 Thread Steve Cookson
Hi, Have any of you used data dictionaries to hold your wxPerl parameters, and if so how would you rate it success? Which parameters did you hold? I am planning: * Name, * Type * ID (maybe, difficult if it appears multiple times on one window) * tooltip * MaxLength

RE: Data dictionaries.

2009-08-23 Thread Steve Cookson
ssage- From: Johan Vromans [mailto:jvrom...@squirrel.nl] Sent: 23 August 2009 15:54 To: wxperl-users@perl.org Subject: Re: Data dictionaries. "Steve Cookson" writes: > What do you think? What do you want to achieve? -- Johan

RE: Data dictionaries.

2009-08-23 Thread Steve Cookson
efinition of XRC syntax? I'm using wxGlade to build my XRC files, but it doesn't support, for instance Wx::GridBagSizer. Thanks and regards. Steve -Original Message- From: ademmler [mailto:n...@ademmler.com] Sent: 23 August 2009 19:20 To: Steve Cookson Subject: Re: Data di

SetFocus

2009-08-25 Thread Steve Cookson
Hi, I have a large notebook, with maybe 100 items on each tab. Each tab corresponds to an appointment. When I switch clients I need to clear down the tab starting with the last. If the tab being displayed is the first one there is no problem and the process is lightening quick. If the tab be

RE: SetFocus

2009-08-25 Thread Steve Cookson
Hi Brad, It worked perfectly, thanks for this, Steve Maybe try: $self->{"Ctl_Appointment_Nbk"}->SetSelection(0); instead of: $self->{Ctl_Appointment_Tab_Appt_1}->SetFocus(); That should set the displayed tab to the first tab. Hope that works for you! Brad 2

Reply all vs Reply

2009-08-25 Thread Steve Cookson
Hi All, I am always doing this, and I know many of us do. Is there any way that the default "Reply" can be to wxperl-users@perl.org as it is, for instance, for wx-users? Alternatively, for those of you who don't press the wrong button, do you have a trick that helps you? Please share. Have a

wxMediaCtrl::LoadURI "Not implemented in wxPerl".

2009-08-27 Thread Steve Cookson
Hi People, I am using wxMediaCtrl to develop an application with a live feed. So far, I have only been using test.avi files for development purposes, and being comforted by the idea of the LoadURI command, however, I have just noticed that it says "Not implemented in wxPerl". This is a bit of a p

RE: wxMediaCtrl::LoadURI "Not implemented in wxPerl".

2009-08-29 Thread Steve Cookson
Hi Mattia, This is great news, you're right, I just misinterpreted the text. Thanks for the clarification. Have a good weekend. Regards Steve -Original Message- From: Mattia Barbon [mailto:mattia.bar...@libero.it] Sent: 28 August 2009 16:55 To: Steve Cookson Cc: wxperl-

wxMEDIABACKEND_REALPLAYER vs wxMEDIABACKEND_WMP10 vs blank

2009-09-06 Thread Steve Cookson
Hi People, I'm using wxMediaCtrl to play an .avi file that I generated with ffmpeg. The file plays well with realplayer standalone, but not so well with Windows Media Player standalone. When I use: $self->{Ctl_Videos_Media}= Wx::MediaCtrl->new( $self->{Ctl__Videos_Pane_1}, wxID_ANY, '', [-

Destructors eg wxBitmap::~wxBitmap

2009-09-07 Thread Steve Cookson
Hi Guys, I can't see any obvious samples that tell you how the Perl syntax works for removing an element, like a bitmap, a textctrl or a button. Any pointers would be welcome. Regards Steve <>

wxSashWindows

2009-09-08 Thread Steve Cookson
Hi, Has anyone managed to get wxSashWindows to work? I managed to find a version written in wxRuby on google, but it was full of SashLayoutWindows commands, which don't appear in wxPerl. I played around with it for a while (scroll down for a working version). The alternative, if I want to have

RE: wxSashWindows

2009-09-08 Thread Steve Cookson
XPAND, 0); # $self->{Ctl_Sizer_1b}->Fit($self); $self->{Ctl_Sizer_1b}->Layout(); # end wxGlade return $self; } 1; package main; unless(caller){ local *Wx::App::OnInit = sub{1}; my $app = Wx::App->new(); Wx::InitAllIma

RE: wxSashWindows

2009-09-10 Thread Steve Cookson
with embedded panels. I guess I'm not sure that this is right yet. What do others think? Regards Steve -Original Message- From: Johan Vromans [mailto:jvrom...@squirrel.nl] Sent: 09 September 2009 03:32 To: wxperl-users@perl.org Subject: Re: wxSashWindows "Steve Cookson"

Wx::PaintDC misunderstandings.

2009-09-11 Thread Steve Cookson
Hi, I'm sure I've just misunderstood something simple about images, but what have I done wrong here: my $loc_image = Wx::Image->new(560,20); my $loc_bmp;# used to hold the bitmap. $loc_bmp=Wx::Bitmap->new( $loc_image ); my $dc = Wx::PaintDC->new($self->{$loc_bmp}); $dc->DrawRectangle(0,

wxThread

2009-09-11 Thread Steve Cookson
Hi, Does anyone know of an example of wxThread, please? I am using ffmpeg to stream video and I would like some process to run concurrently (like taking a snapshot), so that the application doesn't pause. Regards Steve <>

RE: wxThread

2009-09-11 Thread Steve Cookson
Thanks Steffen, that's great. Regards Steve -Original Message- From: Steffen Mueller [mailto:nj88ud...@sneakemail.com] Sent: 11 September 2009 15:50 To: Steve Cookson Cc: wxperl-users@perl.org Subject: Re: wxThread Hi Steve, Steve Cookson wrote: > Does anyone know of an ex

RE: Wx::PaintDC misunderstandings.

2009-09-14 Thread Steve Cookson
in a graphical way. Should I keep redrawing the Panel, or should I use DC:Memory as you also suggest? Ideas welcome. Regards Steve -Original Message- From: Huub Peters [mailto:i...@huubpeters.com] Sent: 11 September 2009 09:50 To: Steve Cookson Cc: wxperl-users@perl.org Subject: R

RE: The wxPerl web site

2009-09-16 Thread Steve Cookson
I agree, I think it would be nice to combine them. I also suggest we might build the wxPerl community by being more vociferous on PerlMonks. Regards Steve -Original Message- From: Johan Vromans [mailto:jvrom...@squirrel.nl] Sent: 16 September 2009 09:59 To: wxperl-users@perl.org Sub

Deleting Sizers.

2009-09-17 Thread Steve Cookson
Hi, I'm trying to delete a photo and a sizer slot from a sizer using some code as follows: Get the slot the photo is in: -my $item = $self->{Ctl_Sizer_3}->GetItem()->$self->{"Ctl_Post_Exam_Videos_Sizer_6_".$gl _edit_mode}; Followed by delete it using Remove: -$self->{"Ctl_Post_Exam_Vid

RE: Deleting Sizers.

2009-09-18 Thread Steve Cookson
[mailto:jvrom...@squirrel.nl] Sent: 18 September 2009 03:19 To: Steve Cookson Subject: Re: Deleting Sizers. "Steve Cookson" writes: > -my $item = > $self->{Ctl_Sizer_3}->GetItem()->$self->{"Ctl_Post_Exam_Videos_Sizer_6_".$gl > _edit_mode}; GetItem requires

RE: Specialized text input field

2009-09-18 Thread Steve Cookson
Hi Eric, I'd be interested in this too. Regards Steve -Original Message- From: Roode, Eric [mailto:ero...@barrack.com] Sent: 18 September 2009 15:48 To: wxperl-users@perl.org Subject: Specialized text input field I need to create a specialized text-input field. It is for quickly se

wxMediaCtrl Load vs LoadFile

2009-09-21 Thread Steve Cookson
Hi All, When loading media in wxMediaCtrl, it seems that Play is called automatically. In Perl "Load" is not implemented instead there is "LoadFile". What I'd really like to hear about is some sort of parameter that I can pass or set to Load the media, but not play it. When the application st

Refresh image

2009-09-21 Thread Steve Cookson
Hi All, I am having difficulty with a new image refreshing. I have a video running under wxMediaCtrl, at the same time ffmpeg is taking a snapshot of the video, which is displayed in a wxScrolledWindow on the right. Ffmpeg is running in a separate thread which has not yet completed taking the s

::wxStartTimer

2009-09-22 Thread Steve Cookson
Hi All, Does anyone know what the syntax of: ::wxStartTimer is? Or anything else that measures time intervals? Thanks very much. Regards Steve <>

FW: HtmlHelpController

2009-09-24 Thread Steve Cookson
Hi all, I am having difficulty in getting my .htb file working properly in wxPerl. I have a help file produced by winrar, but my code doesn't recognise it. If I use the one in the example provided by Mattia, it works fine, but even if I take that file which works correctly, decompress it

RE: FW: HtmlHelpController

2009-09-24 Thread Steve Cookson
.it] Sent: 24 September 2009 16:52 To: Steve Cookson Cc: wxperl-users@perl.org Subject: Re: FW: HtmlHelpController Steve Cookson wrote: Hi, > If I use the one in the example provided by Mattia, it works fine, but even > if I take that file which works correctly, decompress it and recompress

wxConfig

2009-09-25 Thread Steve Cookson
Hi People, Does anyone know where I can find some example wxConfig code? Many thanks in advance. Regards Steve <>

Mouse Event coordinates

2009-09-26 Thread Steve Cookson
Hi Guys, I have a small piece of code which displays a bitmap, then when you click on the bitmap it should draw a circle round the point you clicked. It works OK, except that it always returns (0, 0) as the coordinates of the mouse, where-ever you click. Where am I going wrong? Here is the code

RE: wxConfig

2009-09-26 Thread Steve Cookson
Hi Huub, Thanks for the clarification! I'm sure I would have worked that out eventually, but it might have taken some time :) Regards Steve -Original Message- From: Huub Peters [mailto:i...@huubpeters.com] Sent: 25 September 2009 16:10 To: Steve Cookson Cc: wxperl-users@per

RE: Mouse Event coordinates

2009-09-26 Thread Steve Cookson
Hi Huub, It all worked perfectly first time. Thanks for everything! Both this and the wxConfig (which I haven't yet tested). Regards Steve -Original Message- From: Huub Peters [mailto:i...@huubpeters.com] Sent: 26 September 2009 10:24 To: Steve Cookson Cc: wxperl-users@per

$self->{Ctl_Main_Nbk}->DeletePage(1);

2009-10-05 Thread Steve Cookson
This feels like either a very simple question, or one requiring a binary chop through 2.5k lines of of code. On exiting a routine, I have the following code: $self->{Ctl_Main_Nbk}->DeletePage(1); Which produces a fatal, but unidentified, error although a few lines earlier I have

wxWidgets Object Model

2009-10-05 Thread Steve Cookson
Hi All, Is there some way I can cycle through the object model of the object we all know and love as '$self'? I've tried using: my %loc_array = $self; while ( (my $k,my $v) = each %loc_array ) { print "$k => $v\n"; } But I just get one entry. Does anyone hav

RE: $self->{Ctl_Main_Nbk}->DeletePage(1);

2009-10-06 Thread Steve Cookson
Johan Vromans wrote: >How does it look like? Wx crash? Perl-Wx crash? Perl crash? Sorry, not helpful of me. I'm running under Komodo 5 and I get a Perl crash. I get a windows pop-up box which says words to the effect "Please notify Microsoft " and the GUI closes back to Komodo. Komodo do

FW: Wx.pm as ppm from ActiveState?

2009-10-08 Thread Steve Cookson
I just thought I'd pass the following on to you from the ActiveState mailing list. Wouldn't it be great to have wxPerl on PPM? Regards Steve On Wed, 07 Oct 2009, Gabor Szabo wrote: > According to http://ppm4.activestate.com/idx/WW...WX.html Wx.pm cannot > build on any of the platforms ActivePe

Installing on Linux (K/Ubuntu)

2009-10-17 Thread Steve Cookson
Hi All, I've just started converting my Windows development onto Kubuntu (I'm a very new hand at Linux - measure it in days), but someone has pointed me at the apt-get command. As it already has Perl on it, I'd be keen to use this core installation. So does anyone know the apt-get command to i

RE: wxMediaCtrl on Linux

2009-11-09 Thread Steve Cookson
Hi Guys, I'm still completely failing to get wxMediaCtrl and GStreamer to run under Linux, so I'm trying different tacks. I have found a piece of Perl code that runs GStreamer directly (see below) and I wondered if this could be embedded in wxPerl. This is the point where I get completely lost.

RE: wxMediaCtrl on Linux

2009-11-12 Thread Steve Cookson
Hi Guys, The list of files needed to GStreamer from wxMediaCtrl *or* Perl seems to be: gstreamer0.10-ffmpeg libgstreamer0.10-0 libgstreamer-perl libgstreamer-plugins-base0.10-0 gstreamer0.10-x gstreamer0.10-plugins-good gstreamer0.10-plugins-base The following code then runs on Windows and Linux

RE: wxMediaCtrl on Linux

2009-11-13 Thread Steve Cookson
>Care to put this on the wiki? Done. Regards Steve

RE: wxMediaCtrl on Linux

2009-11-14 Thread Steve Cookson
I forgot to reply to the group: -Original Message- From: Steve Cookson [mailto:steve.cook...@sca-uk.com] Sent: 14 November 2009 08:23 To: 'Johan Vromans' Subject: RE: wxMediaCtrl on Linux >It seems that Fedora (F10, F11) provides a version of Wx that does not >ha

wxRichTextCtrl

2010-01-03 Thread Steve Cookson
Hi Guys, Wow, it's already 2010 (for those of you who use the Gregorian calendar). I hope you all had a great Christmas break and that this year turns out well for you. I'm trying to implement some WP functionality in wx. Really all I need to do is to edit a letter. I've looked at the wxPerl d

RE: wxRichTextCtrl

2010-01-03 Thread Steve Cookson
>I don't know about th XML format, but here is how I get HTML from the >widget: > my $buffer = $richtext->GetBuffer; > open(my $fh, '>', \my $html) || die 'cannot open'; > my $html_handler = Wx::RichTextHTMLHandler->new; > $html_handler->SaveFile($buffer, $fh); Hi Jiri That looks great.

RE: wxRichTextCtrl

2010-01-06 Thread Steve Cookson
-Original Message- From: Jiri Pavlovsky [mailto:j...@getnet.cz] Sent: 03 January 2010 20:07 To: wxperl-users@perl.org Subject: Re: wxRichTextCtrl On 3.1.2010 22:57, Steve Cookson wrote: >> I don't know about th XML format, but here is how I get HTML from the >> widget: &g

RE: wxRichTextCtrl

2010-01-07 Thread Steve Cookson
Well, it looks as though I should have used SetValue instead of SetBuffer, but the crash is on the line before. $html_handler->LoadFile($buffer, $fh ); But maybe the error is in the XML instead of the wxPerl syntax? The XML is created by just saving the buffer in the sample application,

WxRichTextCtrl buttons

2010-01-07 Thread Steve Cookson
Hi All, I'm looking at the WxRichTextCtrl buttons on: http://docs.wxwidgets.org/stable/wx_wxrichtextctrloverview.html and wondering how to implement them. Does anyone know where the code is? Have a good day. Regards Steve <>

Wx::RichTextPrinting

2010-01-08 Thread Steve Cookson
Hi All, Does anyone know if Wx::RichTextPrinting has been implemented yet in wxP? If not, what are the alternatives? Thanks. Regards Steve <>

RE: wxRichTextCtrl

2010-01-08 Thread Steve Cookson
>> Can you do a "LoadFile" too? >Probably, but I did not get to it yet. Hi Jiri, I've tried: line # 53 my $HTML_handler = Wx::RichTextHTMLHandler->new; 54 open (my $fh, "LoadFile ($buffer, $fh); 57 $self->{rich_text_ctrl_1}->SetValue ($buffer ); Where I've just created output.ht

RE: WxRichTextCtrl buttons

2010-01-09 Thread Steve Cookson
Ok, So here's the answers: >I'm looking at the WxRichTextCtrl buttons on: >http://docs.wxwidgets.org/stable/wx_wxrichtextctrloverview.html >and wondering how to implement them. >Does anyone know where the code is? Thanks to the C++ wx-users group for this: it's in the wxWidgets distribution,

Wx::RichTextHTMLHandler->LoadFile

2010-01-10 Thread Steve Cookson
Hi Guys, Still trying to load from an XML or HTML file. Here I have 2 pieces of code: 1 (see below) is the Perl file with Wx::RichTextHTMLHandler->LoadFile 2 (see below) is the HTML file I am trying to load (created by ->SaveFile) The relevant piece of code is: my $HTML_handler = Wx::R

RE: :RichTextHTMLHandler->LoadFile

2010-01-14 Thread Steve Cookson
Hi Guys, Well here's my answer (thanks to an anonymous monk on perlmonks for pointing me to the C++ code). Any comments welcome as always: $HTMLHandler->LoadFile has continued to resist my attempts to make it work. $XMLHandler->LoadFile will work like this: my $XML_handler = Wx::RichTe

Updated WxPerl Wiki for WxRichTextCtrl

2010-01-16 Thread Steve Cookson
Hi all, WxRichTextCtrl is quite a complex control with a lot of different methods and properties. It took me quite a while to get any familiarity with it at all. I've put some of my test code on the wiki at: http://wxperl.pvoice.org/w/index.php/WxRichTextCtrl It's not complete, so any additi

unable to resolve overloaded method for "Wx::RichTextCtrl::WriteImage"

2010-01-26 Thread Steve . Cookson
Hi All, I'm getting "unable to resolve overloaded method for "Wx::RichTextCtrl::WriteImage" at /home/steve/Documents/Endoscopia/RichText_Editor.pl line 506"  from code: sub on_click_insert_image{     my ($i_frame, $event) = @_;     my $file = Wx::FileSelector('Choose a media file');       

wxPerl-0.26-samples in Linux

2010-03-25 Thread Steve Cookson
Is Wx::Demo supposed to work under Linux? It looks very different from the Windows version and although the 'make' went OK, the 'make test' gave me hundreds of errors. However it does run. However on Windows it has three tabs in the left-hand pane, whereas on Linux it only has one. There are a

Getting data into wxPrintPreview

2010-03-30 Thread Steve Cookson
Hi Guys, Its not at all clear to me how to get data into Wx::PrintPreview (and I expect Print too, when I get to that), I have pulled what I can out of the Wx::Demo and I have constructed an event-handler as follows: sub on_click_richtext_preview { my( $this, $event ) = @_;

RE: wxPerl-0.26-samples in Linux

2010-03-31 Thread Steve Cookson
amount of errors from CPAN, and I was pleasantly surprised when it worked. Regards Steve -Original Message- From: Gabor Szabo [mailto:szab...@gmail.com] Sent: 31 March 2010 05:43 To: Steve Cookson Cc: wxperl-users@perl.org Subject: Re: wxPerl-0.26-samples in Linux On Thu, Mar 25, 2010

RE: wxPerl-0.26-samples in Linux

2010-03-31 Thread Steve Cookson
Actually, I just noticed I get it on Windows too, but I get three tabs and Wx::Locale works properly. The full Windows message is: 17:34:12: Warning: Skipping module 'Wx::DemoModules::wxHVScrolledWindow' 17:34:12: Warning: Base class package "Wx::PlHVScrolledWindow" is empty. 17:34:12: Warning:

  1   2   3   4   5   >