Guessing Game
October 16th, 2008, by Paul Lefebvre in ResExcellence, Source Code
by Erick Tejkowski Did you know that your computer can read minds? This week we’ll witness its extraordinary mind-reading powers by creating a simple REALbasic project. See if you can figure out how it works before looking at the code! Downloads Because the code for this demo is drop-dead simple,...
Image Spinner
October 16th, 2008, by Paul Lefebvre in ResExcellence, Source Code
by Erick Tejkowski One of the most frequently asked questions among REALbasic lists is “How do I rotate an image?” This project will show you how to quickly and easily rotate an image in realtime. The REALbasic Group2D class simplifies matters significantly for us. By dragging a few items...
Resizable Sheets
April 4th, 2008, by Paul Lefebvre in Featured Articles, ResExcellence, User Interface
I needed this in a project I was working on and it turned out that Seth Willits had written about how to do this in a ResExcellence post from 2006. Download the code to try it out. To use it, simply include the ResizableSheet class in your project and set your sheet’s Super to it. And of course,...
CGS Private Functions
January 6th, 2008, by Paul Lefebvre in ResExcellence, Source Code, User Interface
by Seth Willits Mac OS X is full of private APIs available only to Apple to use in their own software and the operating system. Clever developers, much more knowledgeable than I, have been able to reverse engineer some of these APIs and do some neat things with them. I was fiddling with the CGSPrivate...
Zing with CapacityString
October 15th, 2007, by Paul Lefebvre in ResExcellence, Source Code, Strings
by Seth Willits In this tutorial we’re going to write a CapacityString class which will vastly improve string performance in certain situations. Now, I admit this tutorial isn’t exactly going to be eye catching, but I think for some of you it will be quite an eye opener. The Problem Let’s...
Splitter Control
October 15th, 2007, by Paul Lefebvre in Controls, ResExcellence, Source Code
by Seth Willits After much hard work and perspiration (not really)…….. it’s done. As I originally thought, this code will take forever to explain and I don’t think many of you will want to read it anyway. It works and that’s all you need to know, right? If you have any...
Alternating Color ListBox (like iTunes)
October 10th, 2007, by Paul Lefebvre in Controls, ResExcellence, User Interface
by Bob Keeney Many years ago, Erick Tejkowski posted a tutorial on alternating row colors to get the same style as an iTunes type listbox. The solution is simple, but yet many people still ask how to do it. We’ll step through the process on how to do this with REALbasic 2007. Create the Class Code...
MessageDialog Sheet
October 10th, 2007, by Paul Lefebvre in ResExcellence, User Interface
by Seth Willits The MessageDialog class is an important user interface element that if not done correctly, sticks out like a sore thumb on Mac OS X. Users expect a consistent message interface between applications, so it is critical that developers adopt and embrace the MessageDialog class as a part...
Quartz Gradients
September 15th, 2007, by Paul Lefebvre in Controls, ResExcellence, Source Code, User Interface
by Seth Willits Continuing the article about drawing a simple rectangle with a Quartz shadow, in this article we take a look at axial gradients. The code for this is actually a major pain to explain (I admit I don’t know everything there is to know about it as well), so, sorry, but I’m going...
Wiggle Window
September 13th, 2007, by Paul Lefebvre in ResExcellence, Source Code, User Interface
by Erick Tejkowski Should you accidentally enter the wrong password while logging onto an OS X machine, you’ll notice that the login window wiggles back and forth a few times. In fact, it looks like the login window is shaking its head “NO!” at you. This week we’ll look at how...