Difference between revisions of "PostWhat WPS Class Example"

From EDM2
Jump to: navigation, search
(Download)
(Link)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Description==
+
PostWhat WPS Class Example is a WPS class made by [[Lars Erdmann]] created for educational purposes. The PostWhat class implements yellow sticky notes on WPS as an example to help users learning using the for SOM/WPS, the PostWhat class is derived from the [[WPAbstract]] class, which means it is saving all its content into the ''OS2.INI'' which make is unsuitable as an actual working program.
PostWhat WPS Class Example is a WPS class made by [[Lars Erdmann]].  
+
  
This class implements yellow sticky notes on WPS as a learning process for SOM/WPS.
+
As an additional learning effort Lars also implemented a replacement class for the one created, just changing the colouring from a yellow sticky note to a red sticky note.  
 
+
This class is derived from the WPAbstract class (which also means it is placing all its content text into OS2.INI ...)
+
 
+
As an additional learning effort Lars also implemented a replacement class for the one created, just changing the coloring from a yellow sticky note to a red sticky note.  
+
  
 
There are quite a few things you can learn from this example:
 
There are quite a few things you can learn from this example:
Line 16: Line 11:
 
* How a replacement class works / how you derive one class from another class.
 
* How a replacement class works / how you derive one class from another class.
  
==Download==
+
===Compile Information===
* [Version 0.1]
+
# It is based on IBM VisualAge C++. You will need to adjust makefiles to use it with other compilers like WATCOM for example.
 +
# It expects the IBM Toolkit to be installed and it expects the SOMBASE environment variable to point into the corresponding Toolkit directory (normally this is OS2TK45\som).
 +
# It expects SMINCLUDE environment variable to have the default value after Toolkit installation.
  
==License==
+
==Licence==
* BSD 3 Clause
+
* Open source software released under the [[Three Clause BSD Licence]].
  
 
==Author==
 
==Author==
 
* [[Lars Erdmann]]
 
* [[Lars Erdmann]]
  
 +
==Link==
 +
* [https://hobbes.nmsu.edu/?&search=postwhat postwhat_0-1.zip]
 +
* [https://github.com/OS2World/DEV-WPS-PostWhat Github Source Code]
  
 
[[Category:SOM Articles]]
 
[[Category:SOM Articles]]

Latest revision as of 14:15, 13 February 2020

PostWhat WPS Class Example is a WPS class made by Lars Erdmann created for educational purposes. The PostWhat class implements yellow sticky notes on WPS as an example to help users learning using the for SOM/WPS, the PostWhat class is derived from the WPAbstract class, which means it is saving all its content into the OS2.INI which make is unsuitable as an actual working program.

As an additional learning effort Lars also implemented a replacement class for the one created, just changing the colouring from a yellow sticky note to a red sticky note.

There are quite a few things you can learn from this example:

  • How to remove and add menu items to an objects menu and tie these to functionality.
  • How to add a completely new view to an object (that is none of the icon/structure/tree views but rather a new custom view), how to add this new view to the use list and how to make it show up in the window list.
  • How to do some cleanup in OS2.INI on object deletion where WPAbstract does not do the job properly.
  • How to do exception handling for a WPS class.
  • How FFST (first failure support technology) works to add logging info to the system log (used by the classes to write exception info to the system log)
  • How a replacement class works / how you derive one class from another class.

Compile Information

  1. It is based on IBM VisualAge C++. You will need to adjust makefiles to use it with other compilers like WATCOM for example.
  2. It expects the IBM Toolkit to be installed and it expects the SOMBASE environment variable to point into the corresponding Toolkit directory (normally this is OS2TK45\som).
  3. It expects SMINCLUDE environment variable to have the default value after Toolkit installation.

Licence

Author

Link