*************************************************************************** * HELLO WORLD SAMPLE PROGRAM - Version 4: Readme File (README4.TXT) * * * * COPYRIGHT: Copyright(C) International Business Machines Corp.,1992,1993.* * * * 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. * *-------------------------------------------------------------------------* * See the User Interface Class Library Users Guide for more information * * about this sample program. * * * * C++ Hello World Vision 4 Key Functions: * * - Add Accelerator Keys for Left (F7), Center(F8), Right(F9) * * - Modify Left, Center and Right Menu Items to show function key * * - Modify Menu Bar to create Edit Menu and "text..." Menu Item * * - Add ADialogText to allow user to change "Hello, World" text * * - Add Push Buttons & Set Canvas to change alignment * *************************************************************************** *************************************************************************** * File list: * * README4.TXT - readme file for HELLO4.EXE * * AHELLOW4.CPP - source code for main() and AHelloWindow class * * AHELLOW4.HPP - class header file for AHellowWindow * * AHELLOW4.H - symbolic defintion file for HELLO4.EXE * * ADIALOG4.CPP - source code to create the ATextDialog class * * ADIALOG4.HPP - class header file for ATextDialog * * AHELLOW4.RC - resource file for HELLO4.EXE * * AHELLOW4.ICO - icon file for HELLO4.EXE * * ADIALOG4.DLG - dialog resource source file for HELLO4.EXE * * ADIALOG4.RES - dialog resource file for HELLO4.EXE * * AHELLOW4.DEF - module definition file for HELLO4.EXE * * AMAKE4.MAK - make file to create HELLO4.EXE * * AMAKE4.CMD - command file to create HELLO4.EXE * * BUILD4.CMD - command file to compile, link and run HELLO4.EXE * * CLEANUP4.CMD - command file to cleanup (erase) generated files: * * HELLO4.EXE, AHELLOW4.OBJ, ADIALOG4.OBJ, AEARTHW4.OBJ, * * AHELLOW4.MAP, AHELLOW4.ERR, AHELLOW4.RES * *************************************************************************** *************************************************************************** * File Relationship Diagram (Files in uppercase, Programs in lowercase) * * * * AHELLOW4.H dlgedit<ÄÄ>ADIALOG4.RES iconedit * * ³ ³ ³ ³ * * AHELLOW4.HPP ³ ÃÄÄÄÄÄ ADIALOG4.DLG AHELLOW4.ICO * * ADIALOG4.HPP ³ ³ ³ ³ * * º ³ ³ ³ ³ * * v ³ ³ ³ ³ * * AHELLOW4.CPP <ÄÄÄÄÄ´ ÀÄÄÄÄÄÄÄÄÄÄÄÁÄ>AHELLOW4.RC<ÄÄÄÄÄÄÄÄÄÄÄÄÄÙ * * ADIALOG4.CPP <ÄÄÄÄÙ ³ * * º rc -r * * º ³ * * v AHELLOW4.OBJ AHELLOW4.RES * * icc -c ÍÍÍÍ> ADIALOG4.OBJ ³ * * º ³ * * º ³ * * AHELLOW4.DEF ÄÄ>icc /Tdp Ä>AHELLOW4.MAP ³ * * ³ v * * HELLO4.EXE ÄÄÄÄÄÄÄÄÄÄ> rc ÄÄÄÄÄÄÄÄÄÄÄ> HELLO4.EXE * *************************************************************************** *************************************************************************** * ÉÍÍÍÍÍÍÍÍÍÍÍ» * * Window Parent Relationship Diagram: Diagram ºClass Name º * * Key: ºÄÄÄÄÄÄÄÄÄÄĺ * * IApplication::current().run() ºObject Nameº * * ÈÍÍÍÍÍÍÍÍÍÍͼ * * * * ÉÍÍÍÍÍÍÍÍÍÍÍÍ» ÉÍÍÍÍÍÍÍÍÍÍÍ» * * ºAHelloWindowºÄÄÄÄÄÄÄÄÄÄÄÄÄĺATextDialogº * * ºÄÄÄÄÄÄÄÄÄÄÄĺ ºÄÄÄÄÄÄÄÄÄÄĺ * * º mainWindow º ºtextDialog º * * ÈÍÍÍÍÍÍÍÍÍÍÍͼ ÈÍÍÍÍÍÍÍÍÍÍͼ * * ÉÍÍÍÍÍÍÍÍ» ³ ÉÍÍÍÍÍÍ» ³ * * ºIMenuBarºÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄ ºITitleº ÉÍÍÍÍÍÍÍÍÍÍÍ» * * ºÄÄÄÄÄÄÄĺ ³ ÈÍÍÍÍÍͼ ºIEntryFieldº * * ºmenuBar º ³ ºÄÄÄÄÄÄÄÄÄÄĺ * * ÈÍÍÍÍÍÍÍͼ ³ º textField º * * ³ ÈÍÍÍÍÍÍÍÍÍÍͼ * * ÉÍÍÍÍÍÍÍÍÍÍÍÍ» ³ * * ºIAcceleratorºÄÄÄÄÄÄÄÄÄ´ * * ÈÍÍÍÍÍÍÍÍÍÍÍͼ ³ * * ³ * * ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ * * ÉÍÍÍÍÍÍÍÍÍÍÍ» ÉÍÍÍÍÍÍÍÍÍÍÍ» ÉÍÍÍÍÍÍÍÍÍÍ» ÉÍÍÍÍÍÍÍÍÍ» * * ºIStaticTextº ºIStaticTextº ºISetCanvasº ºIInfoAreaº * * ºÄÄÄÄÄÄÄÄÄÄĺ ºÄÄÄÄÄÄÄÄÄÄĺ º º ºÄÄÄÄÄÄÄÄĺ * * º statusLineº º hello º º buttons º ºinfoArea º * * ÈÍÍÍÍÍÍÍÍÍÍͼ ÈÍÍÍÍÍÍÍÍÍÍͼ ÈÍÍÍÍÍÍÍÍÍͼ ÈÍÍÍÍÍÍÍÍͼ * * (Client Window) ÚÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄ¿ * * ÉÍÍÍÍÍÍÍÍÍÍÍ» ÉÍÍÍÍÍÍÍÍÍÍÍÍ» * * ºIPushButtonº ºIPushButton º * * ºÄÄÄÄÄÄÄÄÄÄĺ....ºÄÄÄÄÄÄÄÄÄÄÄĺ * * º leftButtonº º rightButtonº * * ÈÍÍÍÍÍÍÍÍÍÍͼ ÈÍÍÍÍÍÍÍÍÍÍÍͼ * *************************************************************************** *************************************************************************** * The HELLO4.EXE Sample Application call be build in two ways: * * * * Option 1: Run BUILD4.CMD * * * * This option will compile, link, execute HELLO4.EXE. It will then * * cleanup all files created by BUILD4.CMD. * * * * Option 2: Run AMAKE4.CMD * * Run HELLO4.EXE * * Run CLEANUP4.CMD * * * * AMAKE4.CMD will compile and link HELLO4.EXE. * * CLEANUP4.CMD will cleanup files build by AMAKE4.CMD * ***************************************************************************