Re: addIcon issue

2022-08-28 Thread Mike Kerner via use-livecode
* icon operations are temporary (as soon as you quit LC and relaunch it, the icons and families you add go away) * there is no deleteIcon code in the icon api * the icon api is in /Contents/Tools/Extensions/com.livecode.library.iconsvg/iconsvg.lcb On Fri, Aug 26, 2022 at 5:11 PM Bob Cole via use-

Re: addIcon issue

2022-08-26 Thread Bob Cole via use-livecode
I added the test icon to the custom icon library. Now I want to delete it. In the Dictionary for Icon SVG Library, I see there is a way to delete an entire icon family: deleteIconFamily(pFamily) Is there a way to remove just one icon from a family? Bob ___

Re: addIcon issue

2022-08-21 Thread Mike Kerner via use-livecode
thanks, brian, i'll have a look. i was reading through the library and the filter code. ralph proposed adding a family menu (or a means for either specifying the family or showing all families) to the filter. i think that would be a good idea. On Sun, Aug 21, 2022 at 2:42 PM Brian Milby via use-li

Re: addIcon issue

2022-08-21 Thread Brian Milby via use-livecode
Have you looked at SVG Icon Tool (Sample Stacks)? It can help manage icon families. You should be able to set the icon using just the short name. The icon svg library will check the current library first and then cycle through all loaded families looking for a match. If there is a collision

Re: addIcon issue

2022-08-21 Thread Mike Kerner via use-livecode
reading through the library, it appears that you are correct - you cannot add to the default family. changing the family using setCurrentIconFamily("custom") does cause the picker to show those icons. if i want to select one for assignment to a widget, is that the only way to do it? entering custom

Re: addIcon issue

2022-08-21 Thread J. Landman Gay via use-livecode
I don't think you can add to the default icon family. The docs say that if you haven't specified a family then the icon goes into one named "custom". So see what you get when you run iconFamilies() and if "custom" is in there then set the family using setCurrentIconFamily("custom"). If you pre

addIcon issue

2022-08-21 Thread Mike Kerner via use-livecode
I have an svg widget that draws correctly, so I'm trying to add it to the library, but addIcon does not seem to be working. After calling addIcon, I try to search for the icon, but it does not appear in the icon picker, and adding it by name does not work, either. Here's the line: get addIcon("test