View Single Post
Old 07-16-2011, 03:08 PM   #425
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by BenChen View Post
As for the font size, I really don't know. The multi-line textbox is one of the built-in widgets. I don't know if the font size can be changed.
Hi Ben,

<text>is build in, but fully customizable.
Your are defining
Code:
      	<skin id="eventText"
				cutouts="htext-lt,htext-ct,htext-rt,htext-lm,htext-cm,htext-rm,htext-lb,htext-cb,htext-rb" 
				styles="htext-e,htext-e,htext-p,htext-s"/>
implicit using this definitions form AppAssets.xml
Spoiler:

Code:
  		<style font="Swis721 BT" size="15" style="bold">
			<style id="htext-e" halign="left" left="8" top="8" right="8" bottom="8">
			<style id="htext-d" color="#959595" background="#6D6D6D"/>
			<style id="htext-p" background="#B49AFF"/>
			<style id="htext-s" background="#B49AFF"/>
		 </style>	
		</style>
..
        <texture href="../AppAssets/AppLabels.png">
..		
			<cutout id="htext-lt" x="305" y="230" width="5" height="5" lines="30"/>
			<cutout id="htext-ct" x="311" y="230" width="10" height="5" lines="30" />
			<cutout id="htext-rt" x="325" y="230" width="10" height="5" lines="30"/>
			<cutout id="htext-lm" x="305" y="240" width="5" height="10" lines="30"/>
			<cutout id="htext-cm" x="311" y="240" width="10" height="10" lines="30"/>
			<cutout id="htext-rm" x="325" y="240" width="10" height="10" lines="30"/>
			<cutout id="htext-lb" x="305" y="250" width="5" height="10" lines="30"/>
			<cutout id="htext-cb" x="311" y="250" width="10" height="10" lines="30"/>
			<cutout id="htext-rb" x="325" y="250" width="10" height="10" lines="30"/>

so the new style "eventText" will be the same as "helpText" from AppAssets.

Just replace the second line of your definitions with some other text-styles to meet your requirements.

The four text-styles (indicated by the trailing char d,e,p,s) stands for the four (4) possible states of the element:
d-isabled
e-nable
p-ressed
s-elected
The order may vary from element to element, but you can always check with the defsked sources of fskin.

Regards
Mark
Mark Nord is offline   Reply With Quote