Articles 3D Audio Custom Controls General RB Graphics Hacks Mac OS X Menus Novelty Printing REALbasic 2005 REALbasic 2006 Registration Resources Reviews Serial Speech Sockets XML Video Resource Links News Current News February 2006 January 2006 December 2005 November 2005 October 2005 September 2005 August 2005 July 2005 June 2005 May 2005 April 2005 March 2005 ![]() REALbasic for Dummies by Erick Tejkowski ![]() Learning REALbasic through Applications REALbasic for Macintosh REALbasic Cross-Platform Application Development
Older files are in Stuffit 5 or greater format. Newer files are ".Zip". Download StuffIt Expander |
|
iTunes ListBox Create the Class
row mod 2 will equal 0 on every other row (0 mod 2 is 0, 2 mod 2 is 0, 4 mod 2 is 0...) so that's our switch for alternating between blue and white. AlternateRows is a boolean property which can allow you to use the same class for both alternating and non-alternating lists. To make it show up in t he properties list in the window editor, go to the project tab and Right/Control-Click on the ARListBox class and select "Window Editor Behavior..."
Here you'll see a list of the public properties of the ARListBox class and checkbox next to each one. If the box is checked, that property will be displayed in the properties list in the window editor. This is the new home of the "Show in Properties List" checkbox that was in REALbaisc 5.5 and earlier when you created a property. So check that...
...and now when you add an ARListBox to the window in the window editor, you'll see the AlternateRows property way down at the bottom of the list. Check that box to have the alternating colors appear.
After that, we just need a little bit of test code that will just add rows to the listbox to test it.
|
||||
|
||||||||||||||||||||||||||||||||
Maintained by the Staff of ResExcellence. This entire site ©1997-2006 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement.
[an error occurred while processing this directive]