home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
TOOLKIT
/
PM
/
CONTROLS
/
README
next >
Wrap
Text File
|
1995-06-08
|
3KB
|
104 lines
CONTROLS - PM Controls
DESCRIPTION:
CONTROLS demonstrates a Presentation Manager application that conforms
with Common User Access* requirements and implements the following
new controls: Container, Notebook, Slider, Spin button, and Value set.
The sample program also demonstrates secondary windows, such as dialog
and message boxes. The program lets the user edit and save text files.
Help, in IPF format, also is provided.
The code in CONTROLS is structured so that the addition of a new
function is handled in an efficient manner. For example, to add a new
command to an existing menu, you need only add the command to the
resource file, then add the appropriate message-processing
routines to the STY_USER.C file.
TASK:
The program lets the user edit and save text files.
CONCEPT/FEATURE:
- PM window creation
- Menu Creation
- Dialog box creation
- Presentation parameters
- Initialization and display of PM controls
- Help creation and initialization
SAMPLE LOCATION:
Inside the PM Sample Programs folder (which is inside the VisualAge C++
Samples folder).
Note:This sample is not provided in project form.
SOURCE FILE LOCATION:
X:\ibmcpp\samples\toolkit\pm\controls
where X: is the drive you installed the samples and document component
of VisualAge C++ for OS/2.
HOW TO RUN THE SAMPLE:
-From your OS/2 desktop:
Double-click on the sample's icon.
-From an OS/2 command prompt:
To start a non-WorkPlace Shell sample program from an OS/2 command
prompt, type the name of the executable file and press Enter. If you
have edited source code of a sample program and want to recompile,link,
and run the files, use the NMAKE tool. Your output is the executable
file. For information about the NMAKE utility, see the
OS/2 Tools Reference.
SOFTWARE/HARDWARE PREREQUISITES:
- IBM VisualAge C++
- OS/2 Warp
- IBM or compatible 386 and up.
REQUIRED FILES DESCRIPTIONS
readme This file
style.def
style.exe sample executable
style.hlp Help resource file
style.ipf
style.mak MakeMake generated makefile
sty_dlg.c Dialog procedures and support code
sty_dlg.h
sty_dlg.ipf Help resoure file for sty_dlg
sty_edit.c Support code for WM_COMMAND posted by the edit menu
sty_edit.ipf
sty_file.c Support code for WM_COMMAND posted by the file menu
sty_file.ipf
sty_help.c Help manager interface code
sty_help.h
sty_help.ipf
sty_help.rc
sty_ico1.ico
sty_ico2.ico
sty_ico3.ico
sty_ico4.ico
sty_init.c Initialization routines
sty_main.c Main() entry point
sty_main.dlg
sty_main.h
sty_main.ico
sty_main.rc
sty_menu.ipf
sty_pnt.c code for main client window painting
sty_user.c User message processing code
sty_xtrn.h