Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LCB Dictionary for SVG #36

Open
macMikey opened this issue Sep 17, 2022 · 1 comment
Open

LCB Dictionary for SVG #36

macMikey opened this issue Sep 17, 2022 · 1 comment

Comments

@macMikey
Copy link
Owner

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
Copy link
Owner Author

macMikey commented Sep 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant