• Welcome to TodayPlus Boards v2.
 

Justification in calendar command

Started by calibra, October 28, 2004, 07:23:21 AM

Previous topic - Next topic

calibra

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:

uk_skinner

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:

calibra

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 !

calibra

i mean, in hammerskin, caracters seem to be centered, although there is a "l" at the end of the calendar command ! :? strange ! :wink:

uk_skinner

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:

calibra

yes it's very very strange !

my objective was to align these caracters like this :


note : this is the calendar of a software from www.jgui.net - and it's what I've wanted to do ! :?

Wichtel

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.
Greetings Wichtel 
 

miwi-media.com | Web & Screendesign

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"?

calibra

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 !

Wichtel

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.
Greetings Wichtel 
 

miwi-media.com | Web & Screendesign

calibra

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)

uk_skinner

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:

Wichtel

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.
Greetings Wichtel 
 

miwi-media.com | Web & Screendesign

calibra

sorry my english isn't perfect and I don't understand what you said !

sorry !