BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-11-2008, 08: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, 08: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, 09: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, 02: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

Wedding Marriage Thank You For Wonderful Memory Angels Banner Sign 3 ft x 6 ft
$39.95
Wedding Marriage Thank You For Wonderful Memory Angels Banner Sign 3 ft x 6 ft pictureSIEMENS 6ES7951-0KF00-0AA0 6ES7 951-0KF00-0AA0 S7 MC 951 Memory Card 64KB NIB
$149.99
SIEMENS 6ES7951-0KF00-0AA0 6ES7 951-0KF00-0AA0 S7 MC 951 Memory Card 64KB NIB pictureLot of 42 Hynix 1GB 2Rx16 PC2-5300S-555-12 RAM SODIMM Laptop Memory
$99.99
Lot of 42 Hynix 1GB 2Rx16 PC2-5300S-555-12 RAM SODIMM Laptop Memory pictureEasy View Light Meter with Memory
$377.99
Easy View Light Meter with Memory pictureMEMORIAL DAY 5K WALK RUN HONOR HEROES CUSTOM Banner Sign 4' x 8' w/ 8 Grommets
$69.99
MEMORIAL DAY 5K WALK RUN HONOR HEROES CUSTOM Banner Sign 4' x 8' w/ 8 Grommets picture






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