BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-05-2008, 08:40 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default [solved] "Not - full screen" application possible ?

Please Login to Remove!

Hi.

I am trying to create an App that will not span over full display.
Is there a way to do this in BB?

Description (example):
I would like to show a text field with background intact. So the Radio, Battery , wallpaper, etc. remain visible.

I have succeeded in creating a small (i.e., not full screen) window but the rest of the screen gets covered with white veil :(

Where should I look for more information ?

Thanks,

Myraddin

Last edited by myraddin : 09-09-2008 at 04:17 AM. Reason: More to the point
Offline  
Old 09-05-2008, 09:05 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

you have to use Ui.getUiEngine().pushGlobalScreen
it is not an easy task though.
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 09-05-2008, 09:08 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

So it is possible ?
Do you have any code snippets to get me over possible difficulties more quickly ?

Thank you for the reply.
Offline  
Old 09-05-2008, 09:10 AM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

The issue is that when your application is placed in the foreground, you are responsible for painting the entire display. You can work around this by creating a PopupScreen and pushing this screen using UiApplication.pushGlobalScreen.
Offline  
Old 09-08-2008, 04:57 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, I am doing this but the whole screen gets painted white (except, of course, the popup window)

any idea ?
Offline  
Old 09-08-2008, 04:58 AM   #6 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

And what I need is to let the background (e.g., main screen) to remain fully visible.
Offline  
Old 09-08-2008, 06:28 AM   #7 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

don't create an UiApplication, just an Application.
Here is a sample:
Code:
Ui.getUiEngine().pushGlobalScreen(new PopupScreen(vfm), 1, UiEngine.GLOBAL_QUEUE);
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 09-08-2008, 07:41 AM   #8 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Great !
It works.

Many thanks
Offline  
Old 09-10-2008, 03:36 AM   #9 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Smile Removing border/shadow ?

I think this is the best place to continue my inquiry regarding popup screen.

After successfully creating a popup screen (with background still visible) I am wondering if it is possible to remove its borders and shadow.

Maybe to override PopupScreen paint method? (how?)

Or is there any other way to do that?

Thanks
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.