Re: F1 key to launch a CHM help file


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Barbara Brazil on June 08, 2007 at 14:32:04:

In Reply to: Re: F1 key to launch a CHM help file posted by Mike Saunders on June 08, 2007 at 14:14:49:

Mike:

The beauty of letting NOVA handle the F1 is that you don't have to write code to do the scan codes. It happens automatically. The dispatch program is very simple. You do have to update it any time you add a new .chm but it's just one line of code. For example:

include "xhelpcm"

input (#,hstat)
select hprog$
  case "prog1"
    print (launch="prog1.chm")
  case "prog2"
    print (launch="prog2.chm")
endselect

if you may need to launch more than one .chm for a program depending on which field the user was in when they pressed F1 you can use HELPKEY$ to pass a message to yourself. In your app set HELPKEY$. It is the same as HUSRKEY$ in the hstat format:

select hprog$
  case "prog1"
    if husrkey$ = "fld1" print (launch="prog1a.chm")
    if husrkey$ = "fld2" print (launch="prog1b.chm")
  case "prog2"
    print (launch="prog2.chm")
endselect
exit

bb





Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):






[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]