How to: text align center (1 Viewer)

papas

MP Donator
  • Premium Supporter
  • August 21, 2006
    232
    6
    44
    Nicosia
    Home Country
    Cyprus Cyprus
    Sorry, you are right, not an English word. Maybe not a word in any language? Not an offending word either, not related to 'kaka'.

    its greek ;)
     

    VdR

    MP Donator
  • Premium Supporter
  • October 17, 2006
    612
    16
    Belgium
    Home Country
    Netherlands Netherlands
    Are you kidding? What does it mean in Greek? I thought it might be 'double Dutch'.

    I did some research. I think the word was introduced in the late 70's by a Dutch band called 'Bots' (they happen to be from my home town Eindhoven). Recently a book from a Dutch author titled 'Kakafonie' was published, unfortunately he does refer to 'kaka'.:eek:
     

    papas

    MP Donator
  • Premium Supporter
  • August 21, 2006
    232
    6
    44
    Nicosia
    Home Country
    Cyprus Cyprus
    well kakophony if i understood well means in greek like kako = bad + phony = voice

    bad voice hehe
    ever wondered why the bard was named cacofonix in asterix.

    taken from wiki

    In English, Cacofonix is derived from cacophonic (describing "harsh and unpleasant sounds")
     

    VdR

    MP Donator
  • Premium Supporter
  • October 17, 2006
    612
    16
    Belgium
    Home Country
    Netherlands Netherlands
    Kakofonix

    Citizenship : Gaul

    Part in the story : Bard, school teacher and scapegoat.

    French name : Assurancetourix
    English name : Cacofonix
    German name : Troubadix
    Dutch name : Kakofonix
    Spanish name : Asurancetúrix
    Italian name : Assurancetourix
    Portugese name : Assurancetourix

    World-renowned poet and bard (if not exactly appreciated…) and respected school teacher, Cacofonix is an important figure in the village (he is thus a member of the Council that sends Asterix into exile in “Asterix and the Cauldron”). However, as the eternal butt of the villagers’ jokes, Cacofonix lives on the fringe, in a hut built at the top of a tree. An extraordinary character, Cacofonix offers a perfect weather vane for taking the pulse of the village and seeing which way the wind blows. We are not talking here about the rain he brings on each time exercises his vocal cords, but rather about the prevailing atmosphere in the village: when it is time to party, when wild boar are roasting on the spit, you can be sure to find Cacofonix tied hand and feet with a gag in his mouth. And, if not, you can count on Fulliautomatix to discourage him from singing! On the other hand, just looking at the unforgettable scene where he sits at a deserted banquet table in “Asterix and the Roman Agent” is enough to make us understand that the village is experiencing its darkest hours. In fact, sociologists will tell you, Cacofonix is the perfect scapegoat, the person who ensures the well-being of the village by drawing everyone’s anger and frustration like a magnet. Now all that needs to be done is to convince Fulliautomatix …Here in the village, we are halfway tempted to found a Bard Abuse and Mistreatment group - with an acronym like that (BAM), we're off to a good start, don't you think? It sounds a bit like, well, a hammer, doesn't it?

    And so you see that you learn something new every day.

    I do not recall that the bard is called kakofonix in the Dutch books I read in my childhood. I have to dig one up to check.


    Back to the topic. Does the align center option work or not?
     

    wertzui

    Retired Team Member
  • Premium Supporter
  • July 2, 2005
    320
    8
    well, its read by the sourcecode, so i think, it should work, no idea, why its not.

    maybe try ALLIGN_CENTER
     

    VdR

    MP Donator
  • Premium Supporter
  • October 17, 2006
    612
    16
    Belgium
    Home Country
    Netherlands Netherlands
    Here is what I find:

    'align center' and 'align right' do work on a label.

    'textalign right' does work on a button, but 'textalign center' does not.

    The effect of 'textalign center' on a button is that the text is centered at half the button width, but without taking the posX for the button into account. Hence it ends up somewhere on the left of the screen, depending on the button width.

    (using 'align_center' rather than 'center' has the same effect).

    VdR
     

    Boilermaker

    Retired Team Member
  • Premium Supporter
  • May 21, 2004
    519
    3
    i ran into the same problem, mostly with the yes, no or ok buttons in dialog boxes. The workaround i have been using is to not define the label in in the button control or to move the text far off screen. Then add a new label control for the omitted button text, centering the text there. For example:
    Code:
    	<control>
    		<description>Yes button</description> 
    		<type>button</type> 
    		<id>11</id> 
    		<posX>670</posX> 
    		<posY>394</posY>    
    		<width>120</width> 
    		<height>36</height>
    		<textureFocus>small_button_focus.png</textureFocus>
    		<textureNoFocus>small_button_nofocus.png</textureNoFocus>
    		<onleft>10</onleft> 
    		<onright>10</onright> 
    		<onup>11</onup> 
    		<ondown>11</ondown> 
    		<label>107</label>
    	 	<textXOff>-1000</textXOff> 
    	 	<textYOff>0</textYOff>
    	</control>
         	<control>
             	<type>label</type>
             	<id>1</id>
             	<posX>675</posX>
             	<posY>412</posY>
    		<label>107</label>
             	<width>110</width>
             	<align>center</align>
          	</control>
     

    VdR

    MP Donator
  • Premium Supporter
  • October 17, 2006
    612
    16
    Belgium
    Home Country
    Netherlands Netherlands
    Boilermaker,

    Thanks for the feedback. Good to know it is not just me.

    Nice work around, I will use it. I hadn't come up with anything better than just left aligning the text in the button.

    VdR
     

    Users who are viewing this thread


    Write your reply...

    Similar threads

    Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
    Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
    This thread is intended for skin authors, plus those advanced users who have learnt skin programming and have customised the skins...
    Replies
    1
    Views
    846
    OK - Will care about ;)
    OK - Will care about ;)
    In version 1.36 (I think), technical specifications were added to the center panel of the movie info screen when 'Movie Info before...
    Replies
    3
    Views
    433
    My bad, I misunderstood your post then :) Yeah, these things can get complicated really quickly. I remember scrapping some of my skin-improvement-ideas because I couldn't get these cross-dependencies sorted out.
    My bad, I misunderstood your post then :) Yeah, these things can get complicated really quickly. I remember scrapping some of my...
    I adjusted the MyMusicPlayingNowInfos.xml for my OldEyes variant of DWHD so it fits without crowding. I now have the issue of text...
    Replies
    7
    Views
    381
    Thanks for explaining. I found a passing reference to this here: https://www.team-mediaportal.com/wiki/display/MediaPortal1/HID%20Profiles which I had overlooked in the past. I would find it logical for a created custom profile to be automatically activated, but until that happens, I will try to create a wiki page for the current...
    Thanks for explaining. I found a passing reference to this here...
    I have used custom actions in the "Mapping" section of "HID" since moving to a FLIRC as a remote receiver a couple of years ago...
    Replies
    14
    Views
    931
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I don't have a fundamentally different solution for you, but with this approach you should achieve your goal. ;) The idea of first setting the current genre colors with the defines is certainly a good one, as...
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I...
    Good afternoon, Does anyone know a way of referencing the genre colour of the currently selected item in the TV Guide. We are all...
    Replies
    4
    Views
    471
    Top Bottom