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

LOT 4 - SYMBOL PDT PDT3100 46 KEY,8 LINE DISPLAY 7.6 MEMORY 2.2 MEMORY BATCH
$199.99
LOT 4 - SYMBOL PDT PDT3100 46 KEY,8 LINE DISPLAY 7.6 MEMORY 2.2 MEMORY BATCH pictureMicron / Crucil 32 MB SDRAM DIMM Memory PC66 168 Pin MT16LSDT464AG-66CL2
$6.0
Micron / Crucil 32 MB SDRAM DIMM Memory PC66 168 Pin MT16LSDT464AG-66CL2  pictureYork 031-02068-001 8mb FLASH MEMORY CARD, PROGRAMMED (U46)
$10.0
York 031-02068-001 8mb FLASH MEMORY CARD, PROGRAMMED (U46) pictureSquare D 52045-034-50 EQ5300 Mempack Memory Module Weld Control 5204503450
$22.99
Square D 52045-034-50 EQ5300 Mempack Memory Module Weld Control 5204503450 picture2 pcs Mitsubishi DRAM Memory IC Chip. [M5M4256P-12]
$4.75
2 pcs Mitsubishi DRAM Memory IC Chip. [M5M4256P-12] picture






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