BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-29-2008, 02:28 AM   #1 (permalink)
Thumbs Must Hurt
 
baran_khan's Avatar
 
Join Date: Apr 2008
Model: 9500
PIN: N/A
Carrier: Airtel
Posts: 110
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Custom Layout

Please Login to Remove!

Hi,

I need a custom layout that have a fixed width but incremental height. Basically I want it to increase vertically depending upon the content(the text content). Till now All i am able to do is to fix both height and width. If i remove the height from the custom manager, it will use all the screen height.

Can anyone help in identifying how to get the height at runtime.

Last edited by baran_khan : 04-29-2008 at 02:55 AM.
Offline  
Old 04-29-2008, 12:58 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you get the font in use, and call [font].getHeight(), you should be able to notify your fieldManager the cumulative heights and adjust accordingly.
Offline  
Old 04-30-2008, 12:55 AM   #3 (permalink)
Thumbs Must Hurt
 
baran_khan's Avatar
 
Join Date: Apr 2008
Model: 9500
PIN: N/A
Carrier: Airtel
Posts: 110
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply...I have sorted this problem...thanks again!!!!
Offline  




Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.