CN17440C/N1744 - Presentation Manager: Windowing & Graphics
5 days, hands-on labs Public, private
This course focuses on advanced windowing topics such as custom dialog controls and Graphical Program Interface (GPI) graphics. You'll examine numerous sample programs and write intensive hands-on lab exercises to reinforce lecture topics. The course is a continuation of Presentation Manager 2.X for Software Developers (N1688). It is intended for OS/2 versions 1.X and 2.X developers.
Who Should Take This Course: OS/2 Presentation Manager programmers who want to raise their skill levels.
How you will benefit: Learn how to:
oUnderstand all GPI drawing primitives including lines, arcs, and bitmaps
oUse GPI programming techniques including transforms, metafiles, and retained graphics
oUse windowing techniques including subclassing, owner-draw, and user-paint dialog controls and menus
oWrite custom dialog control windows
oWrite programs that use Dynamic Data Exchange (DDE) and the clipboard to communicate with other programs
oWrite programs that perform device-independent output (WYSIWYG: What You See Is What You Get)
Topics:
oIntroduction to Graphical Program Interface
-Modal drawing interface -Categories of graphical program interface calls
oDevice Contexts and Presentation Spaces
-Types of device contexts -Types of presentation spaces -Sample usage
oIntroduction to Device Independence
-Presentation page units -Introduction to coordinate systems
oLines and Boxes
-Line and box primitives -Line and box attributes
oColor and Mix
-Logical and physical colors -Color tables -Mix modes
oMouse Messages
-Capturing the mouse
oWindow Words
-Window-specific data -System usage of window data
oSegments and Retained Graphics
-Drawing modes -Segment attributes -Setting labels in segments -Editing segments
oIntroduction to Transforms
-World coordinates -Matrix arithmetic -Scaling, translating, rotating, and shearing
oApplying Transforms
-Transform API
oVector Fonts
-Bitmap versus vector fonts -Creating a vector font -Transforming vector fonts -Vector font special effects
oCorrelation
-Setting correlation tags -Correlation API
oAreas
-Drawing and filling areas -Fill modes
oPaths
-Geometric lines -Clip paths
oArcs
-Arc attributes -Full arcs -Three-point and partial arcs -Fillets and splines
oBitmaps
-Bitmap formats -Creating a bitmap -Bitmap APE -Shadow bitmaps
oMetafiles
-Creating a metafile DC -Playing a metafile
oAdvanced Menus
-Menu types and structure -Methods to create menus -System menus -Owner-drawn menus
oFrame Windows
-Custom frame controls
oAdvanced Dialog Controls
-Presentation parameters -User-paint and owner-drawn buttons and list boxes
oCustom Control Windows
-Managing memory -Responding to dialog keystrokes
oProfiles
-System and application profiles -Profile API
oPrinting
-Printer DC types -Creating a printer DC -Reading the system profile for printer information
oClipboard
-Clipboard protocol -Clipboard data formats -Clipboard API
oDynamic Data Exchange
-DDE protocol -DDE API
Lab Exercises
oLab 1 - Introduction to Graphical Program Interface
-Introduction to draw lab project -Device independence and window-specific data -Drawing rubber band lines -Drawing rubber band boxes -Fill patterns (optional) -Changing the mouse pointer (optional) -Line styles (optional) -Ignoring the first button one down (optional)
oLab 2 - Retained Graphics and Vector Fonts
-Retained graphics -The zooming transform -Graphical text (vector fonts) -Correlation (optional)
oLab 3 - Arcs, Metafiles, and Custom Menus
-Arcs -Metafiles -Erasing the current picture (optional) -Areas (optional) -Geometric lines (optional) -Bitmaps as primitives (optional)
oCustom Frame Controls, Custom Dialog Controls, and Profiles
-Owner-drawn menus -Custom frame controls -Customizing dialog controls -Saving settings in a profile -Printing (optional) -Enhancing the owner-drawn check box
Prerequisites: Before taking this course, you should first attend Presentation Manager 2.X for Software Developers (N1688) or have at least one year's experience with Presentation Manager programs.
Prices: Tuition 1,575 Private Class Price: 1-14 Students: 20,000 Each additional student: 500