One can create a SOM class library to wrap the PM API, with classes for
wrapping the different types of PM windows. I did that myself, quite a
few years ago, as a matter of fact. I've even published programs that
use it. You'll find a subset of it in my 32-bit Command Interpreter,
for example. It's what the PMCMD front-end uses. WINSIGHT, in my
Command Line Utilities, also uses it.
I would love to look at your code as it seems like you have done what I
would like to learn. If you could point me to where I can download some
source code, that would be really helpful.
Thanks Again,
--
Regards,
Galen
-----
There are only 10 kinds of people in the world. Those who understand
binary and those who don't.
> Hi Jonathan. Thanks for the response. I was reading in the VAB
> documentation which has very little about SOM and it said that if you are
> creating a non-visual class then... I took this to mean that there is a
> visual SOM class that can be used as a control much like an activex
> control is used in the M$ world. It can have an interface or can include
> multiple controls that can all be wrapped into a SOM object.
You are talking about "Visual Builder" ? Then yes, they have SOM classes
that have a visual representation (something that can be seen on screen) and
classes that do not.
But the visual classes do not change the "basic" look and behaviour of
window classes. What the SOM object really does is wrap the "Win" API
functions (WinCreateWindow, WinShowWindow etc.) to be available as SOM
methods.
If you really want to CHANGE the window class itself, you will have to
sub/superclass the window procedure in your SOM class anyway.
Lars
Thanks Again.
In that case you are on the right track. Yes, encapsulation of the "Win" API can most certainly be done.
Lars