BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 03-20-2009, 04:47 AM   #1 (permalink)
New Member
 
Join Date: Mar 2009
Model: 8310
PIN: N/A
Carrier: Telkomsel
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Multiple Managers handle a Screen

Please Login to Remove!

Dear all,

I'm trying to develop two managers who in charge for handling one screen.
The first Screen, let's say TopHorizontalScreen, occupies the top of the screen and manages fields horizontally.

The second, BottomVerticalScreen occupies the rest of the screen and manages fields vertically.

What i can do successfully for now is, letting the screen being managed by one of the screens, not both.

This is the way the screens are added to the screen :

Code:
public CompactScreen() {
		add(bottomVerticalManager);
		add(topHorizontalManager);
	}
And as i said, it doesn't work. Only one manager can handle the screen.

But if i change the code to :

Code:
public CompactScreen() {
		add(topHorizontalManager);
		topHorizontalManager.add(bottomVerticalManager);
	}
It works!! But i'm confuse. Why should i put a manager inside another? Adding the bottomVerticalManager to the topHorizontalManager means the former is managed by the latter, right?

Last edited by siagianfaber : 03-20-2009 at 04:49 AM. Reason: better readability
Offline  
Old 03-20-2009, 07:35 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

it should work the first way adding them both to the Screen's manager.

you should add you topHorizontalManager first and then your bottomVerticalManager. In your code it's vice versa. mistake?

you should also provide the code for creating the both managers.
__________________
Blessed is the end user who expects nothing, for he/she will not be disappointed. (Franklin's Rule)
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.