addIcon(pName,pSVG,pCodepoint) what is the CODEPOPINT?

Klaus major-k klaus at major-k.de
Wed Oct 16 07:47:54 EDT 2024


Hi all,

> Am 16.10.2024 um 13:39 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
> 
> Hi all,
> 
> I wanted to add a SCV icon, I have a name and the SVG PATH, 
> but what do I need to enter for the CODEPOINT?
> 
> addIcon(pName,pSVG,pCodepoint)
> 
> Thanks for any hint!

just found an LC lessons for adding icons and Panos advised to use 0 (ZERO) as
the codepoint if not using any "FontAwesome" icons.

So I wrote:
...
put the text of fld "path" into tPath
addicon("metronom",tPath,0)
...

However then I get:
button "Button": execution error at line 5 (call: too few arguments), char 1


Best

Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de




More information about the use-livecode mailing list