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
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,
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
-{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
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
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
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
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
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
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
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
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
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
Hi People,
Does anyone know where I can find some example wxConfig code?
Many thanks in advance.
Regards
Steve
Blank Bkgrd.gif
. 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
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
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
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
[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
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
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:
-
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
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
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
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
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
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
);
$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
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
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, '',
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
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
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
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
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
*
-
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
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
[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
, 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
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
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
, 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
Hi Guys,
Are there some instructions on how to add a new page to this Wiki?
Regards
Steve
Blank Bkgrd.gif
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
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.
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
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
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
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)
[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
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
[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
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
: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
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
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
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
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
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
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
]
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
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
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
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,
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
301 - 365 of 365 matches
Mail list logo