macMikey / LCB-missing-manual

I'm trying to learn LCB, again, but the docs are thin.
MIT License
4 stars 4 forks source link

LCB Dictionary for SVG #36

Open macMikey opened 1 year ago

macMikey commented 1 year ago

Question from Ralph:

In NavRAD the function “iconSVGPathFromName” is used. This is not in the LCB docs but is in the LCS docs. Is this a LCB version without docs? Or can you use LCS functions in LCB?

macMikey commented 1 year ago

A couple of things on this: 1) even though the widget has use com.livecode.library.iconsvg, the path/name is /extensions/libraries/iconsvg/iconsvg.lcb 2) In the history in the repo, commit b710b939c322197a924913694d06a59fba4296ca, Ali has this note:

[[ Dictionary ]] Display associations by display name This patch ensures that where associations appear in the dictionary either in a list in an entry, or in the filters list, their display names are used instead of their names, e.g. Icon SVG Library instead of com.livecode.library.iconSVG

However, there still is no LCB dictionary reference for Icon SVG Library on the LCB side. Bug Report 23944 (filed by me, this evening, in response to this report)

AFA the second question:

Or can you use LCS functions in LCB?

Yes, you can, using execute script I put several examples in the snippets. Answer, Beep, and Message all take advantage of this mechanism to bring a more normal LiveCode Script experience to LiveCode Builder.