was
having.
Have a good weekend all.
Regards
Steve
-Original Message-
From: Mark Dootson [mailto:mark.doot...@znix.com]
Sent: 09 October 2010 00:34
To: Steve Cookson
Cc: wxperl-users@perl.org
Subject: Re: Empty Wx::DatePickerCtrl
Hi,
Checked out how this works across wxMSW, wxGTK
On 9.10.2010 3:08, Mark Dootson wrote:
Hi,
Wx::DateTime-new() gives you the same as wxDefaultDateTime or
wxInvalidDateTime, not the current datetime.
What happens when you pass this to Wx::DatePickerCtrl is defined in
the docs.
i.e. Wx::DatePickerCtrl will convert to the current
Hi Mark,
Well it works very nicely. I don't quite understand why you need to specify
Wx::DateTime-new() as the default and then do a SetValue(
Wx::DateTime-new()). It seems redundant. But you are quite right, it
doesn't work without the second one.
Have a good day.
Regards
Steve
Hi Guys,
I'd like to create an empty DatePickerCtrl which I understand I have to do
with wxDefaultDateTime and wxDP_ALLOW_NONE.
I see that wxDefaultDateTime is not exported. What is this? Is there some
sort of anonymous array or hash I could pass instead of wxDefaultDateTime?
Regards
Steve
Hi,
Wx::DateTime-new() will give you a default time - so:
my $dpick = Wx::DatePickerCtrl-new(
$parent,
-1,
Wx::DateTime-new(),
wxDefaultPosition,
wxDefaultSize,
wxDP_ALLOWNONE
);
Regards
Mark
On 09/10/2010 00:32, Steve Cookson wrote:
Hi Guys,
I'd like to create
On 9.10.2010 1:54, Mark Dootson wrote:
Hi,
Wx::DateTime-new() will give you a default time - so:
That will give a today's date, not empty one which he wants. I don't
knwo whether that is possible?
I also ended up using Wx::DateTime-new()
Hi,
Wx::DateTime-new() gives you the same as wxDefaultDateTime or
wxInvalidDateTime, not the current datetime.
What happens when you pass this to Wx::DatePickerCtrl is defined in the
docs.
i.e. Wx::DatePickerCtrl will convert to the current datetime.
However, if you pass style
Hi,
Checked out how this works across wxMSW, wxGTK and wxMAC.
The following does what you want on all platforms:
my $dpick = Wx::DatePickerCtrl-new(
$parent,
-1,
Wx::DateTime-new(),
wxDefaultPosition,
wxDefaultSize,
wxDP_ALLOWNONE
);
my $date = Wx::DateTime-new();