TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: Doublebogey on December 01, 2003, 02:37:49 AM

Title: Different profiles,cradle and battery
Post by: Doublebogey on December 01, 2003, 02:37:49 AM
Idea (or wish) No#1

Todayplus can tell the difference between being in a cradle and running on battery, via battery charging indicator.
So therefore, is there a way to show two different profiles of a skin.
ie. when in the cradle and charging I would like to see the weather, news and agenda. but when on battery I would like to only see the agenda and battery meter.
is it possible to 'automatically' switch between the two so I dont have to tap small icons each time.


Sounds lazy, but theres no shortage of lazy people out here.

dB
Title: Very nice
Post by: Alf on December 01, 2003, 09:10:16 AM
That's a very good idea : auto-adaptative skins !  :P

QuoteSounds lazy, but theres no shortage of lazy people out here.
Only lazy people can be effective when it comes to avoid effort  :lol:
Title: Different profiles,cradle and battery
Post by: arbitrajeu on December 01, 2003, 10:08:32 AM
I don't have an instant answer on this, but would like to invoke discussion on how it might be achieved.

My immediate thought it that is should be possible.  We can use the if,externalpower command to determine whether we are on power, so should be able to selectively display things.  However, I can't work out how I would use that if statement to turn regions on and off, as this behaviour can only be associated with a button (and now with a poweron, since 0.10.2).

So, options appear to be to link it to poweron (detect external power and enable regions appropriately, assuming poweron commands observe if statements, which needs to be tested) or have a single button which can be pressed which toggles the state (which I know isn't what Doublebogey wanted).

Anyone see something I am missing?
Title: Different profiles,cradle and battery
Post by: srs on December 01, 2003, 10:32:37 AM
you could probably enclose the skin in a region that updates at 60 sec intervals, and at the very top check for external power, and if so, use the jumpregion command to setup the state.
Title: Different profiles,cradle and battery
Post by: arbitrajeu on December 01, 2003, 10:50:15 AM
Quote from: srsyou could probably enclose the skin in a region that updates at 60 sec intervals, and at the very top check for external power, and if so, use the jumpregion command to setup the state.
Ah yes, that'll teach me not to download fishboy's latest reference - I'd forgotten about the jumpregion command, although it's description doesn't instantly indicate it's what I need.  Perhaps I'll get a chance to play with this on the train on the way home today...