l3whmg wrote:Ciao a tutti!
I wanna try to create Help file with "Shalom Help", but I've some difficults.
Is there someone can send me a little (very little) example about use of:
Code: Select all
SET HELPFILE TO... DISPLAY HELP CONTEXT <nTopic> ....
etc. and use of
inside controls (ex. TEXTBOX) with a little (very little, 1 page) example of Shalom Project?
Or, in alternative, suggest me another tool/way (freeware)?
Many thanks in advance.
Hello, I use it like this:
SET HELPFILE TO 'file.chm'
US_DisplayHelpTopic( _HMG_SYSDATA [ 217 ] , 1 )
*==============================================================*
Procedure US_DisplayHelpTopic( cActiveHelpFile , xTopic , nMet )
*--------------------------------------------------------------*
*- Adapted from Carlos Britos (
bcd12a@yahoo.com.ar ) -*
*- sample help Chm_Hlp.zip -*
*==============================================================*
LOCAL cParam := ""
If empty(cActiveHelpFile)
Return
endif
_HMG_nTopic := xTopic
_HMG_nMet := nMet
if valtype(nMet) == 'U'
nMet := 0
endif
If ValType( xTopic ) == 'N'
cParam := "-mapid " + LTrim( Str( xTopic )) + " " + cActiveHelpFile
ElseIf ValType( xTopic ) == 'C'
cParam := '"' + cActiveHelpFile + "::/" + AllTrim( xTopic ) + '.htm"'
ElseIf ValType( xTopic ) == 'U'
cParam := '"' + cActiveHelpFile + '"'
EndIf
_Execute( 0 , "Open", "HH.exe", cParam , , 5 )
Return