PDA

View Full Version : Help File and Context-Sensitive Help



robertjacobs
2013-07-10, 16:52
Are there commands to specify/open a Help File (chm/hlp) or will these be added later on? Also what about Context-Sensitive Help.

On the same topic, what is or would be the recommended tool to build a Help system in Lianja?

HankFay
2013-07-10, 19:29
[QUOTE=robertjacobs;5801]Are there commands to specify/open a Help File (chm/hlp) or will these be added later on? Also what about Context-Sensitive Help.

On the same topic, what is or would be the recommended tool to build a Help system in Lianja?[/QUOTE

Hi Robert,

Lianja has built-in context-sensitive help.

1) specify the name you want for the helpfile in the App attributes:

375

2) click the Help editor icon:

376

3) to open the help editor, where you can add Help Topics and edit them in the HTML editor in the bottom half:

377

4) to attach help to a section (or by field -- if field is used, you can check the "Info tips icon" checkbox to have help open automatically as the user tabs into a field) , go to that section's attributes and fill in the corresponding Help Topic, and enable the Help Icon for that section.

378

The HTML editor embedded in the Help Editor isn't the fanciest thing in the world: however you can use any HTML editor you want and then copy/paste the source in the editor. If you want to use images (picture = 1000 words an all that, right?), figure on having the images in the app directory root (they will need to be included when being deployed), you will want to put app:/ prefixing the image references: Lianja will use that to find the webroot. You might be able to use an "images" directory, but I haven't explored what happens in deployment in that case: I believe we've been told we would have to move the files over ourselves, but that may not be the case. It's also possible to use base64_encode(filetostr()) and the technique described here (http://www.techerator.com/2011/12/how-to-embed-images-directly-into-your-html/) to embed images directly in the HTML: Barry has remarked that this would be desirable when using the cloudserver, as everything would get sent over (and cached) together.

hth,

Hank

barrymavin
2013-07-10, 20:40
This forum post also shows how to generate inline images in Lianja Server Pages (.rsp files).
http://www.lianja.com/community/showthread.php?753-Generating-HTML5-inline-images-with-Lianja&highlight=inline+images

robertjacobs
2013-07-11, 16:36
OK for Lianja UI I see how this works. Is there a way to include context-sensitive help in scripting language for VFP forms.

yvonne.milne
2013-07-12, 06:03
Hi Robert,

You can use the TooltipText property on individual controls.

You can also use the Section Help Table / Help Topic functionality if you put your Form code into a Custom VFP Section - either by coding into it directly (Custom VFP Section (http://www.lianja.com/resources/blog/39-coding-tips/190-developing-lianja-custom-section-in-visual-FoxPro)) or by importing a Form and then accessing it from the Pages menu from the Form Tools in the Page Builder (which automatically loads it into a full page Custom Section with the Header hidden - you will need to toggle this back on in the Section Attributes and Show help icon ).

Regards,

Yvonne