TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: calibra on October 28, 2004, 07:23:21 AM

Title: Justification in calendar command
Post by: calibra on October 28, 2004, 07:23:21 AM
hello,

i've planned to add a calendar in my skin but i've noticed that the justification parameter (the last one of the command) doesn't seem to work.

does someone had the same problem ?

is there another solution to align the day numbers correctly ?

thanks in advance,
Nicolas.

Note : sorry for my poor english ! :wink:
Title: Justification in calendar command
Post by: uk_skinner on October 28, 2004, 07:42:38 AM
calibra:

 Based on my understanding, there are two ways in calendar code:

1) No frame or box aound the day: (Hammerskin)

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

2) With frame or box (HandPlus.011 Basic)

   calendar,0,0,151,12,12,10,box.png,tc

In 1) the "l" was alignment for the day number, and in 2) "t" was for transparency for image (box.png) background and "c" for day alignment.

Hopefully, this help.  If I am wrong, please correct me.. :wink:
Title: Justification in calendar command
Post by: calibra on October 28, 2004, 11:24:47 AM
Quote from: uk_skinnercalibra:

 Based on my understanding, there are two ways in calendar code:

1) No frame or box aound the day: (Hammerskin)

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

2) With frame or box (HandPlus.011 Basic)

   calendar,0,0,151,12,12,10,box.png,tc

In 1) the "l" was alignment for the day number, and in 2) "t" was for transparency for image (box.png) background and "c" for day alignment.

Hopefully, this help.  If I am wrong, please correct me.. :wink:

uk_skinner : thanks for your help, it's very nice ! :D

my problem is that the justification command doesn't seem to work.

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

-> the "l" caracter does change anything. very strange isn't it ? or maybe i'm wrong !
Title: Justification in calendar command
Post by: calibra on October 28, 2004, 11:26:40 AM
i mean, in hammerskin, caracters seem to be centered, although there is a "l" at the end of the calendar command ! :? strange ! :wink:
Title: Justification in calendar command
Post by: uk_skinner on October 28, 2004, 11:58:38 AM
Quote from: calibrai mean, in hammerskin, caracters seem to be centered, although there is a "l" at the end of the calendar command ! :? strange ! :wink:
calibra:

  After some testing, you were right.  The letter seemed does not have any function.  Even I used double width and no "r/c/l", the numbers always aligned at the right side. :think:  :knownot:
Title: Justification in calendar command
Post by: calibra on October 28, 2004, 01:29:10 PM
yes it's very very strange !

my objective was to align these caracters like this :
(http://www.jgui.net/phoneprofiles/windowscolors_1l.jpg)

note : this is the calendar of a software from www.jgui.net - and it's what I've wanted to do ! :?
Title: Justification in calendar command
Post by: Wichtel on October 28, 2004, 02:16:56 PM
I don't know what for problems have at all there. This is very simple anyway.

In the left picture you see the Orginal code: calendar,0,0,116,18,13,10,l

In the right picture the changed: calendar,0,0,116,18,23,10,l

Of course you must puzzle a little there. But then, you already get this to.
Title: Justification in calendar command
Post by: uk_skinner on October 28, 2004, 02:19:16 PM
Quote from: WichtelI don't know what for problems have at all there. This is very simple anyway.

In the left picture you see the Orginal code: calendar,0,0,116,18,13,10,l

In the right picture the changed: calendar,0,0,116,18,23,10,l

Of course you must puzzle a little there. But then, you already get this to.
Wichtel:

DId you notice that they all aligned at the right side even you used "l"?
Title: Justification in calendar command
Post by: calibra on October 28, 2004, 02:34:50 PM
Quote from: uk_skinner
Quote from: WichtelI don't know what for problems have at all there. This is very simple anyway.

In the left picture you see the Orginal code: calendar,0,0,116,18,13,10,l

In the right picture the changed: calendar,0,0,116,18,23,10,l

Of course you must puzzle a little there. But then, you already get this to.
Wichtel:

DId you notice that they all aligned at the right side even you used "l"?

oh I tought they were aligned at center ! :?
i mean, you ask todayplus to start at x = 135 (by example) but the caracters start on or two pixels after !
Title: Justification in calendar command
Post by: Wichtel on October 28, 2004, 02:50:56 PM
I think this we have met here with a Bug in TodayPlus. I just have tried everything out (l,r,c and nothing) and it yielded no change. It sees so out as if everything were prepared for C. Then also would explain the 4-5 pixels to themselves by which the 1st row is moved.
Title: Justification in calendar command
Post by: calibra on October 28, 2004, 03:00:03 PM
YEAH ! I've found a bug ! :D  :roll:  :cry:

pas chouette comme on dit chez nous !

is there a way to by pass this ? (by adding offset somewhere)
Title: Justification in calendar command
Post by: uk_skinner on October 28, 2004, 03:00:25 PM
Quote from: WichtelI think this we have met here with a Bug in TodayPlus. I just have tried everything out (l,r,c and nothing) and it yielded no change. It sees so out as if everything were prepared for C. Then also would explain the 4-5 pixels to themselves by which the 1st row is moved.

I agree!!  Just one more things go to the list of "Please come back ssr!!" :pray:  :pray:  :pray:
Title: Justification in calendar command
Post by: Wichtel on October 28, 2004, 03:15:25 PM
Quote from: calibraYEAH ! I've found a bug ! :D  :roll:  :cry:

pas chouette comme on dit chez nous !

is there a way to by pass this ? (by adding offset somewhere)

This is actually not the slightest problem. You must move only the calendar and the calendar header against each other. And it already must work.
Title: Justification in calendar command
Post by: calibra on October 28, 2004, 04:13:40 PM
sorry my english isn't perfect and I don't understand what you said !

sorry !