Archive for the ‘Source Code’ Category

RegCode now available at Google Code

Posted on February 8th, 2008 by Paul Lefebvre

Not that anyone has ever submitted changes to RegCode, our open-source registration code generator, but I have greated a Google Code page for it:
regcode.googlecode.com
By using Google Code, RegCode is now in a nice Subversion repository, which anyone case download (if you’re interested in contributing, let me know and I’ll add you to the project so […]

Creating an Eval function using RBScript

Posted on January 20th, 2008 by Paul Lefebvre

On the REAL Software forums, someone posted a question about Eval functionality in REALbasic. In other languages, the Eval function is used to evaluate expressions. REALbasic doesn’t have a direct equivalent, but it does have RBScript which allows you to write and run your own code within your REALbasic application. With careful […]

CGS Private Functions

Posted on January 6th, 2008 by Paul Lefebvre

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 functions […]

OS X Style Preferences 3

Posted on December 29th, 2007 by Bob Keeney

Things have changed considerably in REALbasic over the years. When the 2nd version of this article came out in December of 2005, the REALbasic IDE had been rewritten to use the newer, modern interface and Carbon applications were still the rage for most Mac OS X applications. I will admit that the changes […]

NumberField Control

Posted on December 6th, 2007 by Paul Lefebvre

NumberField is a subclass of EditField that allows the user to only type numbers. To use it, import the NumberField.rbo control into your project and then drag it to a window (you’ll find it in the Project Controls section of the control list). There is only one property, which you can modify in […]

Convert Microsoft BASIC Format Real Numbers to IEEE Format

Posted on December 6th, 2007 by Paul Lefebvre

A fellow REALbasic developer, Roger Oren, was kind enough to share this code to the REALbasic community. This code is a REALbasic module that converts the Microsoft BASIC Format real numbers into IEEE format real numbers (and back). It runs on all platforms.
Download Convert MS BASIC Format REAL Numbers to IEEE Format

StaticLink Control

Posted on December 6th, 2007 by Paul Lefebvre

This is a subclass of the StaticText control that gives you the functionality of a hyperlink in your applications. To use it, simply drag the StaticLink control to your Window (you can find it in the Project Controls section of the control list). You can then set its behavior directly in the IDE […]

Zing with CapacityString

Posted on October 15th, 2007 by Paul Lefebvre

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 say that you’re going to be importing […]

Splitter Control

Posted on October 15th, 2007 by Paul Lefebvre

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 questions about how this […]

Quartz Gradients

Posted on September 15th, 2007 by Paul Lefebvre

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 to […]