How to display Help Page with Basic?

asked 2019-05-16 10:01:23 +0100

Hi,

"LibreOffice Macros" container stores Tools.UCB.ShowHelperDialog() routine. Unfortunately I have not been able to make it work, nor have I found any working example of use for it.

Can anyone point me to operating examples of Tools.UCB.ShowHelperDialog() ?

Cordially

edit retag flag offensive close merge delete

Comments

Don't know of examples, but here's what I've construed and turned up. Maybe it'll help point you in the right direction.

The comment before the Tools.UCB.ShowHelperDialog() code and the line HelpID = aEvent.Source.Model.Tag together suggest the tag property associated with the event triggered by pressing a button on a dialog needs to be set. Doing so may require creating a custom event handler, but the comment seems to suggest the button itself should have a tag property which would presumably be associated with the event. (But maybe it's just a badly worded comment...)

https://wiki.documentfoundation.org/D... mentions use of Help Ids in how Help works.

Finally, there should files ending with .ht (e.g. swriter.ht, scalc.ht, etc.) in your LibreOffice installation help; they seem to include HelpID definitions. You may have to poke around to find them ...(more)

techsquirrel gravatar imagetechsquirrel ( 2019-06-05 15:31:27 +0100 )edit

Hi TechSquirrel

Thanks for sharing this information with LibreOffice community. I went trough that documentation some time ago without great success. My apologies for not precising it while posting my question!

It's probably appropriate to mention now that LibreOffice Basic MediaWiki dialogs are using the aforementioned helpID's. Unfortunately the code for such IDs happens to be Java-based and is located inside the WikiEditor extension whose source is at https://cgit.freedesktop.org/libreoff.... I have been missing time and knowledge to explore it and to translate it into equivalent Basic.

In the hope a fellow Java coder may clarify this topic..

LibreOfficiant gravatar imageLibreOfficiant ( 2019-06-05 17:24:50 +0100 )edit