TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jonathan de Boyne Pollard
from: Herbert Bushong
date: 1996-11-30 12:28:00
subject: Help for Help for OWL/2

::>   > I wrote the HLP file and compiled it with IPFC. Now I want
::>   > be able to load the help file.

::>   > The program runs fine. But I can't get it to load the help file. I tri
::>   > using the TWindow::WinHelp(const char *, UINT, ULONG) member to load

::>   This is another excellent example of the shoddiness of OWL/PM, and the
::>   shameful way that it treats Presentation Manager as if it were Windows.

I suppose it was they're way of not having to build it from the ground up :(

::>   The WinHelp function as prototyped is the way that _Windows_ invokes
::>   help (the function is implemented inline for Windows further down
::>   WINDOW.H).

So even though it's documented in the OWL reference, it doesn't work?

::>   Help in Presentation Manager is more sophisticated (and in many ways
::>   better, because most of the "context-sensitive" processing is done
::>   without you having to code anything -- you just have to provide a table

I did create the helptable, etc...

::>   Since OWL/PM is clearly deficient in this area, you'll have to implement
::>   help by calling the system API directly.

Apparently :)
I was going to try that. My only problem was I couldn't figure out how to
extract the appropriate information for setting up the help instance. Also,
when I tried including:

#define INCL_WINHELP
#include 

I got a lot of errors (redefinition) when I tried compiling. There were 
conflicts between the OWL and the OS2 header files :(

Aside from that, I also couldn't figure out how to associate the help instance 
with the window, frame, menu, whatever it needed associated with...

::>   It isn't hard.  I'll outline the basics in the next message.

Great! If I have a frame of reference, I can wade through the help for the 
specifics :)

#  Herbert Bushong    harchon{at}centuryinter.net       [TEAM OS/2]    
-  Blackbeard's BBS   Intelec: 239:600/0            
+  Fido: 1:19/19      http://www.win.net/eunicecity/stltcc/hbush/



---
   RM 1.31 2508   Resistance is useless,  if you have no volts or amps.
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 19/19 395/100 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.