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
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 :

public CompactScreen() {
And as i said, it doesn't work. Only one manager can handle the screen.

But if i change the code to :

public CompactScreen() {
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
Old 03-20-2009, 07:35 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
Join Date: Apr 2008
Location: Germany, BW
Model: -
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts

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)

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