Yes there is ....
try please something like:
UInt8 percentP;
UInt16 voltage = SysBatteryInfo (false, NULL, NULL, NULL, NULL, NULL,
&percentP);
RectangleType rect;
rect.topLeft.x = 93;
rect.topLeft.y = 91;
rect.extent.x = 60;
rect.extent.y = 9;
m_prgBar.Create( rect, simple3DFrame );
m_prgBar.Init( 0, 60, 1, 0);
UInt32 lPos = ((60 * percentP) % 100 == 0) ? (60 * percentP) / 100 : (60 *
percentP) / 100 + 1;
m_prgBar.SetPos( lPos );
I did this and it worked.
Ciornei Mihai - Bogdan,
Analyst programmer
TRANSART ltd (www.transart.ro)
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Charles
Garcia-Tobin
Sent: Wednesday, December 17, 2003 12:25
To: Palm Developer Forum
Subject: Displaying battery status
Hi there
Is there a way for my app to display the battery status
indicator like the applaucher app?
Cheers
Charles
/////////////////////////////////////////
// Charles Garc�a-Tobin ""-.
// /[] _ _\
// Software and _|_o_LII|_
// Firmware engineer / | ==== | \
// |_| ==== |_|
// ||" || ||
// ||LI o ||
// ||'----'||
// Firm Designs Ltd /__| |__\
/////////////////////////////////////////
--
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/