home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
IOC
/
2D-DRAW
/
README
< prev
Wrap
Text File
|
1995-06-09
|
7KB
|
234 lines
***************************************************************************
* FILE NAME: readme (2d Draw Sample Program) *
* *
* COPYRIGHT: Copyright(C) International Business Machines Corp.,1992,1995.*
* *
* DISCLAIMER OF WARRANTIES: *
* The following [enclosed] code is sample code created by IBM *
* Corporation. This sample code is not part of any standard IBM product*
* and is provided to you solely for the purpose of assisting you in the *
* development of your applications. The code is provided "AS IS", *
* without warranty of any kind. IBM shall not be liable for any damages*
* arising out of your use of the sample code, even if they have been *
* advised of the possibility of such damages. *
***************************************************************************
2D-DRAW
DESCRIPTION:
The 2D Graphics Sample is a graphics drawing tool. The tool
draws lines, free hand, rectangles, ellipses, polylines,
polygons, arcs, pies, chords, text, and bitmaps. In addition, it
demonstrates various background colors, pen colors, fill colors,
pen patterns, fill patterns, pen types, pen widths, fonts, and
drawing operations such as fill and frame. Classes used include
IGLine, IGRectangle, IGEllipse, IGPolyline, IGPolygon, IGArc,
IGPie, IGChord, IGString, IGBitmap, IGraphicBundle,
IGraphicGContext, IColor, IGList, IFontDialog, IFileDialog,
IResizeHandler, IFlyOverHelpHandler, and IToolBar.
CONCEPT/FEATURE:
Sample program for demonstrating drawing graphic objects in the
IBM User Interface Class Library.
PROJECT LOCATION:
Inside the IOC Samples folder (inside the VisualAge C++ Samples
folder).
SOURCE FILE LOCATION:
X:\ibmcpp\samples\ioc\2d-draw
where X: is the drive you installed the samples and document
component of VisualAge C++.
HOW TO RUN THE SAMPLE:
FROM WITHIN THE WORKFRAME ENVIRONMENT:
To run the prebuilt project, open the Samples folder on your
OS/2 desktop then double-click on the project's icon to open
the project view of the sample. Click on the RUN button of
the project's toolbar.
FROM THE COMMAND LINE:
Simply type the name of the .EXE file, that is:
2D-DRAW
If the sample fails to execute or abnormally ends, you can
get more information about the failure by turning on the
ICLUI trace. This is done by setting the environment
variable ICLUI_TRACE as follows:
set ICLUI_TRACE=ON
set ICLUI_TRACETO=STDERR
The second export controls where the trace information is
reported. With tracing turned on, ICLUI exception text will
be written to a standard error file. For example:
hello1 >hello1.out 2>&1
The exception data is now in the file hello1.out.
HOW TO BUILD THE SAMPLE PROJECT YOURSELF:
FROM WITHIN THE WORKFRAME ENVIRONMENT:
Open the Samples folder on your OS/2 desktop then
double-click on the project's icon to open the project view
of the sample. In the upper half of the project window you
will see the icons of the files associated with the sample.
From the Project pulldown, select Build -> Rebuild All. To run
the sample project, see HOW TO RUN THE SAMPLE PROJECT above.
FROM THE COMMAND LINE:
- A command file is provided to allow rebuilding of the
WorkFrame projects from the command line. Simply type:
BUILD
To run the sample project, see HOW TO RUN THE SAMPLE PROJECT
above.
- The sample application can also be built by entering:
NMAKE
with no options while in the directory containing the
sample application files. The makefile is named
Makefile
To clean up the files generated from running make, enter:
NMAKE CLEAN
while in the directory containing the sample program files.
SOFTWARE/HARDWARE PREREQUISITES:
o IBM VisualAge C++
o OS/2 2.1 or Warp
o IBM or compatible 386 and up.
ADDITIONAL INFORMATION:
o For more information on the creation and use of projects in
the WorkFrame environment, see the VisualAge C++ for OS/2
User's Guide.
o For more information on the User Interface Classes, see the
VisualAge C++ for OS/2 Open Class Library User's Guide.
Both books can be found online. To access an online book, simply
open the main VisualAge C++ desktop folder, then open the
Information Folder inside. To view a book, double-click on that
book's icon.
REQUIRED FILES - 2D-DRAW:
README
Instructions for using this sample program
2D-DRAW.EXE
sample's executable
BUILD.CMD
command file to build in project form from command line
2D-DRAW.CPP
Source code for main() and drawing logic
2D-MENU.CPP
Source code for drawing the menu items
2D-DRAW.HPP
Class header file for main window and drawing area and related
handlers.
2D-DRAW.H
Symbolic definition file
2D-DRAW.RC
OS/2 PM resource file
2D-DRAW.ICO
icon file
MAKEFILE
make file to build the sample program on OS/2
Bitmaps for tool bar buttons:
2D_ARC.BMP
arc
2D_BMP.BMP
bitmap
2D_CHD.BMP
chord
2D_DRAW.BMP
free hand
2D_ELIP.BMP
ellipse
2D_LINE.BMP
line
2D_NORM.BMP
selection
2D_PIE.BMP
pie
2D_PLYG.BMP
polygon
2D_PLYL.BMP
polyline
2D_RECT.BMP
rectangle
2D_TEXT.BMP
text
EAGLE.BMP
sample bitmap
Pointers to show which object is being drawn:
2D_PIE.PTR
pie
2D_CHD.PTR
chord
2D_BMP.PTR
bitmap
2D_ARC.PTR
arc
2D_DRAW.PTR
free hand
2D_ELIP.PTR
ellipse
2D_LINE.PTR
line
2D_PLYL.PTR
polyline
2D_PLYG.PTR
polygon
2D_RECT.PTR
rectangle
2D_TEXT.PTR
text