pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lello <rborre...@gmail.com>
Subject Re: TabPane corner and button style
Date Thu, 07 Apr 2011 15:58:52 GMT

Greg Brown-2 wrote:
> 
>> Never mind, I found out how to do it, I had forgotten to cast the
>> TabDataRenderer to a ButtonDataRenderer.
>> 
>> However, the text is not displayed correctly, I mean it is centered
>> whereas
>> I want it to be left aligned.
>> I guess I have to write by ButtonDataRenderer.
> 
> I'd suggest creating a new instance of ButtonDataRenderer and setting the
> horizontalAlignment style on it. Then call TabPane#setTabDataRenderer()
> with the new instance.
> 

Thanks for the hint, in the end I wrote a new ButtonDataRenderer cause I
need a deeper control on the
tab button.

--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/TabPane-corner-and-button-style-tp2778983p2790773.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Mime
View raw message