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

    Similar threads

    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core: Fix FrameGrabbing for EVR [MP1-5222] - TV Server: Fix ISO-8859-10/14 DVB text encodings [MP1-5224] - Fix Card "CancelTune" request Since Pre-Release : New: Since Pre-Release : Improvement / Rework...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    We have just released MediaPortal 1.35 - Horizon x86 and x64 version. Highlights of this release Bugfixes: [MP1-5221] - Core...
    Replies
    0
    Views
    2K
    • Sticky
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the next release. We allocate about one month for Pre Release testing. In that time we will only fix bugs, after which comes the final release! Highlights of this release Bugfixes: [MP1-5221] - Core: Fix...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Pre Releases are provided as a way for the community to test and give feedback on all the exciting things we have lined up for the...
    Replies
    0
    Views
    2K
    Oh no. That's not good news. It looks like this is going to be complicated. OnlineVideos won't let us record, so that isn't going to work on this occasion, but I do like the information you have given on Online Videos because I have tried and failed to understand the wiki on that. I will remember this for future use. In the meantime...
    Oh no. That's not good news. It looks like this is going to be complicated. OnlineVideos won't let us record, so that isn't going...
    Good evening! I am trying to set up a TV channel in the TV server to show my live stream from a local camera. I am clearly doing...
    Replies
    14
    Views
    1K
    That was the correction I made in BasicHome for the 1.35 Prerelease which you adddd to repo ;)
    That was the correction I made in BasicHome for the 1.35 Prerelease which you adddd to repo ;)
    I'm going bananas here!! Used MP1 since MP1.10 or so.....an haven't had problems for years! Am using latest Dune...
    Replies
    8
    Views
    1K
    Thanks, will test that next time.
    Thanks, will test that next time.
    I don't know how many of you are aware of this, however, it may be that AnyDVD HD has finally come to an end. Their web site can no...
    Replies
    14
    Views
    3K
    Top Bottom