BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 08-02-2008, 03:35 PM   #1
omrib
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 8800
PIN: N/A
Carrier: Orange
Posts: 26
Default How to create separate rectangle areas, like in Blackberry 4.5

Please Login to Remove!

In the new blackberry 4.5 simulators, when creating a new task or calendar appointment, there are areas that are separated in rectangles

how do I create that kind of manager, is it something built in?



Here is an example.
Offline  
Old 08-03-2008, 01:07 PM   #2
omrib
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 8800
PIN: N/A
Carrier: Orange
Posts: 26
Default

Any comment?
Offline  
Old 08-03-2008, 01:32 PM   #3
CELITE
Thumbs Must Hurt
 
Join Date: Dec 2005
Model: 8310
Carrier: Rogers
Posts: 138
Default

These are probably internal fields but you could easily build one that looks like it. Just extend VerticalFieldManager and override paint. Use fillRoundRect to achieve the rounded rectangles.
Offline  
Old 08-03-2008, 01:38 PM   #4
omrib
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 8800
PIN: N/A
Carrier: Orange
Posts: 26
Default

OK, thats what i was thinking
Extend VerticalFieldManager, set the background color gray.

but how do i get the sizes of the elements that I'm painting in paint, so i know to put the into position and paint them in the fillRoundedRect?

BTW, thanks alot for you comment ;-D
Offline  
Old 08-03-2008, 02:26 PM   #5
CELITE
Thumbs Must Hurt
 
Join Date: Dec 2005
Model: 8310
Carrier: Rogers
Posts: 138
Default

You can override subpaint in VerticalFieldManager.

Then you can call getExtent() to get the XYRect that describes the relative position and width and height of the manager. Use those values to fill the round rect.
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


OEM Dell 3310 2 in 1 LCD Touch Screen D2TNH NV133FHM-T00 06GHX8 picture

OEM Dell 3310 2 in 1 LCD Touch Screen D2TNH NV133FHM-T00 06GHX8

$54.00



OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5 picture

OEM Dell XPS 8910 8920 8930 Alienware Aurora R5 R6 R7 Front Cooling Fan 7M0F5

$13.81



Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI picture

Genuine OEM Dell 2375 B2375dnf B2375dfw 110V Fuser fixing N41P2 sku 724-BBCI

$94.99



Dell OEM Latitude Rugged Extreme 7404 Ribbon Cable for ExpressCard Cable G52B00 picture

Dell OEM Latitude Rugged Extreme 7404 Ribbon Cable for ExpressCard Cable G52B00

$9.95



1 of Dell OEM Optiplex 7040 3040 5040 3046 I/O VGA Board w/ Cable TXA01 FP9X3 picture

1 of Dell OEM Optiplex 7040 3040 5040 3046 I/O VGA Board w/ Cable TXA01 FP9X3

$22.93



DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X  - Made By DELL picture

DELL 330-6581 3306581 725-10229 OEM LAMP FOR 1510X 1610HD 1610X - Made By DELL

$39.98







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