>   I want to display power status of battery in main window of 
> my target
> board
>    Example - battery is fully charged or battery down
>    In mobile phone how they display status of battery in main window
>    In fltk provide any API to get power status of battery


Fltk doesn't provide a battery API - fltk really concentrates on the GUI
widgets.

It's easy enough to make your own, but you need to provide a little
platform specific code to query the battery state from the host, then
just use a Fl_Progress bar or similar to display the state.

Getting the battery state is pretty easy, at least on linux, as it is
availabe in /proc on most systems these days (certainly is on my
laptop.)
I assume that win32 and OSX provide some simple API for querying that
info from the host.





SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to