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 detail. If you set the style flag 
wxDP_ALLOWNONE (as the wxperl_demo does ) then you will get the check 
box in Windows. There has to be a way for you to indicate 'no date' and 
using the native Windows control this would seem to be the only way.

On Linux, the control used there allows you to edit the date directly so 
you can simply delete the date and have an empty box to indicate no date.

It seems a bit of a clunky interface to me, but that's how it is 
implemented. If I had a reason to collect user input and a date field 
were optional, I think I'd use an entirely separate check box to 
indicate whether a date was included and enable/ disable a calnedar ctrl 
from that.

Hope it helps.

Mark

On 02/04/2013 13:49, Steve Cookson wrote:
> Hi Guys,
>
> My Wx::DatePickerCtrl is displaying a select tickbox next to it under
> Windows.  Is this Normal?  I don't get it under Linux and I don't recall
> having it under windows before.
>
> Do you guys have it?
>
> It's easily reproducible in wxperl_demo.pl under Wx::DatePickerCtrl
>
> I get a control like this:
>
> X dd/mm/yyyy
>
> Where the 'X' is a tickbox.
>
> What do you think?
>
> Regards
>
> Steve
>

Reply via email to