On this page you will find all my REALbasic modules and classes. All code ©2002-10 Ben Blake. Please Contact Me if you have any suggestions or find any bugs.
Shareware
This class requires you to pay a license fee via PayPal. To use this code in your application you need to purchase a license from Ben's Software. The license includes the full source code and you get priority on feature requests. However, you do not need to purchase a license for freeware applications, you only need to acknowledge me in your application's About Box.
IconBens ListBox Extras 1.4 (released 25th January 2010)
Download (128K Zip file)
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. A license is $US30 which is payable via PayPal.
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
  • 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 class requires REALbasic 2006r3 or higher.

Changes in the last version:
  • prints users code in the regular Listbox CellBackgroundPaint event
  • added scaling of listbox cell width to printing width, height is scaled to maintain aspect ratio
  • added font and graphics scaling to the DPI of output device
  • rows can now be set to expanded from the AddFolder method
  • first row can be selected properly
  • Using the arrow keys no longer causes random crashes (was an issue with the FillRectGradient)
  • No longer crashes when drawing Controls in rows that are not currently visible
  • Last version to support Carbon PEF builds

Freeware
All these modules and classes are free for your use and open source, but are not public domain. If you use any of these modules or classes in your application I would appreciate it if you mention me in your application's About Box.
IconStyleGrid, Grid and DataGrid Printing Modules 2.4 (released 29th January 2008)
Download (120K Zip file)
This is a set of 3 free modules that lets you easily print the grids (StyleGrid 8.3, DataGrid 5.5 and Grid 3.x) available from Einhugur Software
The modules require REALbasic 5.5 or higher. For older versions of the Grids or REALbasic then you can still download v1.7 (148K Stuffit 5 file).

Changes in the last version:
  • fixed bug where rows would not move onto the next page (mainly for large row heights)
  • rows which are larger than a single page are drawn and the code does not go into an endless loop
  • Read Me file should open in Mac OS X 10.5
  • fixed encoding bug in the Cell Text

IconTreeView Printing Module 1.2.2 (released 29th January 2008)
Download (24K Zip file).
This is a free module that lets you easily print the contents of the TreeView (v1.7 or higher) plugin available from Einhugur Software. This module requires REALbasic 5.5 or higher.

Changes in the last version:
  • fixed bug where rows would not move onto the next page (mainly for large row heights)
  • Read Me file should open in Mac OS X 10.5
  • fixed encoding bug in the Cell Text

Icon MathField 1.1 class (released 16th March 2005)
Download (44K Zip file)
MathField is a free REALBasic EditField class which allows simple math operations to be entered into the EditField and be evaluated. It supports the following operations: +, -, *, /, ^, ( ), {}, [ ] along with negative numbers and nested brackets. This module requires REALbasic 5.5 or higher.