Re: [Lazarus] Confused by help
Hi Graeme, It looks very interesting. How would I instruct DocView to open at a particular section of a help file from Lazarus? Richard On 21 March 2014 22:33, Graeme Geldenhuys mailingli...@geldenhuys.co.ukwrote: On 2014-03-21 20:51, Richard Mace wrote: Is CHM help still supported or should I be doing just HTML You can always use DocView as well. DocView is a stand-alone help viewer (no external dependencies). Very fast, and with inline user annotation support, bookmark support, font customization, advanced search etc. It reads the INF help file format which is also very easy to author, and very compact. To see DocView in action, you can download a binary and same sample INF help files from: DocView binaries: http://sourceforge.net/projects/fpgui/files/fpGUI/1.0/ INF docs: http://sourceforge.net/projects/fpgui/files/fpGUI/Documentation/ Screenshot: http://fpgui.sourceforge.net/screenshots_apps.shtml Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confused by help
You can always use DocView as well. DocView is a stand-alone help viewer (no external dependencies). Very fast, and with inline user annotation support, bookmark support, font customization, advanced search etc. It reads the INF help file format which is also very easy to author, and very compact. Does the INF help file format support screen shots? I notice that when I open my existing CHM file in lhelp, it doesn't show the embedded screen shots, but when I just double click on the .CHM file within Windows, Microsoft's own viewer is displayed and the screen shots are there. Richard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confused by help
On 21/03/2014 21:51, Richard Mace wrote: Hi All, I am trying to integrate a CHM help file into my application, Well did you look here http://wiki.lazarus.freepascal.org/Add_Help_to_Your_Application#CHM but I can only find HTML components in Lazarus 1.2 Is CHM help still supported or should I be doing just HTML Do you think it's likely CHM support (the default Lazarus help file format) has been withdrawn without any mention in the release notes? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confused by help
I did look at that wiki page and after I installed the chm components it did load the chm file, but it won't display any images? On 22 Mar 2014 08:49, Reinier Olislagers reinierolislag...@gmail.com wrote: On 21/03/2014 21:51, Richard Mace wrote: Hi All, I am trying to integrate a CHM help file into my application, Well did you look here http://wiki.lazarus.freepascal.org/Add_Help_to_Your_Application#CHM but I can only find HTML components in Lazarus 1.2 Is CHM help still supported or should I be doing just HTML Do you think it's likely CHM support (the default Lazarus help file format) has been withdrawn without any mention in the release notes? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confused by help
On 22/03/2014 11:06, Richard Mace wrote: I did look at that wiki page and after I installed the chm components it did load the chm file, but it won't display any images? I have no idea (haven't used images in CHM myself); perhaps post a sample file somewhere so somebody else could have a look? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confused by help
On 22/03/2014 11:06, Richard Mace wrote: I did look at that wiki page and after I installed the chm components it did load the chm file, but it won't display any images? The FPC ref.chm has images (.pngs); you could check out how these are generated... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confused by help
I have uploaded a test.chm file to www.rocksolidpbx.co.uk/downloads if anyone has the time/interest in taking a look. Richard On 22 March 2014 10:20, Reinier Olislagers reinierolislag...@gmail.comwrote: On 22/03/2014 11:06, Richard Mace wrote: I did look at that wiki page and after I installed the chm components it did load the chm file, but it won't display any images? I have no idea (haven't used images in CHM myself); perhaps post a sample file somewhere so somebody else could have a look? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confused by help
On 2014-03-22 07:43, Richard Mace wrote: Does the INF help file format support screen shots? Yes it does. And you can map clickable areas (hotspots) on screenshots too. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confused by help
On 2014-03-22 06:51, Richard Mace wrote: Hi Graeme, It looks very interesting. How would I instruct DocView to open at a particular section of a help file from Lazarus? DocView (binary download) comes with an extensive help file explaining all it's uses (concatenating help files at runtime, defining help as an environment variable, etc). But to answer your question, DocView accepts many parameters. The docview.inf help file explains that or select Help-Command Line Parameters inside DocView Supported command line parameters: filename Load the help file filename -h Show this help -k textSearch for keyword text in open help files -n id Open Topic with numeric ID equal to id -s id Open Topic with string ID equal to id -debuglog filename Log information to a file So you can define numerical or keyword help inside your application - just like you would do with LCL or VCL applications. I don't know if you can override the default help viewer in LCL based apps. But if not, simply trap the F1 key (or probably the OnHelp event) and launch DocView with the the appropriate parameters listed above. I'm planning on more parameters and integration too. eg: placement and size of DocView, as well as IPC communication between the application and docview. The latter will allow you to control docview from your application. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confused by help
El 22/03/14 19:59, Graeme Geldenhuys ha escrit: So you can define numerical or keyword help inside your application - just like you would do with LCL or VCL applications. I don't know if you can override the default help viewer in LCL based apps. Sure you can. You just have to create a class derived from THelmManager (in unit HelpIntfs). I use it to invoke a pdf reader (sumatrapdf, since it accepts a keyword as a command line parameter). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Setting TStringGrid row/col border styles
I'm new to Lazarus/FPC but had a lot of Delphi experience over 20 years ago. I'm baffled finding help for customizing stringgrid to use different row/col border styles, etc.. I understand that I need to use the OnPrepareCanvas and OnDrawCell events and have made some minor progress setting custom row heights and grid colors but I don't seem to be able to find help on the various object properties that I need. I do see the popups for object properties in the source editor, but then I can't find anything on parameters, etc.. Any suggestions about finding help and recommendations on properties would be appreciated. Specifically, I need to change the penstyle and weight of row/col borders. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Setting-TStringGrid-row-col-border-styles-tp4036389.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Setting TStringGrid row/col border styles
On 22/03/2014 20:53, Gary Randall wrote: ... Specifically, I need to change the penstyle and weight of row/col borders. The public properties: GridLineColor GridLineStyle and published property GridLineWidth may be all you need, without custom drawing. Howard -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Confused by help
On Sat, Mar 22, 2014 at 02:15:44PM +, Richard Mace wrote: I have uploaded a test.chm file to www.rocksolidpbx.co.uk/downloads if anyone has the time/interest in taking a look. That file seems to contain GIFs, a format deprecated for a long time. Probably nobody got around to implementing it in the viewer. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus