BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-11-2008, 09:48 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
Unhappy Theme choice dictating popup window placement

Please Login to Remove!

I am developing a popup screen application and have found out about a 'disturbing' effect of changing themes.

As it turns out, current theme not only dictates effects such as borders, shades, etc., but the position of the popup window too !

I was testing my app on 8810 simulator (which uses BB Dimension Zen theme) and have found out that the popup looked differently on my 8810 Phone with Vodafone Today theme. (it moved the popup window more to upper left)

Is there a way to circumvent such behavior?

My popup needs to cover the screen fully from left to right at a specific vertical position. And as so I must try to avoid depending on the theme.

Anyone have an ideas ?
Offline  
Old 09-11-2008, 09:56 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

overwrite applyTheme()
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 09-11-2008, 10:07 AM   #3 (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

Where? This is not found in the 4.2.1 API?
Offline  
Old 09-12-2008, 03:38 AM   #4 (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
Thumbs up Thanks, it works.

It's not documented (what a treat from simon.hain - thanks)

use:
Code:
protected void applyTheme()
    {}
in your screen class, and that's it.

You'll get a blank window without borders, shades and who knows what, and, additionally, the window will be correctly positioned (my previous tests showed that the theme dislocated window positions).
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.