• Welcome to TodayPlus Boards v2.
 

News:

No news is good news.

Main Menu

Counting

Started by dgmele, December 30, 2004, 11:12:10 PM

Previous topic - Next topic

uk_skinner

thc:

 Calculations should be the same but the (x,y) of the day on the calendar need to be adjusted.  Let me work on it and report back to you.

thc

thank's a lot!  :D

uk_skinner

thc:

 Here it is.  But one more thing, I start my calendar at Sunday.  How about you?  If you start at Monday, then I need to adjust the (x,y).

uk_skinner

Please add the codes under 12 "endif" codes.  That will adjust the position of "color-label" number.

calcvar,var26,-,%var26%,1
if,var,var26,,<,0
storevar,var26=6
else
endif

thc

thank's uk_skinner,

work's perferct!  :clap:
just need to switch mine calendar with yours... :wink:

uk_skinner

Quote from: thcthank's uk_skinner,

work's perferct!  :clap:
just need to switch mine calendar with yours... :wink:

thc:

If your calendar starts on Monday, just add the codes I posted above and it should work as well.

thc

allready done! when i said just switch calendar with yours, it's for position of calendar in main page.
everything works fine.
thank's again!  :D

dgmele

It works. Don't know what I did wrong. Thanks. You are so good.

nas

Quote from: uk_skinnerAt this moment, I don't know how to change different color for today or tomorrow.  Anyone, any idea?

Hi uk_skinner,

maybe it is possible (a little bit = screenshot), a small idea.

Four steps:

1. Free REGION without automatical update/reset (ex.)
        region,11,0,-1           
   calcvar,var50,firstoutlookday
   endregion,11,0

   

2. Add to the top of the skin
   initregion,11,0

3. Jump to the free region (from calendar-reset)
   imagebutton,160,86,NA_kalender_reset1.png,t,-1,10,0,2
   button,160,86,62,12,-1,22,0,2
   button,160,86,62,12,-1,23,0,2
   ...
        button,160,86,62,12,11,4,0   

4. Another new or known "var" with firstoutlookdate in it
   and one if...else-statement for the colour-change in
   the Main-Page-Agenda-Region

   calcvar,var51,firstoutlookday

   options,calendarfilter,1
   options,taskfilter,1
   options,dateformat,3,15,18,%changefont,tahoma...
   options,today-text,'Heute' - d. MMMM
   options,tomorrow-text,'Morgen' - d. MMMM

        if,var,var51,,=,%var50%
      options,today-text,'           ' - d. MMMM
      color,font,255_0_0
      changefont,tahoma,12,b
      text,25,104,Heute,l
   else
   endif
   
   color,font,0_0_0
   changefont,tahoma,11

         
   options,apptformat,0,11,13,%iconstar...
   options,apptallday,0,11,13,%iconstart...

This example works on the main-page only at the top
of the Agenda (= firstoutlook). I think it will works with
other settings with the POOM-Regions (9 and 10) too.

The var50 (see 1.) will not change automatical at midnight.
You need a normal calender-reset (see 3.)
or a Soft-Reset (see 2.) i`ve found no other way.

Greetings nas
[/url][/list][/code]

uk_skinner

nas:

 Interesting idea.... :approve:

  Let me see I can put it into Hammerskin.  Although dgmele did not ask for it (I misunderstood his question), but we always like to see we can find new thing, right?


 Thanks a lot..

Edit:

 nas's approach worked great.  The color of "Today" can be changed.

  Here are my observations:

1)  As nas pointed out, the first "calcvar,var50,firstoutlookday" needs to be frozen.  Therefore, the skin needs to be restarted the first thing each moning.

2)  If you don't have any agenda in "today" then the color-label text will overlap with the date where you have your first agenda.

Other than that, this works great...

dgmele

Hi, U_K Skinner,

Here's my experimental modified skin with a countdown section. Since I don't use tasks, I used the Tasks section for Countdown. It's very sloooow to update. If you can figure out why, I'd greatly appreciate it.

uk_skinner

Try to change these two codes in region,10

was:
options,calendarfilter,countdown
to:
options,calendarfilter,1


was
outlook,4,%var11%,205,%var8%,1,0,%var12%,,var19,9
to
outlook,4,%var11%,205,%var8%,1,0,%var12%,,var19,10


:wink:  :wink:

dgmele

Thanks. Works perfectly--of course!