TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: bennynihon on December 13, 2003, 03:52:03 PM

Title: region is not showing. plz help.
Post by: bennynihon on December 13, 2003, 03:52:03 PM
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.
Title: region is not showing. plz help.
Post by: bennynihon on December 13, 2003, 03:55:01 PM
i think i've figured it out.  i need to do an initregion to display page 1 by default.
Title: region is not showing. plz help.
Post by: bennynihon on December 15, 2003, 02:45:04 PM
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.
Title: region is not showing. plz help.
Post by: srs on December 16, 2003, 01:48:29 PM
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.