BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 08-02-2008, 03:35 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 8800
PIN: N/A
Carrier: Orange
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 8800
PIN: N/A
Carrier: Orange
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Any comment?
Offline  
Old 08-03-2008, 01:32 PM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Dec 2005
Model: 8310
Carrier: Rogers
Posts: 138
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2008
Model: 8800
PIN: N/A
Carrier: Orange
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
Thumbs Must Hurt
 
Join Date: Dec 2005
Model: 8310
Carrier: Rogers
Posts: 138
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


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

(VTG) 1984 P & H Harnischfeger yellow hard hat Dec 1st birthday bash milwaukee
$29.99
(VTG) 1984 P & H Harnischfeger yellow hard hat Dec 1st birthday bash milwaukee pictureVintage Rare DEC 1073D / 1996 JD3487 H 9833
$49.99
Vintage Rare DEC 1073D  / 1996 JD3487 H 9833    pictureDEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chips *NEW* 40278101
$60.0
DEC / AMI 304E 21-15542-01 vintage ceramic IC - KTF11 Chips *NEW* 40278101  picture* VINTAGE REPRINT DEC. 10, 1951 AMERICAN MACHINIST BROCHURE *
$1.99
* VINTAGE REPRINT DEC. 10, 1951 AMERICAN MACHINIST BROCHURE * pictureVintage SIGNODE Crimping W14 Tool 17.5" long pat#1784123 dec9 1930 /N12167
$61.22
Vintage SIGNODE Crimping W14 Tool  17.5






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