Hey Richard,

The SysBatteryInfo() just returns a percentage back to you...if you want to
use the icon like one you see on the Palm display you will have to use a
gadget.  These gadgets are device specific so try to find it in
documentation for the device.  They update automatically so you don't have
to worry about looping back to update it.  You must put the gadget into the
form where you want it to be placed.  I used a Resource Construtor that came
with my SDK which does it visually.  Then you must set that object to point
to a sort of gadget you get from the makers.  I can't remember the specifics
right now.  I'll keep you posted. You must get it from the maker of your
device!


<[EMAIL PROTECTED]> wrote in message
news:88594@palm-dev-forum...
>
> I was just asking in general. I can write my own code to do it without any
> problems. Just thought you might be able to use the palm one and save a
bit
> of effort. Do you know how the relationship between the info returned from
> SysBattInfo (percentage) and the Palm Battery indicator, as I would like
my
> app to have the same levels.
>
> Cheers,
>
> Rik Anderson
>
> -----Original Message-----
> From: Dave Lippincott [mailto:[EMAIL PROTECTED]]
> Sent: 10 June 2002 19:10
> To: Palm Developer Forum
> Subject: Re: Battery Level Indicator
>
>
> AFAIK there is not a control or 'standard' battery level indicator.  The
> apps that have one draw it themselves.    Did you have a particular code
> segment in mind you wanted permission to use or just asking in general?
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> Sent: Monday, June 10, 2002 11:40 AM
> Subject: Battery Level Indicator
>
>
> > Hi,
> >
> > Can I use the standard palm battery level indicator in my application ?
I
> > want to add it to most of my screens.
> >
> > Thanks,
> >
> > Regards,
> >
> > Richard Anderson
> > Software Engineer
> > Radiodetection - An SPX company
> >
> >
> >
> > --
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to