• Welcome to TodayPlus Boards v2.
 

Why doesn't this work

Started by ya1950, October 25, 2004, 05:07:29 AM

Previous topic - Next topic

ya1950

Anyone (uk_skinner?) have any ideas why this doesn't work? The code shows a pop up menu from region 1,3. Chosing a selection should set a variable, close the pop up, reset the calendar, and jump to the agenda region (2,1) where the variable is used to set the filter. Doesn't work! I can work around it by jumping to a separate region for each calendar filter and not using variables but I'm curious if anyone has an idea what is wrong with this.


///////////////////////////////////////////
//// Menu - REGION 1,3
//////////////////////////////////////////

region,1,3

offset,offset_-1,offset_-1
//cleararea,2,12,90,100

deactivatebuttons,2


image,2,0,Breeze_calendar.png,t
button,2,0,60,17,1,4,2,1

image,100,0,filter.png

image,100,20,All_selected.png,t
button,100,20,60,17,6,var24=0 //CALENDAR FILTER 1
button,100,20,60,17,-1,23,0 // CLEAR OUTLOOK CACHE 0 = CALENDAR 0
//button,100,20,60,17,2,10,0,-1 // RESET CALENDAR 0
button,100,20,20,17,2,4,1,2 //GO TO AGENDA
//button,100,20,60,17,1,4,1 //RETURN TO AGENDA TASKBAR REGION 1,1

image,100,37,Holiday.png,t
button,100,37,60,17,6,var24=1 // CALENDAR FILTER 1
button,100,37,60,17,2,23,0 // CLEAR OUTLOOK CACHE 0 = CALENDAR 0
//button,100,37,60,17,2,10,0, // RESET CALENDAR 0
button,100,37,60,17,2,4,1,-1 //GO TO AGENDA
//button,100,37,60,17,1,4,1 //RETURN TO AGENDA TASKBAR REGION 1,1
//button,100,37,60,17,2,24,0

image,100,54,Birthday.png,t
button,100,54,60,17,6,var24=2 //CALENDAR FILTER 1
button,100,54,60,17,-1,23,0,-1 // CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,100,54,60,17,2,4,1,-1 //GO TO AGENDA
//button,100,54,60,17,2,10,0,-1 // RESET CALENDAR 0
//button,100,54,20,17,2,4,1,-1
//button,100,54,60,17,1,4,1,-1 //RETURN TO AGENDA TASKBAR REGION 1,1

changefont,Tahoma,11

if,region,2,1
image,180,0,taskbar agenda button.png,t
button,180,0,20,17,2,4,1,-1
button,180,0,20,17,-1,23,0,-1   //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,180,0,20,17,2,10,0,-1 // RESET CALENDAR 0
else
image,180,0,taskbar agenda button_off.png,t
button,180,0,20,17,2,4,1,-1
button,180,0,20,17,-1,23,0,-1 //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,180,0,20,17,2,10,0,-1 // RESET CALENDAR 0
endif

if,region,2,2
image,200,0,Taskbar task button.png,t
button,200,0,20,17,2,4,2,-1
//button,200,0,20,17,-1,23,1,-1 //CLEAR OUTLOOK CACHE 1 = TASK
else
image,200,0,Taskbar task button_off.png,t
button,200,0,20,17,2,4,2,-1
endif


if,region,2,3
image,220,0,taskbar countdown button.png,t
button,220,0,20,17,2,4,3,-1
button,220,0,20,17,-1,23,0,-1   //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,220,0,20,17,2,10,0,-1 // RESET CALENDAR 0
else
image,220,0,taskbar countdown button_off.png,t
button,220,0,20,17,2,4,3,-1
button,220,0,20,17,-1,23,0,-1   //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,220,0,20,17,2,10,0,-1 // RESET CALENDAR 0
endif


offsetadd,0,21

endregion,1,3


//////////////////////////////////////////
//////// AGENDA - REGION 2,1
//////////////////////////////////////////




/////////CALENDAR FILTER //////////

defregion,2,0,0,240,150,5
region,2,1
offset,offset_-1,offset_-1

image,2,0,calendar-today.png,t
button,2,0,16,16,-1,0,%apps-2-5


image,2,0,calendar-today.png,t
button,2,0,16,16,-1,0,%apps-2-5

imagebutton,200,0,refresh agenda.png,t,2,22,-1 // OUTLOOK NOW
button,200,0,13,13,2,23,0,-1 // CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,200,0,13,13,2,10,0,-1 // RESET CALENDAR 0

calcvar,var22,firstoutlookday
calcvar,var22,-,%var22%,1
imagebutton,182,0,arrow_left.png,t,2,25,var22,1 // SCROLL POOM BACKWARDS
button,182,0,12,12,2,23,0,-1

calcvar,var23,firstoutlookday
calcvar,var23,+,%var23%,1
imagebutton,222,0,arrow_right.png,t,2,25,var23,1,-1 // SCROLL POOM FORWARD
button,222,0,12,12,2,23,0,


offsetadd,20,0

if,var,var24,,=,0
options,calendarfilter,1
else
if,var,var24,,=,1
options,calendarfilter,2
else
if,var,var24,,=,2
options,calendarfilter,3
endif
endif
endif


options,dateformat,3,15,18,%bold%%date,dddd MMM. dd%%regularfont%
//button,20,2,120,12,1,4,1-highlight,1 //GO TO CALENDAR FILTER 2
//button,20,2,100,12,-1,23,0 // CLEAR OUTLOOK CACHE 0 = CALENDAR 0


options,blanktext,-1,12,12,-Nothing Further-

options,apptformat,0,13,13,%iconstart,-20%%categoryicons,0,3%%iconstart,-10%%recurrenceicon,0,3,recurrence.png,t%%starttime,h:mm%-%endtime,h:mmtt%%tab,80% %subject%%changefont,tahoma,13,i% %changefont,tahoma,13,%
options,apptallday,0,13,13,%iconstart,-20%%categoryicons,0,3%%iconstart,-10%%recurrenceicon,0,3,recurrence.png,t%%subject%
options,today-text,'Today'
options,tomorrow-text,'Tomorrow'

changefont,tahoma,13,


outlook,2,1,238,140,0,0,,,,2 //OUTLOOK CACHE 0 = CALENDAR 0

changefont,tahoma,12,

offsetadd,-20,140
//offsetadd,0,21


endregion,2,1



Thanks

uk_skinner

ya1950:

You probably miss a number before "6" in the code for setting variable for filters:

button,100,20,60,17,6,var24=0

try this

button,100,20,60,17,-1,6,var24=0,2

ya1950

Thanks. I was missing that number. Actually it was a 2 to refer to the agenda region but it works now! Another question - do you know how to get POOM to ignore days that have no appointments. See the screen shot - I want to list the holidays and pass over days without a holiday. Thanks for all your help. It good to have someone to bounce this off of!

uk_skinner

Quote from: ya1950Thanks. I was missing that number. Actually it was a 2 to refer to the agenda region but it works now! Another question - do you know how to get POOM to ignore days that have no appointments. See the screen shot - I want to list the holidays and pass over days without a holiday. Thanks for all your help. It good to have someone to bounce this off of!

Good, I can see your TPBreeze come along!!!  

Not quite understand what do you want.. :oops:
If you don't want POOM to display the "All Day" events, you can take the "options, apptallday" codes out.  Is that what you want?

ya1950

Thanks  :D I'm actually getting close to finishing. I need to finish the filters, maybe add a sort option, and a little more graphic stuff.

In the screen shot I'd like Thursday, Oct. 28 and Monday, Nov. 01 which have no entries not to show at all. In other words just to show dates that actually have an entry attached to them.

uk_skinner

Quote from: ya1950Thanks  :D I'm actually getting close to finishing. I need to finish the filters, maybe add a sort option, and a little more graphic stuff.

In the screen shot I'd like Thursday, Oct. 28 and Monday, Nov. 01 which have no entries not to show at all. In other words just to show dates that actually have an entry attached to them.

Hmm...  Do you have any "hidden" entry in Oct28 and Nov1?  Why did they show up in your agenda? My poom will not show any date without anything?  Can you double check in your Calendar to make sure there is nothing in these two dates.

ya1950

I have regular appointments on those dates but no holidays. The filter should be showing only holidays but it seems to list days with non holiday events as blank.

uk_skinner

Quote from: ya1950I have regular appointments on those dates but no holidays. The filter should be showing only holidays but it seems to list days with non holiday events as blank.

I got it..
Can you show me the screen shot of POOM in configure file?  Did you only get this problem for Holiday or in other filters too, such as business?

ya1950

It's weird. I'm getting it it all the calendar filters. I even get it with filter 0 (all entries) on today's date but it disappears for filter 0 (not the others) when I scroll a day forward or backward. I suspect that either I need some additional button command when I chose the filters (region 1,3) or there is something in the POOM options that is causing this. Let me play with this for a while and see what I can come up with. It isn't the configuration file since this worked without problems on my Dash Skin but I'm posting a screen shot just in case. If you're interested here is the code as it stands now:


///////////////////////////////////////////
//// MENU - REGION 1,3
//////////////////////////////////////////

region,1,3

offset,offset_-1,offset_-1
//cleararea,2,12,90,100

deactivatebuttons,2


if,region,2,1
image,2,0,Breeze_calendar.png,t
button,2,0,60,17,1,4,2,1
button,2,0,60,17,1,10,0,1 // RESET CALENDAR 0
else
if,region,2,2
image,2,0,Breeze_Task.png,t
else
if,region,2,3
image,2,0,Breeze_Countdown.png,t
endif
endif
endif

image,100,0,filter.png


if,region,2,1
image,100,20,All_selected.png,t
button,100,20,60,17,2,6,var24=0,-1 //CALENDAR FILTER 1
button,100,20,60,17,2,23,0,-1 //CLEAR OUTLOOK CACHE 0 = CALENDAR 1
button,100,20,60,17,1,4,1,-1 //RETURN TO AGENDA TASKBAR REGION 1,1

image,100,37,Holiday.png,t
button,100,37,60,17,2,6,var24=1,-1 //CALENDAR FILTER 2
button,100,37,60,17,2,23,0,-1 //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,100,37,60,17,1,4,1,-1 //RETURN TO AGENDA TASKBAR REGION 1,1

image,100,54,Birthday.png,t
button,100,54,60,17,2,6,var24=2,-1 //CALENDAR FILTER 3
button,100,54,60,17,2,23,0,-1 //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,100,54,60,17,1,4,1,-1 //RETURN TO AGENDA TASKBAR REGION 1,1

else
if,region,2,2
image,100,20,All_selected.png,t
button,100,20,60,17,2,6,var27=0,-1 //TASK FILTER 1
button,100,20,60,17,2,23,1,-1 // CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,100,20,60,17,1,4,1,-1 //RETURN TO AGENDA TASKBAR REGION 1,1

image,100,37,Personal.png,t
button,100,37,60,17,2,6,var27=1,-1 /TASK FILTER 2
button,100,37,60,17,2,23,1,-1 // CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,100,37,60,17,1,4,1,-1

image,100,54,Business.png,t
button,100,54,60,17,2,6,var27=2,-1 //TASK FILTER 3
button,100,54,60,17,2,23,1,-1 // CLEAR OUTLOOK CACHE 1 = TASK 0
button,100,54,60,17,1,4,1,-1 //RETURN TO AGENDA TASKBAR REGION 1,1

else
if,region,2,3
image,100,20,All_selected.png,t
button,100,20,60,17,2,6,var24=0,-1 //CALENDAR FILTER 1
button,100,20,60,17,2,23,0,-1 //CLEAR OUTLOOK CACHE 0 = CALENDAR 1
button,100,20,60,17,1,4,1,-1 //RETURN TO AGENDA TASKBAR REGION 1,1

image,100,37,Holiday.png,t
button,100,37,60,17,2,6,var24=1,-1 //CALENDAR FILTER 2
button,100,37,60,17,2,23,0,-1 //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,100,37,60,17,1,4,1,-1 //RETURN TO AGENDA TASKBAR REGION 1,1

image,100,54,Birthday.png,t
button,100,54,60,17,2,6,var24=2,-1 //CALENDAR FILTER 3
button,100,54,60,17,2,23,0,-1 //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,100,54,60,17,1,4,1,-1 //RETURN TO AGENDA TASKBAR REGION 1,1

else
endif
endif
endif


changefont,Tahoma,11

if,region,2,1
image,180,0,taskbar agenda button.png,t
button,180,0,20,17,2,4,1,-1
button,180,0,20,17,-1,23,0,-1   //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,180,0,20,17,2,10,0,-1 //RESET CALENDAR 0
else
image,180,0,taskbar agenda button_off.png,t
button,180,0,20,17,2,4,1,-1
button,180,0,20,17,-1,23,0,-1 //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,180,0,20,17,2,10,0,-1 // RESET CALENDAR 0
endif

if,region,2,2
image,200,0,Taskbar task button.png,t
button,200,0,20,17,2,4,2,-1
//button,200,0,20,17,-1,23,1,-1 //CLEAR OUTLOOK CACHE 1 = TASK
else
image,200,0,Taskbar task button_off.png,t
button,200,0,20,17,2,4,2,-1
endif



if,region,2,3
image,220,0,taskbar countdown button.png,t
button,220,0,20,17,2,4,3,-1
button,220,0,20,17,-1,23,0,-1   //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,220,0,20,17,2,10,0,-1 // RESET CALENDAR 0
else
image,220,0,taskbar countdown button_off.png,t
button,220,0,20,17,2,4,3,-1
button,220,0,20,17,-1,23,0,-1   //CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,220,0,20,17,2,10,0,-1 // RESET CALENDAR 0
endif


offsetadd,0,21

endregion,1,3


//////////////////////////////////////////
//////// AGENDA - REGION 2,1
//////////////////////////////////////////



defregion,2,0,0,240,150,5
region,2,1
offset,offset_-1,offset_-1

image,2,0,calendar-today.png,t
button,2,0,16,16,-1,0,%apps-2-5


image,2,0,calendar-today.png,t
button,2,0,16,16,-1,0,%apps-2-5

imagebutton,200,0,refresh agenda.png,t,2,22,-1 // OUTLOOK NOW
button,200,0,13,13,2,23,0,-1 // CLEAR OUTLOOK CACHE 0 = CALENDAR 0
button,200,0,13,13,2,10,0,-1 // RESET CALENDAR 0

calcvar,var22,firstoutlookday
calcvar,var22,-,%var22%,1
imagebutton,182,0,arrow_left.png,t,2,25,var22,1 // SCROLL POOM BACKWARDS
button,182,0,12,12,2,23,0,-1

calcvar,var23,firstoutlookday
calcvar,var23,+,%var23%,1
imagebutton,222,0,arrow_right.png,t,2,25,var23,1,-1 // SCROLL POOM FORWARD
button,222,0,12,12,2,23,0,


offsetadd,20,0

if,var,var24,,=,0
options,calendarfilter,1
else
if,var,var24,,=,1
options,calendarfilter,2
else
if,var,var24,,=,2
options,calendarfilter,3
endif
endif
endif

options,dateformat,3,15,18,%bold%%date,dddd MMM. dd%%regularfont%


options,blanktext,-1,12,12,-Nothing Further-

options,apptformat,0,13,13,%iconstart,-20%%categoryicons,0,3%%iconstart,-10%%recurrenceicon,0,3,recurrence.png,t%%starttime,h:mm%-%endtime,h:mmtt%%tab,80% %subject%%changefont,tahoma,13,i% %changefont,tahoma,13,%
options,apptallday,0,13,13,%iconstart,-20%%categoryicons,0,3%%iconstart,-10%%recurrenceicon,0,3,recurrence.png,t%%subject%
options,today-text,'Today'
options,tomorrow-text,'Tomorrow'

changefont,tahoma,13,


outlook,2,1,238,140,0,0,,,,2 //OUTLOOK CACHE 0 = CALENDAR 0

changefont,tahoma,12,

offsetadd,-20,140
//offsetadd,0,21


endregion,2,1

uk_skinner

ya1950:

   Based on the codes and screenshot you posted, here was what I thought.

1)  When TP just started, var24=0 (unless you have initvar at the top), you should see all the entries in your agenda section.  Did you see it in that way?

2) I was puzzled by "filter 0" since I never used it.  I assumed the number 1 in the poom section is filter #1.  If the filter 0 is everything and your filter 1 is everything too, right?

ya1950

Sorry I wasn't clear. I'm using initvar24,0 and initvar27,0 to start TP. This starts TP with all calendar enteries and all tasks showing. If var24=1 then calendarfilter = holiday, if var24=2 then calendarfilter = birthday. If var 27=1 then taskfilter=personal. If var27=2 then taskfilter=business.

The filters are working. The problem is with the formating - dates with calendar enteries are showing up blank if they don't fit the filter criteria. No problem with the tasks or the countdown section since the formating doesn't matter there.

I'm going to sleep on this. I'll check back tommorow.

Thanks a lot for helping. When I finish this I'll give you a free copy of the skin  :lol:

uk_skinner

:think:  :shock:  :doh:

Need to polish my English....
If you don't mind, send me th skin.  Let me see I can find the problem on my device...

ya1950

Thanks a lot for the offer. Give me a few more days. I'm doing some other stuff that I may also have problems with (right now I'm trying to use a windows-like menu to chose the filters) . I'll send the skin once I finalize the other stuff, that way you can help me work out all the bugs before I post it - ok?

uk_skinner

Quote from: ya1950Thanks a lot for the offer. Give me a few more days. I'm doing some other stuff that I may also have problems with (right now I'm trying to use a windows-like menu to chose the filters) . I'll send the skin once I finalize the other stuff, that way you can help me work out all the bugs before I post it - ok?

ya1950:  No problem.  Let me know if I can provide any assistance.  You know where to find me... :wink: