boat73 has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to find a calendar/date-time function for Win32::GUI that will allow a user to select a date and time. I have use TK::DateEntry before but am not seeing anythingv like that for Win32::GUI. Could anyone point me in the right direction? Thanks in advance

Replies are listed 'Best First'.
Re: calendar browser for win32::GUI
by JSchmitz (Canon) on Sep 13, 2004 at 18:20 UTC
      Perfect, don't know how I missed it. Thanks much
        Spoke to soon. This is perfect for the date but I don't see a way to have it also allow selection of the time. Any help is appreciated.
Re: calendar browser for win32::GUI
by bsdz (Friar) on Sep 13, 2004 at 22:21 UTC
    This is very simple using the Change event together with the GetDate method, an example in Win32::GUI::XMLBuilder is :-
    <GUI> <Window name='W' dim='0, 20, 200, 80' title='DateTime demo' > <DateTime height='$self->{W}->ScaleHeight/2' onChange='sub { $self->{L}->Text(join(":", $_[0]->GetDate())) }' /> <Label name='L' text='change date' height='$self->{W}->ScaleHeight/2' top='$self->{W}->ScaleHeight/2' /> </Window> </GUI>
    These questions are best directed to the Win32::GUI mailing list.