What is it??
Bens ListBox Extras is a REALbasic ListBox subclass allows you to easily print the contents of the ListBox, includes better cell formatting and a quick way to add and store hierarchical data.
To use it just add the contents of the "Bens ListBox Extras" folder to your project and set your ListBox Super to "Bens ListBox Extras".
Features:
- Easily print a high resolution copy of the contents of a ListBox including custom headers and footers on each page
- Different font and font sizes for the cells and headers
- Provides a quick, standard way to add and store hierarchical data (1 row deep)
- Allows suppressing mouse clicks in the ListBox Header and optionally allow the columns to be resized
- Gets the Header Height (note, now provided in RB 2009r1)
- Add pictures to any cell and any position in that cell
- Custom cell background colors
- iTunes like odd/even row coloring
- adds in a workaround for REALbasic bug for versions prior to RB 2009r1 to allow drawing the row background color past the last column (like iTunes).
- adds Popup Menu type for cells/columns. The CellAction event includes x, y location for the menu
- adds RectControls to any cell (these can also be printed)
- can set the color of cell text
- can set the font and font size per cell
- Mac style listbox selection including options for Blue and Gray gradient highlight styles
- Resize columns to largest cell text (this includes the column header text)
Requirements
REALbasic 2006r3 or higher
License & Registration
To use this code in your application you need to purchase a license from Ben's Software. A license is $US30 payable via PayPal. The license includes the full source code and you get priority on feature requests. You are also helping support future updates to this class.
Please note: The only exception to this is freeware applications. You do not need to purchase a license for freeware applications, you only need to acknowledge me in your application's About Box.
This code ©2007-2010 Ben Blake. Where I have copied or based code on contributions from others it is acknowledged in the method.
Future (possible) Features
- Non-Condensed text in cells
- Animate the Progressbar