home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
NBEZ.ZIP
/
NBEZ.DOC
< prev
next >
Wrap
Text File
|
1992-12-05
|
2KB
|
37 lines
NBEZ.EXE is a sample program that demonstrates setting up a notebook control.
It creates a frame/client window and a notebook control is created as a child
of the client window, similar to how the Settings notebook does it.
The Notebook created by this program only has pages with MAJOR tabs.
All the Notebook pages are associated with dialog boxes. Those dialog boxes are
loaded and associated with the page at notebook initialization.
A Notebook control is actually a rather simple control. Think of it as just a
way to stack up all your dialogs into a neat pile. If you have ever had an
application that needed the user to go thru more than one dialog to accomplish
something, you will appreciate that a notebook is the way to go. You can
picture all those dialogs being scattered about on the screen. The Notebook's
sole purpose is to take those dialogs and organize them so the user can input
all their information in an organized fashion.
The Notebook *does* bring with it some issues. The main one that I see is how
to validate the fields in each dialog - when the user tabs out of the field,
when the user switches notebook pages or when the user closes the notebook. In
my notebooks I usually use a combination of the 3.
For a more functional Notebook sample that demonstrates a lot more of the
Notebook messages, loads the dialogs on demand and has pages with MINOR tabs,
get NBBASE.ZIP. I essentially took that program and pared it down to provide
this sample.
Hopefully NBEZ will be of some use to beginning notebook programmers.
Rick Fishman
Code Blazers, Inc.
4113 Apricot
Irvine, CA 92720
CIS ID: 72251,750