For the record, the best way to modify the auto-off duration is by using the
SysSetAutoOffTime function. To turn it off while your program is running, do
the following:
[code]
// global variable
UInt16 uOldAutoOffTime;
static Err AppStart(void)
{
uOldAutoOffTime = SysSetAutoOffTime(0);
FrmGotoForm(MainForm);
return errNone;
}
static void AppStop(void)
{
SysSetAutoOffTime(uOldAutoOffTime);
// Close all the open forms.
FrmCloseAllForms();
}
[/code]
----- Original Message ----
From: Christian Giordano <[EMAIL PROTECTED]>
To: Palm Developer Forum <[email protected]>
Sent: Monday, May 21, 2007 3:39:39 PM
Subject: Re: Modifying/ignoring Auto-off length
don't worry guys, the user wants to let the app playing.
EvtResetAutoOffTimer seems to work perfectly.
Thanks to all, chr
On 5/20/07, Roger Stringer <[EMAIL PROTECTED]> wrote:
> At 04:15 AM 5/20/2007, you wrote:
> >Subject: Modifying/ignoring Auto-off length
> >From: "Christian Giordano" <[EMAIL PROTECTED]>
> >Date: Sat, 19 May 2007 19:53:07 +0100
> >X-Message-Number: 4
> >
> >The application I made generates graphic and the user doesn't
> >necessary interact with it, after 30 sec (the default auto-off length)
> >the screen turns off. Of course it could be enough to modify to
> >auto-off length to its maximum 3 minutes to enjoy more, but what if I
> >would like to keep the auto-off as default.
>
> Just periodically keep resetting the auto-off. I presume you are
> displaying something to re-assure the user?
>
>
> Roger Stringer
> Marietta Systems, Inc. (www.rf-tp.com)
>
>
> --
> For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>
--
___________________________________________________________________
{ Christian Giordano's site and blog @ http://nuthinking.com }
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/