The following is a sample form which usees the contextHelp property to put a question mark in the form's title so it can be used to fire the form objects' onHelp() methods.

 

** END HEADER -- do not remove this line

//

// Generated on 12/21/2007

//

parameter bModal

local f

f = new Form_ContextHelp_testForm()

if (bModal)

   f.mdi = false // ensure not MDI

   f.readModal()

else

   f.open()

endif

class Form_ContextHelp_testForm of FORM

   with (this)

      onHelp = {;msgbox("This is the form Class")}

      height = 16.0

      left = 6.8571

      top = 14.4091

      width = 71.5714

      text = ""

      mdi = false

      contextHelp = true

      maximize = false

      minimize = false

      helpId = ""

      helpFile = ""

   endwith

   this.EDITOR1 = new EDITOR(this)

   with (this.EDITOR1)

      onHelp = {;MsgBox("This is the Editor Class")}

      height = 4.0

      left = 7.0

      top = 2.5

      width = 20.0

      value = ""

   endwith

   this.COMBOBOX1 = new COMBOBOX(this)

   with (this.COMBOBOX1)

      onHelp = class::COMBOBOX1_ONHELP

      height = 1.0

      left = 35.0

      top = 5.0

      width = 12.0

      style = 1 // DropDown

   endwith

   this.GRID1 = new GRID(this)

   with (this.GRID1)

      onHelp = {;msgbox("gridclass")}

      height = 4.0

      left = 22.0

      top = 9.5

      width = 12.0

   endwith

   function COMBOBOX1_onHelp

      MsgBox("This is a Combobox with a linked method in onHelp")

      return

endclass