(Example: +cartoon +desktops) Advanced Search & Tips
See the Home Page side bar for links to more sections!
App Makeovers Desktop Pictures Icons MacOS X Mods Safari Stuff
Application Splashes Dock Poofs iTunes Skins MacOS X Themes Snapshots
Boot Images Download Stats Links Page Mouse Cursors Uploads
Boot Panels GUI Software Login Panels REALbasic User Forum
Clocks Home Page
Download a free demo of REALbasic!
Download a free demo of REALbasic!
Recent Articles...
Attention
Mac OS X 10.2 Users!

Browse with Sherlock
By Date


By Category

3D
3D Photo Gallery Part 2 (12-06-01)
3D Photo Gallery Part 1 (11-29-01)

Audio
Laugh Track Machine
Audio Player with Reverb
Shepard Melody(11-08-01)
RB Phone Home (10-25-01)
Build a Drum Machine (10-04-01)

General RB
Listbox Auto-Find
iTunes-style Listboxes
Virtual Volumes
Time Tracker
Software Distribution Part 4
Software Distribution Part 3
Software Distribution Part 2
Software Distribution Part 1
Exceptions
Custom Controls (8-2-01)
Living on the Edge (6-21-01)
Tips and Tricks (6-14-01)
Review of REALbasic 3.0 (2-19-01)
Text Clippings Made Easy (5-10-01)

Graphics
Shimmer Graphics
Lissajous Figures
Simple Screen Capture
Vector Graphics
Kaleidoscope Images
Stegonography
Spirals!
Image Table (11-15-01)
RB Magnifying Lens (10-11-01)
Screen Capture (8-9-01)
Color Picker Tutorial (6-7-01)

Hacks
Ghost Grab
Speedy Mouse Extension(11-01-01)
iTunes Plugins (8-23-01)
iTunes Skinner (7-26-01)

Internet
HTML IMG Tags
Version Tracking
Even Smarter Instant Messaging
Web Tiler
JavaScript and REALbasic (10-02-01)
Stock Ticker - Part II (9-06-01)
Stock Ticker - Part I (8-30-01)
AIM Mate (8-16-01)

Mac OS X
Build a Bundle Part 2
Build a Bundle Part 1
Dock Your Passwords
Mac OS X Debugging
REALbasic Mac OS X Icon Tutorial (12-13-01)
Animate Your Dock (5-17-01)
RB and the Command Line (5-3-01)

Novelty
Tile Mixer
Zip Code Finder
Happy Valentine's Day
Merlin Simulator Part 3 (01-24-02)
Merlin Simulator Part 2 (01-17-02)
Merlin Simulator Part 1 (01-10-02)
Buzzword Machine (10-18-01)
AppleSoft BASIC (9-20-01)

Printing
Print to PDF

Resources
Picture Extractor 2 (5-31-01)
Picture Extractor 1 (5-24-01)

Serial
Caller ID Part 3 (7-12-01)
Caller ID Part 2 (7-5-01)
Caller ID Part 1 (6-28-01)

Speech
Speech Recognition (9-13-01)
Video
Big Brother Video Capture

Newest Dev Tools!

Book Alert !
REALbasic for Dummies
by Erick Tejkowski
$19.99 @ Amazon

Made with REALbasic!

Problems?
Downloads are in StuffIt 5 format (free download).
Tell me about a bad link (Thanks!).
Submission Policy

8-8-02

Listboxes like iTunes by Erick Tejkowski

08-08-02_small.jpg (17k) In this week's REALbasic tutorial, we'll take a look at how to create a Listbox that mimics those pretty blue-and-white lists in iTunes.


Build the Interface

This week's project is very straightforward. It will take you about 30 seconds to build, but it shows some important features of the REALbasic Listbox. So, let's get started!

Launch REALbasic and open Window1 from the Project window. To this window, add one control - a Listbox. Set ColumnCount to a value of 3 in the Properties Window.

That's the whole interface!

Source Code

The source code for this week's project is simple too. First, we need some code in the Open event of Listbox1. This code snippet adds 20 rows to the Listbox upon launch.

  
  dim i as integer
  
  for i=1 to 20
    me.addrow "Row "+str(i)
    me.cell(me.lastIndex,1)=str(rnd*10)
    me.cell(me.lastIndex,2)=str(rnd*30)
  next
  

Next, navigate to the CellPaint event of Listbox1 and add this code:

  
  //fill in even numbered rows
  //with light blue color
  //odd rows get no color (i.e. white)
  if (row mod 2)=0 then
    g.foreColor = rgb(232,235,255)
    g.fillrect 0,0,g.Width,g.height
  end if
  
  //if selected,
  //fill in row with dark blue color and white text
  //otherwise draw with black text
  if me.selected(row) then
    g.foreColor = rgb(66,82,255)
    g.fillrect 0,0,g.Width,g.height
    g.foreColor = rgb(255,255,255)
  else
    g.foreColor = rgb(0,0,0)
  end if
  
  //draw the string
  g.drawstring me.cell(me.lastIndex,1),0,0
  
  

This code does the colorizing of the rows, including the selection. The graphics object represents the background of the Listbox. You can use it to draw just like you would in a Canvas. The end result looks like this:

08-08-02_large.jpg (46k)

Conclusion

To test the project, select the Debug-Run menu. Even though this project is super simple to create, you can download the completed version instead if you prefer. Have fun and see you next week!


8-6-02

REALbasic News by Erick Tejkowski

Made with REALbasic
James Baxter has released his new app entitled "Shut up". It can be found at http://www.baxtercomputer.com/shareware/shut_up.sit

More MWRB
Paul Rodman just released the latest version of AstroPlanner, an astronomical planning, logging and telescope control and alignment app written in REALbasic for all three platforms. A Swiss Army knife for serious amateur astronomers...

You're suspended!
James Sentman announced his new REALbasic class entitled CSuspendAppleEvent. This class allows you to handle apple events asynchronously. You can be processing any number of events at once as you like. You no longer need to return the data at the end of the HandleAppleEvent routine, but can do so at your leisure.

StringStuff Plugin
Theo Smith's String Stuff Plugin - A REALbasic product for programmers offers a huge range of string processing functions: 254 functions or properties.

Sort Library
Charles Yeomans announced the release of version 1.9 of SortLibrary. SortLibrary is an open-source REALbasic library providing robust, optimized implementations of several standard sorting algorithms for use by REALbasic developers. The main change is a rewrite of the binary search algorithm; it's now about 17 percent faster (25 microseconds v. 30 microseconds for searching an array of 100,000 objects on an integer key). In addition, SortLibBinarySearch now always returns the first match in the presence of objects with equal keys. Download it today!

Bar Codes
Intelli Innovations announced the release of Barcode Producer 1.5, a major upgrade to its vector barcode generation software for the Mac. "Barcode Producer 1.5 includes the features our customers requested most, including optical fonts and easier ISBN barcode generation," said Paul Scandariato, CTO of Intelli Innovations. "This new release sets a strong foundation for future barcode-related software and hardware offerings from Intelli Innovations."

Glone
The La Jolla Underground is pleased to announce the immediate availability of Glone 1.0. Glone is a game that pits your space ship against the Glones. The Glones are cute, but deadly. Their plan is to destroy Earth. We think. As with anything we don't understand, we must destroy them. Before they destroy us. Glone is free and can be found here. Glone is made with REALbasic.


See the Home Page side bar for links to more sections!
App Makeovers Desktop Pictures Icons MacOS X Mods Safari Stuff
Application Splashes Dock Poofs iTunes Skins MacOS X Themes Snapshots
Boot Images Download Stats Links Page Mouse Cursors Uploads
Boot Panels GUI Software Login Panels REALbasic User Forum
Clocks Home Page

Maintained by the Staff of ResExcellence. This entire site ©1997-2003 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement.

761 on the ResEx LinuxPPC Server