home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
SOMINF.ZIP
/
TENSTEPS.INF
(
.txt
)
< prev
next >
Wrap
OS/2 Help File
|
1992-07-15
|
3KB
|
91 lines
ΓòÉΓòÉΓòÉ 1. Design Your Object ΓòÉΓòÉΓòÉ
The most critical step is design.
Considerations:
o User Interface
o Interfaces to Other Objects
o Communications Support
o Background Processing
o Integration into the Shell
ΓòÉΓòÉΓòÉ 2. Design Its Views ΓòÉΓòÉΓòÉ
This step concemtrates on the user interface. It also could directly influence
the next step, as the parent chosen may have some of the necessary views
defined already.
ΓòÉΓòÉΓòÉ 3. Choose a Parent Class for Subclassing ΓòÉΓòÉΓòÉ
The parent is the predefined Workplace class (or previous subclass) which is
most like your design.
Much of the object's behavior may already be defined by the parent's methods.
ΓòÉΓòÉΓòÉ 4. Create the Object's Class Definition ΓòÉΓòÉΓòÉ
Write the object definition in OIDL, specifying the parent class you chose.
ΓòÉΓòÉΓòÉ 5. Compile the Class Definition ΓòÉΓòÉΓòÉ
Use the SOM compiler to output your public definitions, and all the skeleton
code to produce your object.
ΓòÉΓòÉΓòÉ 6. Add Object-specific code ΓòÉΓòÉΓòÉ
Modify the SOM output to actually do the work. Add user- specific routines if
necessary.
Make sure the .DEF file exports all of the dialog box or window routines.
Note: If you regenerate the .DEF file with the SOM compiler, you will have to
add these routines in the .DEF again.
ΓòÉΓòÉΓòÉ 7. Compile & Link The Object ΓòÉΓòÉΓòÉ
Use C Set/2 from the command line, or under Workframe/2.
ΓòÉΓòÉΓòÉ 8. Register The Object with the WPS ΓòÉΓòÉΓòÉ
Select one of the methods of registration. For an installation program, you
will need to write your own code, in 'C' or Rexx.
Language API
Rexx SysRegisterObjectClass()
User-written program Call WinRegisterObjectClass()
OS/2 Toolkit ClassList Follow the pop-up menus
ΓòÉΓòÉΓòÉ 9. Instantiate The Object ΓòÉΓòÉΓòÉ
Select one of the methods of instantiation. For an installation program, you
will need to write your own code, in 'C' or Rexx.
Language API
Rexx SysCreateObject()
User-written program Call WinCreateObject()
OS/2 Toolkit ClassList Follow the pop-up menus
ΓòÉΓòÉΓòÉ 10. Test and Iterate ΓòÉΓòÉΓòÉ
Select the object from the desktop, and test.