• 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

Wichtel:

 Can you try (47.61,-122.3) Vancouver?  I double checked the number were correct in registry key, but the length of day is still minus...

Wichtel

Cool: there is an Bug if you have an entry with three letters bevore the dot e.G. -123.1 the minus is shown. If you have an entry with two letters before the dot e.G. -12.31 the minus isn“t shown and the Daylength will be correct displayed

Uk:no luck with Vancouver  :(
Greetings Wichtel 
 

miwi-media.com | Web & Screendesign

uk_skinner

Thanks Wichtel...

Another bug???  If you uses "countdown", the number of days for all-day and appointment are different... :?  :?

dgmele

Hi, UK,

The date number that I want to change color for is the one in the Calendar (on the Today, Appointment, and Task screens), where the NUMBER of the present day is in bold. I would like to make it bold AND red. Sorry if I'm not making myself clear.

uk_skinner

Quote from: dgmeleHi, UK,

The date number that I want to change color for is the one in the Calendar (on the Today, Appointment, and Task screens), where the NUMBER of the present day is in bold. I would like to make it bold AND red. Sorry if I'm not making myself clear.

Then use this:
options,dateformat,1,15,15,%changefont,tahoma,11,%%line,202,10,-1_4_-1%%textcolor,196_0_0%%bold%%date,l%%regularfont%%resettextcolor%

It will change all you date into red.  At this moment, I don't know how to change different color for today or tomorrow.  Anyone, any idea?

Wichtel

Quote from: uk_skinner
It will change all you date into red.  At this moment, I don't know how to change different color for today or tomorrow.  Anyone, any idea?

There is no solution for different colors for today or tomorrow. Everyone  the same or nothing at all.
Greetings Wichtel 
 

miwi-media.com | Web & Screendesign

dgmele

I'm afraid that I have still not made myself clear. The bolded number signifying today's date that I am referring to is in the calendar in the upper right hand corner of the Today page (and in the bottom half of the Appointment and Task pages):

S M T W T F S
1 2 3  4 5 6 7 . . .

I seem to recall a discussion way back when that concluded there is no way to change the color (except by srs). Time to give up on this one, I guess. Thanks anyway.

uk_skinner

dgmele:

 Sorry to get that wrong again.   :oops:

  Maybe there is a possibility but it might not be perfect.  I will try some experiment and let you know it can be done or not.

Edit:  Sorry, my idea was too naive... :roll:  :?

uk_skinner

Well, after several hours of experiment, I think I have something like this:

1)  Right now, only will work on the calendar on the Main page.

2)  Your firstoutlookday will be labelled as "red" color.

3) If you tap anyday on the calendar, that day will be labelled as "red" and the poom section will updated as usual.  The today will still be bold.

4)  At this moment, I worked out only for Jan and I will see I can work it out at least for 2005.

dgmele

Amazing! How did you do it?

uk_skinner

Quote from: dgmeleAmazing! How did you do it?


If I can get it done, I will try to post the codes here by today.  At this moment, I only can get it work on main page not in agenda section.  :)

uk_skinner

dgmele:

  Just finished the codes.  This is the "beta-test" codes.  Get a lot of room to improve.  This is only for 2005.  It gives us one year to figure out the better solution. :lol:

 The idea was very simple.  Use calcvar to get firstoutlookday.  It is normally  today's day.  Based on the number do a serial calculation to get the right corrdinate for the "position" of day on the calendar.  Then just text the day with specified "bold" "color".  

 Since I need a lot of var to do the caculation, I "recycled" the vars from other section.  As far as I can tell now, it did not affect the function of other sections since the vars were reset back to default values when you switch.  However, I would suggest you to keep the eyes on it.  All the codes are just before the end of region 5 (except one in the region 2).  If you sense anything wrong, just delete the codes.

 So here are the codes.  The new ones are in red.  

region,2,0,20
....
   //========================================
   // CALENDAR CURRENT MONTH
   //========================================

   image,115,5,kalender_header_main.png
   image,181,5,kalender_header_senkrecht_main_grau.png
   image,194,5,kalender_header_senkrecht_main_rot.png

   color,font,0_0_0
   calendarheader,116,5,13
   color,font,-1_4_-1
   
   calendar,0,0,116,18,13,10,l

   button,116,18,91,60,-1,23,0,5
   button,116,18,91,60,-1,23,1,5
   button,116,18,91,60,-1,23,2,5
   button,116,18,91,60,-1,23,3,5
   button,116,18,91,60,-1,5,-highlight,5
   button,116,18,91,60,2,4,0,
......

endregion2,0

region,5,0,-1
.....
.....
// Angabe der calendar week (KW) of the year

      calcvar,var33,firstoutlookday

   if,var,var33,,<,38354
         //Jahr 2004
         addvar,var33,-37978
   else
      if,var,var33,,<,38718
         //Jahr 2005
         addvar,var33,-38347
      else
         if,var,var33,,<,39082
            //Jahr 2006
            addvar,var33,-38711
         else
            //Jahr 2007
            addvar,var33,-39075
         endif
      endif
   endif

   calcvar,var32,/,%var33%,7

   changefont,tahoma,10b

   text,205,126,%var32%th Week,r
   
   changefont,tahoma,12

//==========================================
// Highlight the firstoutlookday in calendar
//==========================================


calcvar,var33,firstoutlookday

   if,var,var33,38353,><,38383
      storevar,var2=38353
      storevar,var26=6
   else

      if,var,var33,38384,><,38411
         storevar,var2=38384
         storevar,var26=2
      else
         if,var,var33,38412,><,38442
            storevar,var2=38412
            storevar,var26=2
         else
            if,var,var33,38443,><,38472
               storevar,var2=38443
               storevar,var26=5
            else
               if,var,var33,38473,><,38503
                  storevar,var2=38473
                  storevar,var26=0
               else
                  if,var,var33,38504,><,38533
                     storevar,var2=38504
                     storevar,var26=3
                  else

                     if,var,var33,38534,><,38564
                        storevar,var2=38534
                        storevar,var26=5
                     else
                     
                        if,var,var33,38565,><,38595
                           storevar,var2=38565
                           storevar,var26=1
                        else
                           if,var,var33,38596,><,38625
                              storevar,var2=38596
                              storevar,var26=4
                           else
                              if,var,var33,38626,><,38656
                                 storevar,var2=38626
                                 storevar,var26=6
                              else
                                 if,var,var33,38657,><,38686
                                    storevar,var2=38657
                                    storevar,var26=2
                                 else
                                    if,var,var33,38687,><,38717
                                       storevar,var2=38687
                                       storevar,var26=4
                                    else
                                    endif
                                 endif
                              endif
                           endif
                        endif
                     endif
                  endif
               endif
            endif
         endif
      endif
   endif
   calcvar,var8,-,%var33%,%var2%
   storevar,var27=%var8%
   calcvar,var27,+,%var27%,1
   calcvar,var8,+,%var8%,%var26%
   calcvar,var11,/,%var8%,7
   calcvar,var11,*,%var11%,7
   calcvar,var8,-,%var8%,%var11%
   calcvar,var12,-,%var33%,%var2%
   calcvar,var12,+,%var12%,%var26%
   calcvar,var12,/,%var12%,7
   calcvar,var12,+,%var12%,1
   calcvar,var8,*,%var8%,13
   calcvar,var8,+,%var8%,122
   calcvar,var12,*,%var12%,10
   calcvar,var12,+,%var12%,7
   color,font,196_0_0
   changefont,tahoma,12,b
   text,%var8%,%var12%,%var27%,c
   color,font,-1_4_-1
   changefont,tahoma,12,   

   

endregion,5,0

dgmele

Hi, uk_skinner,

Thanks for all your hard work. However, although I've checked everything very carefully I'm not having any success in getting the codes to work. I'm using the lastest skin (1.05.5 QVGA Eng) and have pasted the codes in red in the appropriate areas, but I lose all the right-side icons on the Main page, the News Ticker headlines have disappeared, and the date though bold is still black. Can't get to any of the other pages. I clearly have done something wrong, but am not skilled enough to know what. I've attached my pasted skin should you be interested in seeing where I went wrong.

uk_skinner

dgmele:

  I got the same problem when I used your posted skin.  However, after I replaced the caculation portion from mine into yours, everything looked fine.  And I was pretty sure that I did copy/paste the codes from my skin into forum.  So far, no clue what happened.  Anyway, please try this skin.

thc

hi uk_skinner,

looks great!  :D
i try to modify vars for VGA but i'm not enough good for it...:cry:

this is the part of calendar code:

//========================================
   // Calendar - Current Month
   //========================================

   image,230,10,kalender_header_main.png
   image,362,10,kalender_header_senkrecht_main_grau.png
   image,388,10,kalender_header_senkrecht_main_rot.png

   calendarheader,232,10,26

   calendar,0,0,232,36,26,20,l

   button,232,36,182,120,-1,23,0,5
   button,232,36,182,120,-1,23,1,5
   button,232,36,182,120,-1,23,2,5
   button,232,36,182,120,-1,23,3,5
   button,232,36,182,120,-1,5,-highlight,5  

if it's not abuse, can you give me the correct var?

thank's
thc