Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
arunbiet
Posts: 376
Registered: ‎06-22-2010
My Device: na
My Carrier: blackberry developer

Setting style in labelfield not working

I dont know why,but this line of code does nothing

 

	g.setDrawingStyle(DrawStyle.ELLIPSIS,true);

 I want ellipse style,and i dont want to do it from constructor,rather from the paint method.So can anyone guide me into it?

Please use plain text.
Developer
simon_hain
Posts: 16,001
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Setting style in labelfield not working

as far as i know dynamic changes in the drawing style don't work properly. you could replace the field with another labelfield where this style is set.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Developer
arunbiet
Posts: 376
Registered: ‎06-22-2010
My Device: na
My Carrier: blackberry developer

Re: Setting style in labelfield not working

Thats the problem developing for Blackberry,there are many things which are listed in the API and its documentation is clear,but when you implement,it doesnt work properly.Its so frustrating.

Please use plain text.