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

81523601 CROUZET 81 523 601 Pneumatic Memory Element
$55.0
81523601 CROUZET 81 523 601 Pneumatic Memory Element pictureRICOH Fax Connection Unit Type A EDP CODE 416207 MODEL # D629-31 SD MEMORY CARD
$20.0
RICOH Fax Connection Unit Type A EDP CODE 416207  MODEL # D629-31 SD MEMORY CARD pictureSmith Corona Spell Right Dictionary SD 700 Memory Typewriter w/ Instructions
$34.99
Smith Corona Spell Right Dictionary SD 700 Memory Typewriter w/ Instructions pictureNEW Measurex ASSY 05334700 Rev. C Paper Machining Gauging Memory Module
$34.5
NEW Measurex ASSY 05334700 Rev. C Paper Machining Gauging Memory Module pictureSiemens Sinumerik 6FX1120-2CA00 Memory Module Card
$52.76
Siemens Sinumerik  6FX1120-2CA00  Memory Module Card picture






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