Recent

Author Topic: Help in the program  (Read 1617 times)

mrkaban

  • Jr. Member
  • **
  • Posts: 60
    • КонтинентСвободы
Help in the program
« on: March 12, 2017, 05:02:09 pm »
Hello dear friends! Thank you very much! You regularly help me!

Now I want to make the help system for my program. Found in the folder with Lazarus in the "examples" example "htmlhelp_ipro". I liked him!

I decided to try to remake for myself. I copied and connected the forms htmlhelp2viewer in uses. Created the main form event in his program "OnCreate", and added:
Code: Pascal  [Select][+][-]
  1. HtmlHelp2Viewer.RegisterHelpViewer;

I try to call the opening like this:

Code: Pascal  [Select][+][-]
  1. ShowHelpOrErrorForKeyword('','help/index.html');
Also added a non-visual component "HTMLHelpDatabase". Here are its properties:
Code: Pascal  [Select][+][-]
  1.   object HTMLHelpDatabase1: THTMLHelpDatabase
  2.     BaseURL = 'file://help/'
  3.     AutoRegister = True
  4.     KeywordPrefix = 'help/'
  5.     left = 136
  6.     top = 304
  7.   end
Tell me please, I can not figure it out myself. When you try to open this help, the program writes "Access violation".

Thankful in advance for any help!

And immediately I apologize for my English. Also ready to show the source code.

 

TinyPortal © 2005-2018