Thread: centered label group
Fri Jul 30 2004, 09:21PM
Registered Member #55
Joined Fri Jun 25 2004, 10:59PM
posts 22
hi, i could use a little push into the right direction - what im trying to achieve is a centered clock, but because of the font not having fixed width chars the labels need to adjust dynamically. I need 2 labels [at least i think i do] because the hours:minutes have a bigger font size than the seconds attached to the lower right - they both use a different font too. How would i get these to labels to be centerd inside of a third one?
Thread: centered label group
Thu Aug 05 2004, 11:24AM
Registered Member #55
Joined: Fri Jun 25 2004, 10:59PM
posts 22
ffs - where did my reply go? guess i gotta explain it a second second time, baaah ...
well, basically u understood this right, but the font im using doesnt have a fixed width for all its chars and so 11:18 is way shorter than 24:33 and so a fixed positioning like u suggested and like i already have now is no solution =(
these 2 inner labels should be centerd as a unit and i hope that is possible ...
Thread: centered label group
Thu Aug 05 2004, 12:58PM
Registered Member #26
Joined: Fri May 14 2004, 05:32AM
posts 65
If you want it to change size with the text, I don't think you can do it without very specific scripting (not worth the hassle). What you CAN do is have, say, for 24:33, the 24(:?) label at the max width needed, and the (:?)33 label at the max width needed, and position them accordingly.
got some crazy idea now - xLabel can display html, cant it?
ill try centering it as html code inside - i hope it will still recognize the escape sequences for the time to display ... lets try ...
there might be a small chance of xLabel understanding a table tag?
Its centered and looking like it was intended to, but its jumping because of the font :/