Re: SVG icons in buttons

2019-02-27 Thread Mark Waddingham via use-livecode
You only need to recompile an svg file to a drawing if the file content changes - drawings scale using the rect of the image object, based on the viewBox and preserveAspectRatio attributes on the root node of the original svg file. If a specific SVG file isn't scaling when compiled to a drawing

PDFViewer_v100

2019-02-27 Thread hh via use-livecode
Just updated PDFViewer (uses parts of pdf.js, see https://github.com/mozilla/pdf.js ). Use it if you can't/won't rely on the user's PDF-plugin. Download PDFViewer_v100 from "Sample Stacks" or http://livecodeshare.runrev.com/stack/916/ Current features: * Switch to prev/next/any page of the PD

Re: SVG icons in buttons

2019-02-27 Thread hh via use-livecode
> BR wrote: > though I just discovered that if you group the widget, by itself, in > does accept the graphic effects. Was the first time published by Jeanne DeVoto: http://lists.runrev.com/pipermail/use-livecode/2016-October/232259.html after a question of BR in the use-list ...

Re: SVG icons in buttons

2019-02-27 Thread hh via use-livecode
The corresponding versions that use JavaScript (from midth 2017) use the full SVG power of a browser and store the SVG as a property of the image. And then they convert (very fast) the SVG again to the image whenever the image is resized. This doesn't need any additional space if you already use a

Re: SVG icons in buttons

2019-02-27 Thread Richmond via use-livecode
Thanks for the quick response. As requested: Bug 21860 Richmond. On 27.02.19 17:44, Mark Waddingham via use-livecode wrote: On 2019-02-27 15:56, Richmond via use-livecode wrote: Sort of . . . http://forums.livecode.com/viewtopic.php?f=6&t=32266&p=177101#p177101 Hmmm - that is strange - the

Re: SVG icons in buttons

2019-02-27 Thread JJS via use-livecode
Nice, even colors. When you change the size of the svg image, then the image in the button sizes along. You have to adjust the button then to the new size Op 27-2-2019 om 16:44 schreef Mark Waddingham via use-livecode: On 2019-02-27 15:56, Richmond via use-livecode wrote: Sort of . . . http

Re: Format text data records for processing in Livecode

2019-02-27 Thread Kaveh Bazargan via use-livecode
On Tue, 26 Feb 2019 at 23:12, Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Kaveh Bazargan wrote: > > > My use case might be unusual in that I have several itemdelimiters in > > the same text. I need to record what each one is, but they must not be > > the same. I mi

Re: Livecode or Windows (10) issue?

2019-02-27 Thread Tom Glod via use-livecode
Hi Andy, I'm using CTRL + "~" Thanks On Wed, Feb 27, 2019 at 1:00 AM AndyP via use-livecode < use-livecode@lists.runrev.com> wrote: > What Control key combination are you using? So that we can test. > > > > - > Andy Piddock > > > My software never has bugs. It just develops random features.

Re: SVG icons in buttons

2019-02-27 Thread Mark Waddingham via use-livecode
On 2019-02-27 15:56, Richmond via use-livecode wrote: Sort of . . . http://forums.livecode.com/viewtopic.php?f=6&t=32266&p=177101#p177101 Hmmm - that is strange - the image looks relatively simple there, so the SVG for it should be and thus be supported... Can you file a bug with the .svg fi

Re: SVG icons in buttons

2019-02-27 Thread Sannyasin Brahmanathaswami via use-livecode
Ha! Monte answer, (email is running behind the thread!) "Import the SVG using the drawing library `drawingSVGCompile()` and set the text of an image to the returned value. Then use the image ID as an icon in the normal way." Oh boy! Brahmanathaswami I am a little late to the SVG Party

Re: SVG icons in buttons

2019-02-27 Thread Sannyasin Brahmanathaswami via use-livecode
I am a little late to the SVG Partywhat do you mean: "Admittedly you do need to compile your SVG to the drawing format so you can use them in images," ?? To state the obvious: Currently, I have to "expose" a new SVG widget every time it make it a button. In theory, if SVG can be

Re: SVG icons in buttons

2019-02-27 Thread Richmond via use-livecode
Sort of . . . http://forums.livecode.com/viewtopic.php?f=6&t=32266&p=177101#p177101 Richmond. On 27.02.19 9:54, AndyP via use-livecode wrote: SVGs can also now be Imported As Control > Image svg is now included as an image file type. - Andy Piddock My software never has bugs. It just

Re: SVG icons in buttons

2019-02-27 Thread Mark Waddingham via use-livecode
On 2019-02-27 11:23, hh via use-livecode wrote: That's a fake, as long it is called "SVG"-Icons. These are ordinary images, converted from SVG, no longer SVG objects. Also the import is not a real SVG import but an import of the converted image. This is fine, but we shouldn't name these objects

Re: SVG icons in buttons

2019-02-27 Thread hh via use-livecode
That's a fake, as long it is called "SVG"-Icons. These are ordinary images, converted from SVG, no longer SVG objects. Also the import is not a real SVG import but an import of the converted image. This is fine, but we shouldn't name these objects "SVG" as they are ordinary images in the stack.