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,

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

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

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 Blank Bkgrd.gif

RE: Documentation - again

2009-08-07 Thread Steve Cookson
] Sent: 07 August 2009 12:19 To: Roode, Eric; wxperl-users@perl.org Subject: Re: Documentation - again Hi, On Friday, 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

RE: Destructors

2009-08-07 Thread Steve Cookson
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: Hi Guys, Does anyone know what

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...@sca-uk.com] Sent: 07 August 2009 14:31

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
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] Sent: 10 August 2009 11:24

RE: Distinguishing between event types

2009-08-10 Thread Steve Cookson
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-users@perl.org Cc: Steve Cookson Subject: Re: Distinguishing

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}, I

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
to get hold of the actual object 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

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
:27 To: wxperl-users@perl.org Subject: Re: wxGlade Generated Code Steve Cookson steve.cook...@sca-uk.com writes: However on the Glade code, while I wrote my whole prototype In Glade, and I wouldn't have progressed as fast as I have without it, I don't like its programmatic structure

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: 'wxperl-users

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

RE: wxGlade Generated Code

2009-08-14 Thread Steve Cookson
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 also trigger it. How can I filter out alt-tab etc? I

RE: wxGlade Generated Code

2009-08-15 Thread Steve Cookson
[mailto:jvrom...@squirrel.nl] Sent: 15 August 2009 14:16 To: Steve Cookson Subject: Re: wxGlade Generated Code Steve Cookson steve.cook...@sca-uk.com 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 control

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 Blank Bkgrd.gif

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 at 12

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 Blank Bkgrd.gif

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@perl.org' Subject

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 wrong

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
[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 OK first question. When you mention stepping through my

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

RE: Getting back out of a dialog box.

2009-08-19 Thread Steve Cookson
[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 steve.cook...@sca-uk.com writes: If I put in and event filter to update the database, then OK doesn't close the Dialog box. If I don't put in an event then I

RE: Getting back out of a dialog box.

2009-08-19 Thread Steve Cookson
, 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] Sent: 19 August 2009 08

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

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
, again. Steve Cookson steve.cook...@sca-uk.com 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 { event_handler_sub

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 *

RE: Data dictionaries.

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

RE: Data dictionaries.

2009-08-23 Thread Steve Cookson
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 dictionaries. Hi Steve, have you tried to use XRC

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

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

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-users

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 Blank Bkgrd.gif

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
); $frame_1-Show(1); $app-MainLoop(); } Regards Steve _ From: Steve Cookson [mailto:steve.cook...@sca-uk.com] Sent: 08 September 2009 14:42 To: wxperl-users@perl.org Subject: wxSashWindows Hi, Has anyone managed to get wxSashWindows to work? I managed to find

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 steve.cook...@sca

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 Blank Bkgrd.gif

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 example

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: Re: Wx

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

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: -

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 steve.cook...@sca-uk.com writes: -my $item = $self-{Ctl_Sizer_3}-GetItem()-$self-{Ctl_Post_Exam_Videos_Sizer_6_.$gl _edit_mode}; GetItem requires 1 argument: the thing you're

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

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

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

::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 Blank Bkgrd.gif

RE: FW: HtmlHelpController

2009-09-24 Thread Steve Cookson
. Also make sure if using WinRAR, that you use ZIP compression and not RAR compression, both of these will give you the error message invalid zip file. Regards Steve -Original Message- From: Mattia Barbon [mailto:mattia.bar...@libero.it] Sent: 24 September 2009 16:52 To: Steve Cookson Cc

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 Blank Bkgrd.gif

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

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@perl.org

$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 have

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

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

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

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

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

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. I'd

RE: wxRichTextCtrl

2010-01-06 Thread Steve Cookson
-{rich_text_ctrl_1}-SetBuffer($buffer); Regards Steve -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

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 Blank Bkgrd.gif

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 Blank Bkgrd.gif

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, output.htm) or die cant open output file: $!; 55 my $buffer = ; 56 $HTML_handler-LoadFile ($buffer, $fh); 57

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 =

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 =

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

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: Getting data into wxPrintPreview

2010-04-02 Thread Steve Cookson
Hi Jeff, Yes, I think it's the same code. Mine is: http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/src/richtext/richtextprin t.cpp?view=markup Which is a bit we easier to read. So far I've done nothing except convert and modify the C++ wxRTC editor into wxPerl which edits and creates an

Converting wxRTCPrinting for accessing from Perl.

2010-04-05 Thread Steve Cookson
Hi Guys, I'm about to embark on converting richtextprint.cpp (706 lines of C++ with light commenting) so that I can access it from Perl and print wxRTCs. Can I ask your suggestions as to the easiest way? There seem to be four main routes: - rewrite entirely in Perl (for me, this is the least

RE: Converting wxRTCPrinting for accessing from Perl.

2010-04-06 Thread Steve Cookson
Hi Steffen, Compelling argument. I'll stop wasting time with Inline. Regards Steve -Original Message- From: Steffen Mueller [mailto:smuel...@cpan.org] Sent: 06 April 2010 04:52 To: Steve Cookson Cc: wxperl-users@perl.org Subject: Re: Converting wxRTCPrinting for accessing from Perl

How to add a new module to Wx

2010-04-08 Thread Steve Cookson
Hi People, I'm not sure whether I should be sending this to the group or directly to Mattia, but I'm trying to understand how to print a wxRichTextCtrl from wxPerl. I understand that wxRichTextPrinting and wxRichTextPrintout are not implemented yet in wxPerl. So I need to do something to access

RE: How to add a new module to Wx

2010-04-14 Thread Steve Cookson
] Sent: 13 April 2010 14:03 To: wxperl-users@perl.org Cc: Mattia Barbon mattia.bar...@libero.it; Steve Cookson Subject: Re: How to add a new module to Wx Hi, I thought I'd chip in with a populated template for Steve to test. However, basic testing here brought up a problem. wxRichTextPrinting has

RE: How to add a new module to Wx

2010-04-14 Thread Steve Cookson
. Regards Steve -Original Message- From: Mark Dootson [mailto:mark.doot...@znix.com] Sent: 14 April 2010 17:44 To: Steve Cookson Cc: wxPerl users Subject: Re: How to add a new module to Wx Hi, If you have a working Perl + compiler combination, then the standard stuff should work

RE: How to add a new module to Wx

2010-04-16 Thread Steve Cookson
Hi Mark and Mattia, First, a big thank you to both of you, Mark for the wrapping and Mattia for surreptitiously updating it into the RichText demo. I had similar difficulties to Alexander with updating the wxPerl, and so I uninstalled Perl 5.8 and installed 5.10 and then reinstalled wx. I

RE: How to add a new module to Wx

2010-04-20 Thread Steve Cookson
I don't have full access to everything on Windows, so I need to continue my testing on Linux. OK, now I'm on Linux and I've tried to install from CPAN, I have some errors and 97.01 won't install. Sorry about the length of the dump, but there are some errors at the beginning and at the end. The

RE: How to add a new module to Wx

2010-04-22 Thread Steve Cookson
Hi Mattia, Thanks very much for that. It worked perfectly. I don't know whether it's because I'm on Kubuntu, or just that my directory structure is different, but the steps I used were: $ sudo -s $ [password] $ svn co https://wxperl.svn.sourceforge.net/svnroot/wxperl/wxPerl/trunk # Upper case

RichText Printing Headers and Footers.

2010-05-05 Thread Steve Cookson
Hi, I'd like to include images in my RichText Printing Headers and Footers. I assume that I can over-ride the OnPrintPage function, so I've done this: Wx::RichTextPrintout::OnPrintPage{ my ($self, $page) = @_; my $dc = self-GetDC(); if ($dc){ if (HasPage($page))

RE: RichText Printing Headers and Footers.

2010-05-05 Thread Steve Cookson
OK, so I think I didn't get that quite right. I've added a separate package name and a 'use base', but it says the base is not found. So now the code is: package Wx::RichTextPrintout; use Wx qw(:everything); use base qw(Wx); sub OnPrintPage{ my ($self, $page) = @_;

RE: RichText Printing Headers and Footers.

2010-05-06 Thread Steve Cookson
Hi Mark, Thanks for this. Well, maybe I'll rewrite it in Perl. If I do, I'll let you know. Regards Steve PS Thanks for the OO tip.

Wrapping modules

2010-05-10 Thread Steve Cookson
Hi Guys, I've been looking at what you need to do to Wrap a module (Eg RichTextPrinting) to take a recent example. Is there a step-by-step guide anywhere? If I get a chance I'd like to experiment with a module. Regards Steve Blank Bkgrd.gif

RE: Wrapping modules

2010-05-28 Thread Steve Cookson
There is a partial guide in lib/Wx/NewClass.pod (waiting for your feedback to be improved ;-) Hi Mattia, Sorry this turned out to be so long! Well first of all, after having put this off for a long time, I've taken the plunge. So I'm starting to give this NewClass.pod some attention by trying

RE: Wrapping modules - UPDATE, please ignore last post).

2010-05-28 Thread Steve Cookson
There is a partial guide in lib/Wx/NewClass.pod (waiting for your feedback to be improved ;-) Hi Mattia, Sorry this turned out to be so long! Well first of all, after having put this off for a long time, I've taken the plunge. So I'm starting to give this NewClass.pod some attention by trying

RE: Wrapping modules

2010-06-02 Thread Steve Cookson
Hi Mattia, Well here it is. I'm running under Kubuntu 9.10. In the end I decided just to add the printout class to Mark's existing work on RTPrinting and I hi-jacked RichTextPrinting.xsp. I update the constructor from the line in RichTextPrint.h and also copied the method lines while deleting

Wrapping wxRichTextPrintout

2010-06-04 Thread Steve Cookson
Hi, I'm beginning to think maybe I've misunderstood the point of virtual functions and wrapping wxRichTextPrintout. I'm trying to put a bitmap header and footer onto each page 1 has a different page number from other pages, so I thought if I wrapped wxRichTextPrintout, since it is inherited

RE: Alternative event handling

2010-06-16 Thread Steve Cookson
Hi Mattia, I'm very pleased to see you are still developing wxPerl. I'm not sure I need this event handler at the moment, or I'd offer to participate in testing. wxPerl is a great tool and really I'd like to see a larger community of wxPerl users and developers using it. It would give other

Wx::MediaCtrl crashes at end of video.

2010-08-03 Thread Steve Cookson
Hi Guys, If I use Wx::MediaCtrl -Play() under windows, the file plays perfectly. If I do it under Kubuntu, the toolbar does not work and the video crashes at the end of the play. You can see this for yourself under examples. If you choose the standard sample application with wxPerl and choose

RE: List of wxPerl applications

2010-08-10 Thread Steve Cookson
I agree with all the suggestions made on this list. - New apps - Updated doc - Autopost of code Etc. But I also think it would be nice to update the two frontpages more regularly, both the Wiki frontpage and the sourcefourge page. The thing that put me off when deciding to use wxPerl was how

RE: Wrapping modules

2010-08-12 Thread Steve Cookson
Mattia Barbon wrote: I haven't looked at the files, but you must always re-run the top-level Makefile.PL, not the ones in subdirectories. Well after a long break fixing other problems, I got back to wrapping RichTextPrintout. I decided on a change of tack. Instead of creating a new

RE: Wrapping modules

2010-08-14 Thread Steve Cookson
a good weekend, and thanks for the email. Regards Steve -Original Message- From: Mattia Barbon [mailto:mattia.bar...@libero.it] Sent: 14 August 2010 07:24 To: Steve Cookson Cc: wxperl-users@perl.org Subject: Re: Wrapping modules Steve Cookson wrote: Hi, Mattia Barbon wrote

RE: Wrapping modules

2010-08-15 Thread Steve Cookson
Hi Mattia and Mark, Well amazingly, it seems to have worked. Richtext is working as before and I now just need to write a few tests to test the new functions. I'll let you know how it goes. Thank you so much for your support. Regards Steve

  1   2   3   4   >