BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-11-2008, 08:48 AM   #1
myraddin
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
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, 08:56 AM   #2
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

overwrite applyTheme()
__________________
java developer, Devinto, hamburg/germany
Offline  
Old 09-11-2008, 09:07 AM   #3
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Where? This is not found in the 4.2.1 API?
Offline  
Old 09-12-2008, 02:38 AM   #4
myraddin
Knows Where the Search Button Is
 
Join Date: Sep 2008
Model: 8900
OS: 4.3-4.6.1
Carrier: t-mobile
Posts: 39
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



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


US Stock 110VAC 60W 40KHz Ultrasonic Cleaning Transducer Cleaner & Driver Board picture

US Stock 110VAC 60W 40KHz Ultrasonic Cleaning Transducer Cleaner & Driver Board

$50.53



RDP Electronics Transducer Indicator E309 picture

RDP Electronics Transducer Indicator E309

$245.00



Psi-Tronix Motion Transducer Mod. 20 picture

Psi-Tronix Motion Transducer Mod. 20

$150.00



MTS LPRHVU00701 Temposonics Transducer Linear Position LPR-HVU-00701 90014868 picture

MTS LPRHVU00701 Temposonics Transducer Linear Position LPR-HVU-00701 90014868

$238.95



CR Magnetic CR4180-20 True RMS AC Current Transducer 3 Element - New picture

CR Magnetic CR4180-20 True RMS AC Current Transducer 3 Element - New

$229.95



Novotechnik TLH-0300 Position Transducer New One Expedited Shipping TLH0300  picture

Novotechnik TLH-0300 Position Transducer New One Expedited Shipping TLH0300

$193.50







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