TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jonathan de Boyne Pollard
from: Herbert Bushong
date: 1997-01-27 06:35:00
subject: Back to Help again :(

::>   > We have discussed previously loading Help from an OWL application and
::>   > problems with BC/OS2. You sent some information and I said I'd get bac
::>   > you. I'm getting back to you :)

::>   Well, bear in mind that I don't use OWL/PM.

Ahhh, I understand OWL/PM *much* better than API programming. :)

::>   >                             I tried initializing the help after creati
::>   > the MainWindow in the function InitMainWindow(). I also tried moving
::>   > the code to the window itself, initializing it in the SetupWindow()

::>   > the two errors that I received where:
::>   > 0x1017 (PMERR_ATOM_NAME_NOT_FOUND)
::>   > 0x1001 (HMERR_FRAME_WND_NOT_IN_CHAIN)

::>   > The MainWindow  *IS* a TFrameWindow...

::>   I'm not entirely sure of how your application is organised, and the
::>   above has only confused me further, to be honest.  Let's get back to

Since you don't use OWL/PM, that's probably why the above is confusing you.

::>   basics.  Where, exactly, relative to the initialisation of your anchor
::>   block, message queue, and frame window, are you creating your help
::>   instance ?  Where are you calling WinAssociateHelpInstance ?

With OWL/PM, you don't deal with anchor blocks and message queues directly
(at least I haven't seen any examples or instances where I've needed to).
I can whip out a functioning prototype in 15 minutes. In a couple of hours, I
can have quite a bit of the controls and functionality added. :)

In the simplest case for a functioning basic program, you need to derive 2 
classes:
1 from TApplication
1 from TWindow or TDialog for the main client window, and define it's 
   response table.

In TApplication's InitMainWindow, you set up the TFrameWindow (with the 
derived TWindow as it's client) and set it as the main window. 
You don't deal with hab's or msq's. 

I've given up on HLP files. If I need it, I'll do what I did recently and just
spawn*() VIEW.EXE with the INF version of the file....

Thanks for trying though!

#  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   May the fleas of a thousand camels infest your armpits.
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 19/19 124/8002 8001 1 396/1 270/101 712/624 711/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™.