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

Klaus major-k klaus at major-k.de
Wed Oct 16 08:11:20 EDT 2024


Hi all,

> Am 16.10.2024 um 13:47 schrieb Klaus major-k via use-livecode <use-livecode at lists.runrev.com>:
> ...
> 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

found the problem and the solution:
...
addicon("metronom",tPath,0)
...
Is actually a FUNCTION and not a HANDLER as the dictionary states!?

So I could add my icon tot he "standard SVG lib" with:
...
 get addicon("fontawesome/metronom",tPath,0)
...

But can't we just click an icon in the inspector for the e.g. navigation bar widget
and the SVG lib pops up with a still way to small scrollbar anymore?

I click and click, no dice, will need to script this... :-/


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