BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 11-14-2007, 07:08 AM   #1 (permalink)
New Member
Join Date: Nov 2007
Model: 8830
Carrier: GPRS
Posts: 6
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How to create borderless PopupScreen

Please Login to Remove!

How to create a popup screen with no border line. I am creating a class which extends PopupScreen. Also, I want to place the fields in it which are verticaly centered and have some gap also.

I am new to Blackberry, so need help from you guys.

Old 05-26-2008, 03:37 AM   #2 (permalink)
Knows Where the Search Button Is
Join Date: Apr 2008
Model: 8100
Carrier: Hong Kong CSL
Posts: 18
Post Thanks: 0
Thanked 0 Times in 0 Posts

Anyone has the answer to this question?

The border drawing code does not seem to be inside the paint or paintbackground methods.

Infact, the border region seems to be outside the popupScreen rectangle.
Old 05-27-2008, 08:29 AM   #3 (permalink)
Thumbs Must Hurt
Join Date: Dec 2005
Model: 8310
Carrier: Rogers
Posts: 138
Post Thanks: 0
Thanked 0 Times in 0 Posts

Just implement a popupscreen yourself.

You can extend screen, and pass any kind of manager into the constructor. I recommend overriding that manager's sublayout method so that you can manually set the manager's position.

You will also have to implement the screen's sublayout method to set the extent and position of the screen, then call layoutDelegate.

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