Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Visual Basic and REALbasic

Custom Controls

A lesson and practice session

Issue: 3.1 (September/October 2004)
Author: Owen Yamauchi
Author Bio: Owen Yamauchi is a freelance programmer who has been programming REALbasic since version F4. He is the lead programmer for Domain Softworx, a company that produces developer tools for REALbasic.
Article Description: No description available.
Article Length (in bytes): 6,266
Starting Page Number: 36
RBD Number: 3117
Resource File(s):

Download Icon 3117.sit Updated: Wednesday, September 15, 2004 at 4:27 PM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

News: the recently released REALbasic (RB) 5.5 has a new feature that should be appreciated by Visual Basic (VB) users. Long lines of code can be split using the underscore character, like in VB. That's one less syntax difference to worry about.

If you've ever tried to make a custom control in VB, you've probably been driven insane by how difficult it is. However, there are often times when you want to make custom controls in the course of your development work. Perhaps there's a specific type of WinSock that you want to use in more than one project, or a Text control that behaves differently. As we've covered in a previous column, RB makes these tasks easy to perform with its class and class interface structures.

However, what about another type of custom control: one that does not resemble an existing control at all? VB provides a facility to do this, but it is also maddening. You have to draw the control on a little area like the Form Editor, giving you limited options for what the control can look like. You can make a custom control easily with RB's classes. Since you've never heard of classes unless you've taken an object-oriented programming course, this might seem intimidating at first. In this column, I'll walk you through the process of creating a custom control that allows the user to resize controls by dragging a handle.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com