RE: Getting information from EVT_LIST_ITEM_RIGHT_CLICK

2013-02-05 Thread steveco.1959
Hi Mark, Thanks very much for this. This event structure looks intuitively right. I need to work out how to implement it. There is no intention that the second click of a double should negate a preceding single click. A double click is a more forceful single click, or if you like, the click

RE: Vaiidators

2013-02-12 Thread steveco.1959
Hi James, I want to enter a time of day value such as ##:## and ensure the colon was entered. I'd live to hear if you manage to do this. 2. I have tried a number of regex strings: (\d+) allows entry of numbers (:) allows entry of colons (\d+:)

RE: Modality and new windows

2013-02-14 Thread steveco.1959
Hi Dave, So if I have a dialog invoked with ShowModal() and an event comes along that wants to create a new frame, how can I enable the new frame to receive events? I've never had a problem with this. I have dialogues within dialogues within dialogues, maybe seven or eight layers deep.

RE: wiki ?

2013-02-14 Thread steveco.1959
Yes, down for me too. -Original Message- From: Erik Colson [mailto:e...@ecocode.net] Sent: 14 February 2013 06:50 To: wxperl-users@perl.org Subject: wiki ? Hi, Following the title on #wxperl (irc), the wiki should be at wiki.wxperl.nl. However that doesn't seem to work on my laptop..

RE: Modality and new windows

2013-02-14 Thread steveco.1959
Hi Dave, There is Wx::ComboCtrl (http://docs.wxwidgets.org/2.8.12/wx_wxcomboctrl.html#wxcomboctrl) with Wx::ComboPopup (http://docs.wxwidgets.org/2.8.12/wx_wxcombopopup.html#wxcombopopup) Which gives you a custom pop-up window for what is essentially a ComboBox. I'm pretty sure it's in the

RE: Vaiidators

2013-02-15 Thread steveco.1959
Hi James, Here's what I have working for a custom dialog with a text validator. Probably a cleaner way to do some of it, but one step at a time. :) It's cool, sadly, I don't think you can do any more with validator. You should be able to do most of your layout with sizers. I'm afraid they

RE: Modality and new windows

2013-02-18 Thread steveco.1959
Hi Dave, On 02/15/13 20:59, Mark Dootson wrote: On 15/02/2013 19:59, Dave Hayes wrote: 1) Apparently Wx::ComboCtrl does not respect or use wxTE_PROCESS_TAB. Why? That's a decision of wxWidgets designers / maintainers. It seems sensible to me as a combo box that captures tab key presses

RE: Modality and new windows

2013-02-18 Thread steveco.1959
The key event I use is EVT_TEXT. (Maybe I should use EVT_CHAR? Anyone?) In the case of autocompletion, I'd say EVT_CHAR is the best choice. You want to deal interactively with user input, not with programmatic changes of the field contents. Hi Johan, Ok, I've just tried this. EVT_CHAR seems

RE: Modality and new windows

2013-02-18 Thread steveco.1959
In the case of autocompletion, I'd say EVT_CHAR is the best choice. You want to deal interactively with user input, not with programmatic changes of the field contents. Actually, thinking more about it, if I press the clear button, I *do* want the field to reset programmatically, so maybe

RE: Modality and new windows

2013-02-18 Thread steveco.1959
Hi Johan, Au contraire... This is from one of my OnChar handlers: Oh crikey! Well I think EVT_TEXT is the one for me. Really I wouldn't call myself a programmer's programmer, more of a functional programmer. I like my stuff to look good and work well, but I think I'd really have to stop and

RE: Does wxTextCtrl have a limit of 233639 chars under GTK?

2013-02-18 Thread steveco.1959
Hi Ian, If nobody knows the answer, I suggest you try: wx-us...@googlegroups.com Regards Steve. -Original Message- From: Ian Macdonald [mailto:ickp...@gmail.com] Sent: 17 February 2013 22:39 To: wxperl-users@perl.org Subject: Does wxTextCtrl have a limit of 233639 chars

RE: rowcall for installation info

2013-03-18 Thread steveco.1959
Hi Johan, 1. Use CitrusPerl Do you use Citrus Perl on Linux too? I don't because there is already a Perl there. So I use a manual install on Linux, but Citrus on Windows. So Linux is where I use tricks and stuff. More to come on this. Regards Steve.

RE: rowcall for installation info

2013-03-18 Thread steveco.1959
Rule of thumb is to let system Perl be for the system components that use Perl, and use it only for trivial things. For anything else, use your own Perl. So how do you call it? If perl foo.pl calls the system perl, how do you call Citrus? Do you rename it, or give a fully resolved path

RE: rowcall for installation info

2013-03-19 Thread steveco.1959
You can use the standard build tools from Citrus. On Windows, you'll need to install Mingcc; this is easily accomplished by using citrusutils. Thanks, Johan, Ok, I'll have a go today. If it paves the way for Cava Packager, it would make life much easier. Regards Steve

RE: Wx::DatePickerCtrl display issue.

2013-04-02 Thread steveco.1959
Hi Mark, Thanks for that. I'll put it down under 'user training'! Regards Steve -Original Message- From: Mark Dootson [mailto:mark.doot...@znix.com] Sent: 02 April 2013 10:36 To: wxperl-users@perl.org Subject: Re: Wx::DatePickerCtrl display issue. Hi, This is just an implementation

RE: use Wx 0.15 qw[:allclasses]; etc

2013-04-03 Thread steveco.1959
So in fact there are two separate name spaces, not two hierarchical ones. It's not: { use Wx 0.15 qw[:allclasses]; use strict; { package appointments; use Wx qw[:everything]; use base qw(Wx::Dialog); use strict; } } Really, it's

RE: ComboBox and utf8

2013-04-28 Thread steveco.1959
Oops, forgot to copy list: Well from my own experience decoding and display are not always consistent. You MUST use a decode function before you display any utf8, whether it displays right or not, otherwise will have problems on other platforms. Eg when I ported from Linux to Windows, some utf8

RE: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-04-29 Thread steveco.1959
Solution - your conversion of external data should be my $string = decode($encoding, $binary); utf8::upgrade($string); This should be platform independent and work - always. Perl's string functions should all work OK on $string. So you are saying that if I change $var =

RE: Can we print UTF-8 chars in Wx::TextCtrl fields?

2013-05-01 Thread steveco.1959
Hi Guys, Well, this morning I'm inclined to agree that this ought to be the case. At least for: $orig = readline($datafile); $line = decode( 'UTF-8', $orig ); $w = Wx::StaticText-new( ... ); $w-SetLabel($line); On the other hand I'm reluctant to introduce something that I'm certain

RE: How to find the event type in wxPerl?

2013-05-25 Thread steveco.1959
Eg if ($event-GetEventType == wxEVT_COMMAND_BUTTON_CLICKED) { Do some stuff. } _ From: Helen Craigman [mailto:ga0...@gmail.com] Sent: 25 May 2013 17:55 To: wxperl-users Subject: How to find the event type in wxPerl? Dear wxPerl experts In wxPython, you can find an event type

RE: Wx::Notebook drag and drop freezes tab in Linux.

2013-06-17 Thread steveco.1959
Hi Mark, I've tested wxWidgets 2.9.4 and wxWidgets 2.8.12 on Fedora 17 32 bit. I'm Kubuntu 12.04.LTS, 2.8.11 Hmm... Can't see the wxPerl version number. How do I retrieve it? Thanks Steve On 11/06/2013 15:01, Steve Cookson wrote: Hi Guys, We've got a little glitch here which at first