whups -- you already have the SDK docs, if you purchased CodeWarrior.  from
your Start menu, choose Start -> Programs -> Metrowerks CodeWarrior ->
CodeWarrior Reference Web Site, and then click on "Programming Resources",
and then click on Palm OS Docs.  you need to have Adobe Acrobat installed to
read them, but i think CW installs that.  if not, then i believe it's on
your CW CD and you can install it from there.


----- Original Message -----
From: Chris Antos <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 29, 1999 12:18 PM
Subject: Re: How to show system date and time in the form?


> visit the Palm website (www.palm.com/devzone) and download the SDK
> documentation (it's free).
> also, the prototypes for all Field-related functions are in Field.h in
your
> Metrowerks\CodeWarrior\Palm OS Support\Incs\UI directory (the Palm headers
> are all under Incs\).  try reading the SDK docs, and look at the Field.h
> header file for info on how to use FldRedrawField.
>
>
> ----- Original Message -----
> From: Allen Yang <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 29, 1999 11:41 AM
> Subject: RE: How to show system date and time in the form?
>
>
> > Chris:
> > I can't find any help from "help" in CodeWarrior. Do you mind explain me
> how
> > to use it?
> >
> > -----Original Message-----
> > From: Chris Antos [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 29, 1999 2:34 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: How to show system date and time in the form?
> >
> >
> > you forgot to call FldRedrawField...
> >
> >
> > ----- Original Message -----
> > From: Allen Yang <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, July 29, 1999 8:27 AM
> > Subject: RE: How to show system date and time in the form?
> >
> >
> > > Elia:
> > > Thank you for your help.
> > > I tried to use the following code for getting date and time. However,
it
> > > wasn't work. Would you mind take a look, and help me out.
> > > FormPtr   form;
> > >   UInt       handled = 0;
> > >   UInt          index;
> > >   VoidHand      RecHandle;
> > >   Ptr           RecPointer;
> > > CharPtr   pString;
> > > Word error = 0;
> > > Err err = 0;
> > > SystemPreferencesType  sysPrefs;
> > > DateTimeType  dateTime;
> > >
> > >   form = FrmGetActiveForm();
> > >
> > >   switch (event->eType)
> > >   {
> > >     case frmOpenEvent:
> > >      FrmDrawForm(form);
> > >       handled = 1;
> > >   file://Get the time formats from the system preferences.
> > >   TimeFormat = sysPrefs.timeFormat;
> > >
> > >   file://Get the date formats from the system preferences
> > >   LongDateFormat = sysPrefs.longDateFormat;
> > >   ShortDateFormat = sysPrefs.dateFormat;
> > >
> > >   file://Get today's date
> > >   TimSecondsToDateTime (TimGetSeconds (), &dateTime);
> > >   Date.year = dateTime.year - firstYear;
> > >   Date.month = dateTime.month;
> > >   Date.day = dateTime.day;
> > >
> > >
> > > DateToAscii((Word)Date.year,(Byte)Date.month,(Byte)Date.day,pString);
> > >
> > >       // print the time to the PC time/date field
> > >       fieldptr_datetime_date = FrmGetObjectPtr(form,
> > > FrmGetObjectIndex(form, fieldID_datetime_date));
> > >       FldSetTextPtr(fieldptr_datetime_date, pString);
> > >       FldRecalculateField(fieldptr_datetime_date, true);
> > > Thank you, again
> > >
> > > Allen
> > >
> > > -----Original Message-----
> > > From: Elia Freedman [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, July 30, 1999 10:34 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: How to show system date and time in the form?
> > >
> > >
> > > Try calling the date and time conversion routines to a string, and
than
> > > displaying each in a label or on a field.
> > >
> > > Elia
> > >
> > > -----Original Message-----
> > > From: Allen Yang [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, July 29, 1999 7:04 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: How to show system date and time in the form?
> > >
> > >
> > > Hi,
> > > Anyone can show me how to show the system date and time in the form?
> > > I created a form. In the form, I need show the PC date and time in two
> > > different field. One is for time, and another one for date.  I don't
> know
> > > how to make this work?
> > >
> > > I will appreciated any help.
> > >
> > > allen
> > >
> > >
> > >
> >
> >
>

Reply via email to