BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-29-2008, 03: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 03:55 AM.
Offline  
Old 04-29-2008, 01: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, 01: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  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





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