Thank you for your response. First I have found out SelectOneTime API,
second I tried to
use exactly  the preference time setup. three push button, two up and
down arrow.  

Steve




-----Original Message-----
From: David Fedor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 08, 2000 12:07 PM
To: Palm Developer Forum
Subject: Re: Preference Set Time Source Code?


>Can you tell me where I can get the PALM OS preference set time source
>codes?

It isn't terribly complicated; it is just this:


DateTimeType    thisDay;

TimSecondsToDateTime(TimGetSeconds(), &thisDay);
if (SelectOneTime(&thisDay.hour,&thisDay.minute,NULL)) // use default
title
"Set Time"
{
   thisDay.second = 0;  // set seconds to zero when setting time
   TimSetSeconds(TimDateTimeToSeconds(&thisDay));
}


-David Fedor
Palm Developer Support



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to