You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by chris_d_k <ck...@christiankiefer.de> on 2014/07/04 11:45:11 UTC

Problem with the TextIput_border

Hi,

I created an custom fxg for the TextIput_border of a spark mobile TextInput.
The problem is that with my border I cannot see the text or the cursor (also
if it is not white...).

Best Regards, Christian

<Graphic version="2.0" xmlns="http://ns.adobe.com/fxg/2008" 
		 scaleGridLeft="8" scaleGridTop="8" scaleGridRight="252"
scaleGridBottom="25">

    

	
	<Path data="M 6 1 C 6 1 254 1 254 1 C 257 1 259 3 259 6 C 259 6 259 27 259
27 C 259 30 257 32 254 32 C 254 32 6 32 6 32 C 3 32 1 30 1 27 C 1 27 1 6 1 6
C 1 3 3 1 6 1 Z M 6 0 C 3 0 0 3 0 6 C 0 6 0 27 0 27 C 0 30 3 33 6 33 C 6 33
254 33 254 33 C 257 33 260 30 260 27 C 260 27 260 6 260 6 C 260 3 257 0 254
0 C 254 0 6 0 6 0 Z " alpha="0">
		<fill>
			<SolidColor color="#505050"/>
		</fill>
	</Path>

	
    <Path data="M292 0Q298 0 298 6L298 44Q298 50 292 50L6 50Q0 50 0 44L0 6Q0
0 6 0L292 0M296 6Q296 2 292 2L6 2Q2 2 2 6L2 44Q2 48 6 48L292 48Q296 48 296
44L296 6">
        <fill>
            <SolidColor color="#B5D16E"/>
        </fill>
    </Path>

</Graphic>



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-with-the-TextIput-border-tp7174.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Problem with the TextIput_border

Posted by chris_d_k <ck...@christiankiefer.de>.
Okay... Got it... its just the border... have to search where to change the
background... sorry



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-with-the-TextIput-border-tp7174p7179.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Problem with the TextIput_border

Posted by chris_d_k <ck...@christiankiefer.de>.
Thanks a lot for the answer... currently I just use the 

			setStyle("contentBackgroundAlpha", 1);
			setStyle("contentBackgroundColor", 0xFFFFFF);

in my extended TextInputSkin ...

But I will test the swapChildren later...



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-with-the-TextIput-border-tp7174p7182.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Problem with the TextIput_border

Posted by Maurice Amsellem <ma...@systar.com>.
Looking at the code in StageTextSkinBase, it looks like border   is always added AFTER textDisplay, so the text is behind.
So maybe you can try swapping them using swapChildren( border, textDisplay)
Let me know if it works.

Maurice

-----Message d'origine-----
De : chris_d_k [mailto:ck@christiankiefer.de] 
Envoyé : vendredi 4 juillet 2014 13:21
À : users@flex.apache.org
Objet : RE: Problem with the TextIput_border

Hi Maurice,

I recognized that it is because I didn't set the alpha value... when I set it (f.e. = 0.75), I see the Text is behind the skin.

So any idea how I can bring the text in front? I thought it uses StageText and that this is always in front... 





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-with-the-TextIput-border-tp7174p7177.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Problem with the TextIput_border

Posted by chris_d_k <ck...@christiankiefer.de>.
Hi Maurice,

I recognized that it is because I didn't set the alpha value... when I set
it (f.e. = 0.75), I see the Text is behind the skin.

So any idea how I can bring the text in front? I thought it uses StageText
and that this is always in front... 





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-with-the-TextIput-border-tp7174p7177.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

RE: Problem with the TextIput_border

Posted by Maurice Amsellem <ma...@systar.com>.
Can you post a screenshot to show what it looks like , and the corresponding source code?

Don't attach files to the email, use external storage such as DropBox.

Maurice 

-----Message d'origine-----
De : chris_d_k [mailto:ck@christiankiefer.de] 
Envoyé : vendredi 4 juillet 2014 11:45
À : users@flex.apache.org
Objet : Problem with the TextIput_border

Hi,

I created an custom fxg for the TextIput_border of a spark mobile TextInput.
The problem is that with my border I cannot see the text or the cursor (also if it is not white...).

Best Regards, Christian

<Graphic version="2.0" xmlns="http://ns.adobe.com/fxg/2008" 
		 scaleGridLeft="8" scaleGridTop="8" scaleGridRight="252"
scaleGridBottom="25">

    

	
	<Path data="M 6 1 C 6 1 254 1 254 1 C 257 1 259 3 259 6 C 259 6 259 27 259
27 C 259 30 257 32 254 32 C 254 32 6 32 6 32 C 3 32 1 30 1 27 C 1 27 1 6 1 6 C 1 3 3 1 6 1 Z M 6 0 C 3 0 0 3 0 6 C 0 6 0 27 0 27 C 0 30 3 33 6 33 C 6 33
254 33 254 33 C 257 33 260 30 260 27 C 260 27 260 6 260 6 C 260 3 257 0 254
0 C 254 0 6 0 6 0 Z " alpha="0">
		<fill>
			<SolidColor color="#505050"/>
		</fill>
	</Path>

	
    <Path data="M292 0Q298 0 298 6L298 44Q298 50 292 50L6 50Q0 50 0 44L0 6Q0
0 6 0L292 0M296 6Q296 2 292 2L6 2Q2 2 2 6L2 44Q2 48 6 48L292 48Q296 48 296
44L296 6">
        <fill>
            <SolidColor color="#B5D16E"/>
        </fill>
    </Path>

</Graphic>



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Problem-with-the-TextIput-border-tp7174.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.