Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 18.5 ('OOP Listbox')
Instant purchase and download via GumRoad!

FEATURE

Better Examples—ListBox Part 3

From Ooops! to OOP with the ListBox

Issue: 18.5 (September/October 2020)
Author: Markus Winter
Author Bio: Markus is a Molecular Biologist who taught himself REALbasic programming in 2003 to let the computer deal with some exceedingly tedious lab tasks. Some call it lazy, he thinks it smart. He still thinks of himself as an advanced beginner at best.
Article Description: No description available.
Article Length (in bytes): 34,682
Starting Page Number: 28
Article Number: 18503
Resource File(s):

Download Icon project18503.zip Updated: 2020-08-31 22:37:24

Related Web Link(s):

e 17.4 (http

Excerpt of article text...

Last time we laid out what we want to achieve and how, and explained what an interface is and how it solves three problems at once for us. So this time we'll get straight into the project.

The first thing we do after all this talking about interfaces is to create one, so add an interface to a new project (menu Insert and choose Class Interface) and rename it to CanDrawItself (and yes, I settled on a shorter and better name for the interface). Add the following empty method to it (in effect you are adding only the signature of the method):

Public Sub Draw(g as Graphics, whatToDraw as String)

End Sub

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