TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: bernd1002 on December 08, 2003, 08:18:24 PM

Title: How to build a new skin.....
Post by: bernd1002 on December 08, 2003, 08:18:24 PM
Hi,
for a better understanding of the skins I try to build my own. I don't want to copy another skin and make some changes... I want understand how it works...

Now I have a problem with the second region, it dissapears after a second and I don't know why.....

Thanks for your help
Bernd


Here is my code:

maxheight,300
height,200

initregion,0,0
initregion,1,0

offset,0,0

//==========================
// REGION 0
//==========================

region,0,0,-1
 defregion,0,0,0,240,50,1
 draw,roundrect,0,0,220,40,255_0_0,h
 offsetadd,0,55
endregion,0,0


//==========================
// REGION 1
//==========================

region,1,0,-1
 defregion,1,0,0,240,50,1
 draw,roundrect,0,0,220,40,255_255_0,h
endregion,1,0
Title: How to build a new skin.....
Post by: jhollin1138 on December 08, 2003, 09:16:10 PM
I loaded your "test" onto my PPC.  After 2 min, still have a "redish" and "yellowish" box.  Which version of TodayPlus are you running?

Edit: Ok, the "yellowish" box disappeared after I left my Today screen and it was gone.
Title: How to build a new skin.....
Post by: srs on December 09, 2003, 02:09:46 AM
well after the second region you don't increase the offsets so the height of the plugin is calculated to be 55 pixels.

either add an offsetadd at the end or offset,0,110 at the end.
Title: How to build a new skin.....
Post by: bernd1002 on December 09, 2003, 03:01:42 AM
@jhoolin1138: I'm working with version 0.10.2

@srs: Fine in works...  So it is not enough to specifie the high of the plugin with the "height" command?