Hi,
use Wx qw( :everything);
use Wx::Calendar;
$this->{releaseDate} = Wx::DatePickerCtrl->new($panel, -1, Wx::DateTime->new()
, wxDefaultPosition, wxDefaultSize, wxDP_DROPDOWN);
Regards
Mark
Peter Wilson wrote:
> Hi
>
> Can anyone help, how can I pass a style to the datepicker I have
>
> $this->{releaseDate} = Wx::DatePickerCtrl->new( $panel, -1 );
>
> Which shows the date and some spinners however I would like a drop down
> calendar , but when I try and pass it a style to have a dropdown
> (wxDP_DROPDOWN) it fails. I am using ms windows xp, perl v5.8.2 and Wx
> [0.73.1.14].
>
> Many thanks
>
> Peter
>
> For info I have tried.
>
> $this->{releaseDate} = Wx::DatePickerCtrl->new( $panel, -1, , , ,
> wxDP_DROPDOWN );
>
> And it fails telling me this:
>
> the invocant must be a reference at ... <the line of code above>
>