BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-09-2008, 11:06 AM   #1 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8120
PIN: N/A
Carrier: Airtel
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to divide the Screen in 2 parts? (Need to show Carousel)

Please Login to Remove!

Hi all ..

I am writing a BB application (RIM JDE 4.2) and need to show a carousel at the bottom of the screen. For that I need to divide the screen into two horizontal parts. For e.g. If I have a list in the upper part of the screen and if the list size is greater than that can be displayed in the upper part of the screen then a vertical scroll must appear for the upper part of the screen, keeping the lower part of the screen intact. So, that a series of buttons can be used to implement the Carousel feature. Could not find a way to do that.

Need to know how to divide the screen in 2 horizontal parts.
Please help me out on this .. and if this has been discussed already, pls point me to the appropriate thread.

Thanks a lot.
- Omi
Offline  
Old 07-09-2008, 11:47 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

look here:
Help in dividing mainScreen into two...
Offline  
Old 07-09-2008, 11:51 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

just looked in my code. actually the managers are scrollable there and not the listfield inside...

Code:
		_vfmTop = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR | VerticalFieldManager.USE_ALL_WIDTH)
		{
			protected void sublayout(int maxWidth, int maxHeight)
			{
				super.sublayout(maxWidth, maxHeight);
				setExtent(maxWidth, maxHeight/2);
			}
		};

		_vfmBottom = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR | VerticalFieldManager.USE_ALL_WIDTH)
		{
			protected void sublayout(int maxWidth, int maxHeight)
			{
				super.sublayout(maxWidth, maxHeight);
				setExtent(maxWidth, maxHeight);
			}
		};

Last edited by Ivanov : 07-09-2008 at 11:52 AM.
Offline  
Old 07-10-2008, 07:23 AM   #4 (permalink)
New Member
 
Join Date: Jul 2008
Model: 8120
PIN: N/A
Carrier: Airtel
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks a lot Ivanov ..
that really helped .. with just few changes ..

Cheerz!
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.