BlackBerryForums.com : Your Number One BlackBerry Community      

»Sponsored Links



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
loup Offline
New Member
 
Posts: 3
Join Date: Nov 2005
Model: 7290
Question How To: Table Header - 11-15-2005, 09:58 AM

Hi guys,

does anyone of you have a good idea of how to get a table header into a ListField (so that the first entry in the listfield is the table header sotospeak).
This there a way to add an only one empty element to the list and then paint over it?

I'd appreciate some help ;o)
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
ecarmody Offline
Thumbs Must Hurt
 
Posts: 80
Join Date: Apr 2005
Location: Portland, OR., USA
Model: 8100
Carrier: Cingular
Default 11-17-2005, 03:54 PM

I just position a LabelField above the listfield. Put spaces in and play with the header title positions and make the columns of data in the list field line up under the headers. Since you control the graphic pixel location of where the listfield columns are written to, and the width, you can reliable create columns of data under the header row.

Furthermore, if you use two Managers (use all width), put the header row in the top manager and the listfield in the lower manager, playing the the manager styles you should be able to have the top header row anchored while the lower listfield vertically scrolls and leaves the header row always visible.

headerRow.setText("Customer PO Order Ship Fill%");

Good luck,
Eric
   
  (#3 (permalink)) Old
loup Offline
New Member
 
Posts: 3
Join Date: Nov 2005
Model: 7290
Default 11-18-2005, 02:30 AM

Thx,

I came up with a FixedSizeLabelField, where I can decide on the width of the field. I put some of the fields in one Manager and then I got my tableHeader.
But I really like the idea with the two managers, I'll give that a try!


-- First things first, but not necessarily in that order. --
   
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






Copyright © 2004-2008 BlackBerryNews.com, BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.1