Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Mudassir
Posts: 209
Registered: ‎11-08-2008
My Device: Not Specified
Accepted Solution

How to access the screen below PopUp screen

Hi,

I have made a transparent PopUp screen. But i want to acces the screen below that PopUp screen,such that PopUp screen remains on the top,but focus gets on the screen below.

 

I have got the screen below,by using :-

 

Ui.getUiEngine().getActiveScreen().getScreenBelow();

but i dont know how to set active the screen below,such that the Pop Up screen remains on the top.

 

thanks

Thanks and Regards
Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: How to access the screen below PopUp screen

To activate screen below - you have to pop the current screen.

 

Why do you need to activate screen below and preserve popup displayed? What is the purpose ?

Please use plain text.
Developer
Mudassir
Posts: 209
Registered: ‎11-08-2008
My Device: Not Specified

Re: How to access the screen below PopUp screen

Thanks for reply,

No, i want to access the below screen, with the Pop Up screen on the top.

I am using Pop Up screen to display some message. And want to use the below screen for navigation.

Is there any to way to achieve this ?

 

Thanks

Thanks and Regards
Please use plain text.
Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: How to access the screen below PopUp screen

[ Edited ]

In this case your popup screen should intercept all events and pass them to the screen located below.

 

Below located screen gets events and invalidates a screen area to repaint it.

 

That is not too trivial, but I think it is possible.

Message Edited by tbilisoft on 27-01-2009 01:29 PM
Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to access the screen below PopUp screen

I use the deprecated UiApplication.pushGlobalScreen() method below to do something like this.  The Global screen does not get 'focus' because I have set the last parameter to false, as there is no input allowed.  Focus remains on the underlying screen around which you can navigate.  If anyone can tell me how to replicate then "inputRequired = false" flag with the replaced method's flags, that would be very useful.

 

public final void pushGlobalScreen(Screen screen,
                                   int priority,
                                   boolean inputRequired)

Please use plain text.
Developer
Mudassir
Posts: 209
Registered: ‎11-08-2008
My Device: Not Specified

Re: How to access the screen below PopUp screen

Thanks a lot,

You got it. Yes actually previously i was using the option

Ui.getUiEngine().pushGlobalScreen(translucent, 4,UiEngine.GLOBAL_SHOW_LOWER);

but now it work fine.

i corrected as Ui.getUiEngine().pushGlobalScreen(translucent, 4, false);

I will mark it as a solution.

But please tell me how can i restrict scrolling or navigation on few fields on the below screen.

 

Thanks......

Thanks and Regards
Please use plain text.
Developer
peter_strange
Posts: 19,601
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to access the screen below PopUp screen

Don't understand your question about restricting focus.  I suggest you start a new Thread and try to explain what you want with an example.

Please use plain text.
Contributor
mojiizu
Posts: 42
Registered: ‎11-15-2010
My Device: Not Specified

Re: How to access the screen below PopUp screen

Can I use undeprecated method instead of ?

Please use plain text.
Developer
sickned
Posts: 88
Registered: ‎09-25-2008
My Device: Not Specified

Re: How to access the screen below PopUp screen

Any other solution instead using deprecated method? I cant use transitions with it.

Please use plain text.