Skin a control with SVG Widget in Datagrid
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Skin a control with SVG Widget in Datagrid
You can just set the height/width of the image. If you want to preserve the aspect ratio, you will need to do that manually as the image will scale in both directions to fill the rect.
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Skin a control with SVG Widget in Datagrid
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Skin a control with SVG Widget in Datagrid
Does anyone know if it's possible to call the svgiconfilter (list of SVG Icons) by script from a stack? I'd like to do something that combines both the output Brian's program produces and something like the following to display the presetname just by clicking on the image to fetch a new one.
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Skin a control with SVG Widget in Datagrid
BTW, thank you Brian for releasing this. It's a very slick bit of code and will be handy to have. Is it possible to read an lce file to see how its done?
Cheers,
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: Skin a control with SVG Widget in Datagrid
In the “My Livecode/Extensions” folder is where you find the installed files. The actual .lcb file is located in the extension folder. It is quite simple - all of the hard work is done by the compile code.
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Skin a control with SVG Widget in Datagrid
Wonderful, thanks. By any chance have you had any experience getting the list of SVG Icons to pop up using script from a stack?
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS
Re: Skin a control with SVG Widget in Datagrid
Take a look at this thread:
http://forums.livecode.com/viewtopic.ph ... vgicontool
The SvgIconTool isn't exactly what you are asking for, but it does pull the icons from the current family and display them in a grid format. I'm pretty familiar with the Icon Family code since I submitted those changes.
http://forums.livecode.com/viewtopic.ph ... vgicontool
The SvgIconTool isn't exactly what you are asking for, but it does pull the icons from the current family and display them in a grid format. I'm pretty familiar with the Icon Family code since I submitted those changes.
-
- VIP Livecode Opensource Backer
- Posts: 931
- Joined: Thu Nov 13, 2008 6:48 am
Re: Skin a control with SVG Widget in Datagrid
Ok thanks. Will try and get to it this week. Appreciate the pointer.bwmilby wrote: ↑Thu Oct 01, 2020 1:25 pmTake a look at this thread:
http://forums.livecode.com/viewtopic.ph ... vgicontool
The SvgIconTool isn't exactly what you are asking for, but it does pull the icons from the current family and display them in a grid format. I'm pretty familiar with the Icon Family code since I submitted those changes.
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS
Targets: Mac, iOS