Windowbuilder Pro/V Tutorial: by Dan Shafer
Windowbuilder Pro/V Tutorial: by Dan Shafer
Part I
WindowBuilder Pro/V
Tutorial
by
Dan Shafer
WindowBuilder Pro/V
Chapter 1 Getting Started
Then, when you’re finally happy with the design, click a button and gener-
ate the Smalltalk/V source code to form the core of your application.
The user interface is so easy to design and to perfect that even though it’s
all but guaranteed that you’ll spend far less time working on the UI than
you ever would in Smalltalk/V without the help of WindowBuilder Pro,
your interfaces will have that little extra something that makes people smile
in satisfaction at using your programs.
We assume that you already understand some basic things before you begin
your work with WindowBuilder Pro.
First, you should have a good working knowledge of Smalltalk/V. If you
don’t, you should work through either Digitalk’s tutorial chapters or
Chapters 1-4 of the book Smalltalk Programming for Windows, by Dan
Shafer, available from Prima Publishing or through Objectshare Systems. If
you’re new to Smalltalk, you might try both books.
Second, you should understand how the platform on which you are pro-
gramming works at a fairly deep user level. For example, if you are work-
3
WindowBuilder Pro/V Chapter 1
ing with Windows, you should be comfortable with how combo boxes,
pull-down menus, accelerator keys, dialogs, window controls, scroll bars,
and other common controls operate. Without that fundamental knowledge,
you can’t design user interfaces that your users will find comfortable.
This manual is unlike any other you have experienced with any other soft-
ware product. Rather than making assumptions about what you might
already know about Smalltalk/V or, equally badly if not worse, boring you
with long-winded explanations of things you already understand, we rec-
ommend the most widely used Smalltalk/V application programming book,
Smalltalk Programming for Windows, by Dan Shafer, Scott Herndon, and
Laurence Rozier. This book is available, at a discount, from Objectshare
Systems, Inc.
NOTE
Don’t let the fact that the book is about Windows programming
concern you if you are using OS/2 or the Macintosh in your work.
The Shafer-Herndon-Rozier title largely stays out of the platform-
specific issues involved in Smalltalk/V programming and is nearly
100% useful with all of Digitalk’s Smalltalk/V versions for
Windows (2.0 and later), OS/2 Presentation Manager (2.0 and
later) and Macintosh (2.0 and later).
Chapter 2 of this manual, “Learning WindowBuilder Pro,” starts with a
quick peek at WindowBuilder Pro. The bulk of the chapter describes how
to code Smalltalk/V applications using WindowBuilder Pro as a base.
4
Chapter 1 Getting Started
Some of the most important differences between the old and the new ver-
sions of WindowBuilder Pro (you didn’t think we’d be able to resist at least
a little commercial, did you?) include:
CompositePanes, which permit you to create and reuse groups of
components nested within and combined with other UI elements.
Scrapbook, where you can store individual panes and groups of
panes in “pages” for quick and easy retrieval. The Scrapbook is
further divided into chapters, so organizing your work as you build
complex applications is a snap.
Morphing, a slick new function that permits you to transform a
user interface element into any other reasonable element with sim-
ilar functionality. WindowBuilder Pro automatically translates
attributes where possible.
5
WindowBuilder Pro/V Chapter 1
There’s a lot more that’s new; take a look at the Reference Guide for
details.
Manual Conventions