I started playing with TD+ today for the first time, and am having trouble displaying a calendar that I put in a region. The calendar displays fine if I comment out the region-related commands.
Quote
maxheight,268
height,268
:
:
offset,0,0
// today's date
changefont,tahoma,13,b
time,20,2,-1,5,ls,"dddd, MMMM d",
changefont,tahoma,12,
offsetadd,154,2
// Calendar
region,1,1,-1
defregion,1,0,0,84,80,1
offset,offset_-1,offset_-1
//imagebutton,0,1,left_arrow.bmp,t,1,9,0,1
//imagebutton,126,1,right_arrow.bmp,t,1,8,0,1
changefont,tahoma,10
calendar,0,0,0,20,12,10,r
changefont,tahoma,10,b
text,42,0,[caldate],0,c,"MMM yyyy"
calendarheader,0,10,12
endregion,1,1
Any help is appreciated.
i think i've figured it out. i need to do an initregion to display page 1 by default.
or I've found if I set my region to have 0 pages, then I don't need to do an initregion at all, since page 0 is displayed by default.
by default all regions are initialized to page 0. if you want it to start up in another page you will have to use the initregion command.