TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: joelw135 on November 21, 2003, 01:49:42 PM

Title: Last update
Post by: joelw135 on November 21, 2003, 01:49:42 PM
I am using slider ver 10, I would like to have the time of the last update on my screen.  I tried putting it on the weather screen, but not enougth space.  Is there a way to put it directly below or above the weather without interfering with the launcher on the bottom or the access button bar above (Date Bar). Thanks in advance.
Title: Last update
Post by: Yogiman on November 21, 2003, 02:17:28 PM
Hi,

I'm using SLider v10 too. Do you mean something like this ?

(http://members.chello.nl/~o.ozturk/display_5.jpg)

This one's easy just, combine this section with your own.

//=================================================
// REGION 0 - PAGE 0
//   Date section
//  Dimensions: 240 x 20
//=================================================
   region,0,0,-1
   defregion,0,0,0,240,20,1
   offset,offset_-1,offset_-1   
   offsetadd,0,4   
   image,2,-1,clock-today.png,t
   changefont,tahoma,12,b
   time,18,0,0,5,ls,l,
   changefont,tahoma,11,   
   text,190,-4,Update: ,l
   text,206,6,[updatetime],c,l
   changefont,tahoma,11,b
   offsetadd,0,16
   endregion,0,0

//=================================================
// REGION 14 - PAGE 0
//   Button popup
//   Vars Used : 26
//=================================================
Title: Last update
Post by: joelw135 on November 21, 2003, 02:30:54 PM
Thanks, I added this to mine and it seems to fit:

display last update time for current location
changefont,tahoma,8,b
text,8,50,Updated,l,HH:mm
changefont,tahoma,8,

display last update time for current location
changefont,tahoma,8,b
text,38,50,[updatetime],l,HH:mm
changefont,tahoma,8,
Title: Last update
Post by: bbiederm on November 21, 2003, 03:50:21 PM
@Yogiman

Could you post your system part out of the skin file and attach the pics, too?

Thanks
Title: Last update
Post by: joelw135 on November 21, 2003, 05:12:56 PM
Here is the code, I have a screen shot but no place to post it. The time falls between Friday and Sat.

//=================================================
// REGION 0 - PAGE 0
//   Date section
//  Dimensions: 240 x 20
//=================================================
   region,0,0,-1
  defregion,0,0,0,240,20,2
  offset,offset_-1,offset_-1    
  offsetadd,0,4    
  image,5,-1,clock-today.png,t
  button,4,-2,18,18,0,4,1-highlight,0,14
  changefont,tahoma,14,b
  time,30,0,0,5,ls,l,
  offsetadd,0,16
  changefont,tahoma,11,    
  endregion,0,0


  region,0,1,-1
     defregion,0,0,0,240,20,2
     offset,offset_-1,offset_-1    
     offsetadd,0,4    
     image,5,-1,OwnerInfo.png,t
     button,4,-2,18,18,0,4,0-highlight,0,14
     changefont,tahoma,13,b
     text,30,0,%owner name%,l
     changefont,tahoma,12,
     text,130,1,%owner phone%,l
     offsetadd,0,16
     changefont,tahoma,11,    
  endregion,0,1

display last update time for current location
changefont,tahoma,9,b
text,81,3,[updatetime],l,HH:mm
changefont,tahoma,9
Title: Last update
Post by: joelw135 on November 21, 2003, 05:31:12 PM
Found a bug in my code.  The time disapears when you change a location such from home to london.  Is there a way to keep it visable?
Title: Last update
Post by: arbitrajeu on November 21, 2003, 05:37:59 PM
Quote from: joelw135Found a bug in my code.  The time disapears when you change a location such from home to london.  Is there a way to keep it visable?
I'd imagine the problem will be that you've inserted the code into your skin file outside the top region of your skin.  So, when that region is refreshed it is overwritten.  You need to make sure it's between the region...endregion commands for the appropriate region.
Title: Last update
Post by: joelw135 on November 21, 2003, 06:56:58 PM
Thanks, I got it working and now it is above the date bar.
Title: Last update
Post by: joelw135 on November 22, 2003, 02:03:55 PM
As I understand the update time is the time that the weather screen is updated.  Is there a way to have the display in 12 hr format rather than 24hr format? Thanks.
Title: Last update
Post by: CoolWolf on November 22, 2003, 04:43:35 PM
Quote from: joelw135As I understand the update time is the time that the weather screen is updated.  Is there a way to have the display in 12 hr format rather than 24hr format? Thanks.
This is a matter of what time format string you are using for the [updatetime].

If you are using this
text,81,3,[updatetime],l,HH:mm
you may change it to something like this
text,81,3,[updatetime],l,hh:mm tt

PS:
You may also have a look in the Skin Reference Guide (http://dark-mojo.com/TodayPlus/viewtopic.php?t=3), as this is a very helpful resource ... :wink:
Title: Last update
Post by: joelw135 on November 22, 2003, 05:32:22 PM
Thanks Cool Wolf, If I was not so lazy I would have printed the docs out. I have had great luck with the slider skin, but the calender skin I have no luck at all.  I will wait till the version is complete, and the bugs killed then try again.