From bogdanoff at me.com Mon Jan 1 03:39:29 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 01 Jan 2018 00:39:29 -0800 Subject: lineHeight different Mac vs. Windows In-Reply-To: <612e0810-8e08-ecbe-206b-93b5ee364d9e@warrensweb.us> References: <0D959DEE-6D90-402C-951C-483FA8AADDAE@me.com> <612e0810-8e08-ecbe-206b-93b5ee364d9e@warrensweb.us> Message-ID: <1BA3E3CC-ACC6-4A35-B029-546D0905DBC7@me.com> My page layout is fixed ? no user settings of font face or size. Also the card height doesn?t have room for text fields to get taller. And there was the design decision not to show scroll bars. Text also often has ?widows? at the bottom of the field when the text was formatted for Mac but is displayed in Windows. Thus my desire to adjust the Windows text to get it to flow similarly to the Mac (where it was authored). This is an old-school desktop application with serious content! My heritage is the 1990s Voyager Company?s CD-ROM programs where titles were designed to be book-like. Peter > On Dec 31, 2017, at 2:36 PM, Warren Samples via use-livecode wrote: > > On 12/31/2017 03:11 PM, Peter Bogdanoff via use-livecode wrote: >> text sometimes flows off the bottom of the field. Changing the font size is too extreme a change and doesn?t fix widows. >> I?m trying to conceive of a method of somehow creating page metadata that reformats the Windows text?possibly adjusting field width, arbitrary carriage returns to move text, changing the text size of space characters, etc., all in an attempt to make the Windows version text display more of less the same as Mac. But the problem of line height difference is otherwise unfixable by me. > > > Linux users also often face the problem where LC developers share stacks where multi-line text wraps below the bottom of fields with fixed height. > > Can you set the field height to the formattedHeight and auto-show scrollbars as necessary when you load the field's contents? That ordinarily solves the problem. I would protest efforts to mess with user font selection, be it fontface or size and suggest you try to make it adaptive. Fontface and size can be elements the user has good reasons to set for himself. > > > Warren > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Mon Jan 1 11:03:28 2018 From: livfoss at mac.com (Graham Samuel) Date: Mon, 01 Jan 2018 17:03:28 +0100 Subject: Error deleting a stack Message-ID: <35390127-9E38-40F1-9EC1-8D1D497EED10@mac.com> Happy New Year to all! I have a bit of script that says delete stack ?myStack? This runs in a mainstack (not the one I?m trying to delete, ?myStack?, which I?ll call the target), but the path by which this script was invoked was started in a menu item in the target. I get error 377 ?stack locked or object?s script is executing?. The target stack?s ?cantDelete' property is false, its ?destroyStack' and ?destroyWindow' properties are true. The thing is, this used to work, probably in the LC 7 series. It never went wrong, so presumably something?s changed in the engine. I accept that it doesn?t work now, but I need to get the target stack definitively out of memory, and I don?t think just closing it does that. Can anyone help with this? TIA Graham From bonnmike at gmail.com Mon Jan 1 11:38:54 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Mon, 1 Jan 2018 09:38:54 -0700 Subject: Error deleting a stack In-Reply-To: <35390127-9E38-40F1-9EC1-8D1D497EED10@mac.com> References: <35390127-9E38-40F1-9EC1-8D1D497EED10@mac.com> Message-ID: Try using a send in time to do the deletion? Also, with the settings you currently have, closing the stack SHOULD remove it from memory once any running scripts are complete. On Mon, Jan 1, 2018 at 9:03 AM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: > Happy New Year to all! > > I have a bit of script that says > > delete stack ?myStack? > > This runs in a mainstack (not the one I?m trying to delete, ?myStack?, > which I?ll call the target), but the path by which this script was invoked > was started in a menu item in the target. I get error 377 ?stack locked or > object?s script is executing?. The target stack?s ?cantDelete' property is > false, its ?destroyStack' and ?destroyWindow' properties are true. > > The thing is, this used to work, probably in the LC 7 series. It never > went wrong, so presumably something?s changed in the engine. I accept that > it doesn?t work now, but I need to get the target stack definitively out of > memory, and I don?t think just closing it does that. > > Can anyone help with this? > > TIA > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dochawk at gmail.com Mon Jan 1 13:46:43 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 1 Jan 2018 10:46:43 -0800 Subject: Error deleting a stack In-Reply-To: <35390127-9E38-40F1-9EC1-8D1D497EED10@mac.com> References: <35390127-9E38-40F1-9EC1-8D1D497EED10@mac.com> Message-ID: On Mon, Jan 1, 2018 at 8:03 AM, Graham Samuel via use-livecode < use-livecode at lists.runrev.com> wrote: >The thing is, this used to work, probably in the LC 7 series. I think that is the error here--it shouldn't be possible to delete the stack containing a target while that target's script is running. For my transient stacks, it's send ("delete stack " & the short name of this stack) to stack "mcp" in 0 (where "mcp" is the main stack with routines, etc.) -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Mon Jan 1 13:55:40 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 1 Jan 2018 10:55:40 -0800 Subject: screenloc not actually centered after changing scalefactor (was Screen Resolution for Desktop Apps) In-Reply-To: References: Message-ID: On Sun, Dec 31, 2017 at 5:31 PM, Nicolas Cueto via use-livecode < use-livecode at lists.runrev.com> wrote: > > To do "some calculations", I thought of comparing the loc to the > scalefactor. So ran the standalone on three devices, but saw no consistent > corelation between the differing locs and the scalefactor. > > I took a stab at it a few years ago, and failed. I found no coherent relationship between the location on my iMac screen and what livecode reported once I changed the scaleFactor of the stack. With each 10% increase, the stack seems to move (usually) right, and also up or down, possibly causing the menubar to be above the screen. I also see an intermittent issue that livecode things the mouse pointer is about an inch higher on the screen than it is, but the horizontal seems correct. This also seems be be limited to browse rather than select mode. -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From dochawk at gmail.com Mon Jan 1 14:01:04 2018 From: dochawk at gmail.com (Dr. Hawkins) Date: Mon, 1 Jan 2018 11:01:04 -0800 Subject: delete the customproperty (of a card) In-Reply-To: References: <515667E1-5ECB-4DC4-B457-EF5ECB9799D1@hyperhh.de> <70ef7d64-960c-97b7-1acc-c97902936b0f@gmail.com> Message-ID: For removing a single property while leaving the rest intact, I have a library routine rmProp. on rmProp prop, tgt --remove a property from the basic property set local props if tgt is empty then put the long id of me nto tgt end if put the customProperties of tgt into props repeat for each word prp in prop delete variable props[prp] end repeat set the customProperties of tgt to props end rmProp -- Dr. Richard E. Hawkins, Esq. (702) 508-8462 From jacque at hyperactivesw.com Mon Jan 1 17:23:58 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 1 Jan 2018 16:23:58 -0600 Subject: lineHeight different Mac vs. Windows In-Reply-To: <1BA3E3CC-ACC6-4A35-B029-546D0905DBC7@me.com> References: <0D959DEE-6D90-402C-951C-483FA8AADDAE@me.com> <612e0810-8e08-ecbe-206b-93b5ee364d9e@warrensweb.us> <1BA3E3CC-ACC6-4A35-B029-546D0905DBC7@me.com> Message-ID: On 1/1/18 2:39 AM, Peter Bogdanoff via use-livecode wrote: > My page layout is fixed ? no user settings of font face or size. Also the card height doesn?t have room for text fields to get taller. And there was the design decision not to show scroll bars. > > Text also often has ?widows? at the bottom of the field when the text was formatted for Mac but is displayed in Windows. Thus my desire to adjust the Windows text to get it to flow similarly to the Mac (where it was authored). The old-school method was to find a font size and textheight that matches what you see on Mac, and on preOpenStack, set the text properties based on platform. It used to be that Windows fonts displayed larger and/or wider than the same-named Mac fonts. That may have changed recently; my client says Windows fonts are smaller now. At any rate, do some experimentation on Windows to see if you can adjust the flow using textsize and textheight, or by experimenting with different fonts. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bogdanoff at me.com Mon Jan 1 18:04:59 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 01 Jan 2018 15:04:59 -0800 Subject: lineHeight different Mac vs. Windows In-Reply-To: References: <0D959DEE-6D90-402C-951C-483FA8AADDAE@me.com> <612e0810-8e08-ecbe-206b-93b5ee364d9e@warrensweb.us> <1BA3E3CC-ACC6-4A35-B029-546D0905DBC7@me.com> Message-ID: <71F0E421-FEFD-48D5-BBB5-4761F5505679@me.com> I think that the size difference is related to the specific font used. Georgia is displaying slightly wider in Windows than Mac. Helvetica seems pretty consistent. A Chinese font I use is much smaller in Windows. Changing Georgia from 16 to 15 is too drastic a change for me, so I need to keep the font size the same. I can?t set the textHeight since I have to set fixedLineHeight to false so I can display thumbnail images within the text. I suspect that the space between lines when fixedLineHeight is false is determined by the specific font metrics, something LiveCode can?t or doesn?t want to override. I haven?t done a test of various fonts comparing the Windows vs. Mac ?free? line spacing. Maybe there is a constant among them all? Peter > On Jan 1, 2018, at 2:23 PM, J. Landman Gay via use-livecode wrote: > > On 1/1/18 2:39 AM, Peter Bogdanoff via use-livecode wrote: >> My page layout is fixed ? no user settings of font face or size. Also the card height doesn?t have room for text fields to get taller. And there was the design decision not to show scroll bars. >> Text also often has ?widows? at the bottom of the field when the text was formatted for Mac but is displayed in Windows. Thus my desire to adjust the Windows text to get it to flow similarly to the Mac (where it was authored). > > The old-school method was to find a font size and textheight that matches what you see on Mac, and on preOpenStack, set the text properties based on platform. > > It used to be that Windows fonts displayed larger and/or wider than the same-named Mac fonts. That may have changed recently; my client says Windows fonts are smaller now. At any rate, do some experimentation on Windows to see if you can adjust the flow using textsize and textheight, or by experimenting with different fonts. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Mon Jan 1 18:34:26 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 1 Jan 2018 17:34:26 -0600 Subject: screenloc not actually centered after changing scalefactor (was Screen Resolution for Desktop Apps) In-Reply-To: References: Message-ID: On 12/31/17 7:31 PM, Nicolas Cueto via use-livecode wrote: > To do "some calculations", I thought of comparing the loc to the > scalefactor. So ran the standalone on three devices, but saw no consistent > corelation between the differing locs and the scalefactor. > > So, still no clue what to use for these calculations... My math skills are terrible so we need someone more clever to fix my calculation. But this seems to work for most scalefactors until you get down to about 0.6 or lower: on setloc pScale -- pScale = the desired scaleFactor put the screenloc into tSLoc if pScale <= 1 then put 1 + (1-pScale) into tRatio else put 1/pScale into tRatio end if put item 1 of tSLoc * tRatio into item 1 of tNewLoc put item 2 of tSLoc * tRatio into item 2 of tNewLoc set the scalefactor of this stack to pScale set the loc of this stack to tNewLoc end setloc I'm pretty sure there's a way to calculate the ratio without the "if" clause so that it works for both large and small scales and I'm not sure why it breaks at about 0.6. Hopefully one of our math gurus can advise. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Mon Jan 1 18:39:06 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Mon, 1 Jan 2018 17:39:06 -0600 Subject: lineHeight different Mac vs. Windows In-Reply-To: <71F0E421-FEFD-48D5-BBB5-4761F5505679@me.com> References: <0D959DEE-6D90-402C-951C-483FA8AADDAE@me.com> <612e0810-8e08-ecbe-206b-93b5ee364d9e@warrensweb.us> <1BA3E3CC-ACC6-4A35-B029-546D0905DBC7@me.com> <71F0E421-FEFD-48D5-BBB5-4761F5505679@me.com> Message-ID: I wonder if you could figure out a general ratio for the size difference and adjust the width of the field to correct the text wrap on Windows. That's about all I can think of. On 1/1/18 5:04 PM, Peter Bogdanoff via use-livecode wrote: > I think that the size difference is related to the specific font used. Georgia is displaying slightly wider in Windows than Mac. Helvetica seems pretty consistent. A Chinese font I use is much smaller in Windows. > > Changing Georgia from 16 to 15 is too drastic a change for me, so I need to keep the font size the same. > > I can?t set the textHeight since I have to set fixedLineHeight to false so I can display thumbnail images within the text. > > I suspect that the space between lines when fixedLineHeight is false is determined by the specific font metrics, something LiveCode can?t or doesn?t want to override. I haven?t done a test of various fonts comparing the Windows vs. Mac ?free? line spacing. Maybe there is a constant among them all? -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From bogdanoff at me.com Mon Jan 1 18:54:44 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Mon, 01 Jan 2018 15:54:44 -0800 Subject: lineHeight different Mac vs. Windows In-Reply-To: References: <0D959DEE-6D90-402C-951C-483FA8AADDAE@me.com> <612e0810-8e08-ecbe-206b-93b5ee364d9e@warrensweb.us> <1BA3E3CC-ACC6-4A35-B029-546D0905DBC7@me.com> <71F0E421-FEFD-48D5-BBB5-4761F5505679@me.com> Message-ID: <39D03AFE-A10E-410C-9C3D-C76344E6D065@me.com> Yes, I am actually adjusting the field width individually for each ?page.? But it doesn?t solve the problem of occasional ?widows? at the bottom. Thus the thought about other formatting work arounds. Thanks, Jacque. > On Jan 1, 2018, at 3:39 PM, J. Landman Gay via use-livecode wrote: > > I wonder if you could figure out a general ratio for the size difference and adjust the width of the field to correct the text wrap on Windows. That's about all I can think of. > > On 1/1/18 5:04 PM, Peter Bogdanoff via use-livecode wrote: >> I think that the size difference is related to the specific font used. Georgia is displaying slightly wider in Windows than Mac. Helvetica seems pretty consistent. A Chinese font I use is much smaller in Windows. >> Changing Georgia from 16 to 15 is too drastic a change for me, so I need to keep the font size the same. >> I can?t set the textHeight since I have to set fixedLineHeight to false so I can display thumbnail images within the text. >> I suspect that the space between lines when fixedLineHeight is false is determined by the specific font metrics, something LiveCode can?t or doesn?t want to override. I haven?t done a test of various fonts comparing the Windows vs. Mac ?free? line spacing. Maybe there is a constant among them all? > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brahma at hindu.org Mon Jan 1 22:48:30 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Tue, 2 Jan 2018 03:48:30 +0000 Subject: Go in Window (not working) Go in A window "working" Message-ID: <6E5F5B5D-AF01-4756-B742-B97593EEBA17@hindu.org> Mark recommends using "go in window" on Mobile, saying this closes stack A while going to open stack B This works on desktop put ("stack " & quote & gems & quote) into tDestination go tDestination # but stack A remains open. but this fails in a backscript put ("stack " & quote & gems & quote) into tDestination; go to tDestination in window Script error, though the dictionary seems to indicate this is correct syntax. so that I test in the msg box?and also passing by ref which we need to do. the problem is not using "a" put ("stack " & quote & gems & quote) into tDestination; go tDestination in window # fails put ("stack " & quote & gems & quote) into tDestination; go tDestination in a window # works But stack A is still open?(on desktop) thinking it was because this was being called from a library, text only script (which has no window) I created a button the top of the main stack on mouseup go to stack "gems" in window end mouseup # also fails on mouseup go to stack "gems" in a window # this worked?but stack A remains open on desktop end mouseup but doesn't this entry indicate "a" is optional? go [invisible] [to] card [of stack] [{as mode |in [a] new window|in window}] and in any case. the firs stack stays open so the goal of only keeping one stack in memory is "defeated" either way.. so ? back to this: go cardOrStackObject # e.g go "gems" (or this string) go card 3 of "gems" wait 100 milliseconds with messages close stack oStackName wait 100 milliseconds with messages Any clues to using Go in window to close stack 1 and open stack 2? From ahsoftware at sonic.net Tue Jan 2 00:03:06 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Mon, 1 Jan 2018 21:03:06 -0800 Subject: Go in Window (not working) Go in A window "working" In-Reply-To: <6E5F5B5D-AF01-4756-B742-B97593EEBA17@hindu.org> References: <6E5F5B5D-AF01-4756-B742-B97593EEBA17@hindu.org> Message-ID: On 01/01/2018 07:48 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > Mark recommends using "go in window" on Mobile, > saying this closes stack A while going to open stack B > > This works on desktop > > put ("stack " & quote & gems & quote) into tDestination > go tDestination # but stack A remains open. > > > but this fails in a backscript > > put ("stack " & quote & gems & quote) into tDestination; > go to tDestination in window > > Script error, though the dictionary seems to indicate this is correct syntax. Well, the dictionary leaves a bit to the imagination. It also says Name: window Description: The name or windowID property of any open stack. If a window is specified, the stack opens in that window, replacing the stack that was previously displayed in that window. So I believe what you want (untested) is something more like go to tDestination in or go to tDestination in -- Mark Wieder ahsoftware at gmail.com From livfoss at mac.com Tue Jan 2 06:00:06 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 02 Jan 2018 12:00:06 +0100 Subject: Uninstaller question Message-ID: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> I?m developing a very simple uninstaller for a Mac app. I have an installer, thanks to DropDMG. The uninstallation process isn?t difficult - it?s just a matter of deleting all the involved files (some are slightly tricky to find, like dock aliases, but I guess there?s a way around that). But there?s one issue that I?m unsure about: what to do if the user has not obeyed the installer's instructions to place the app in the Applications folder, or has maybe got a beta copy that wasn?t installed using the installer, or has made a ?spare? copy somewhere on their hard disk which I don?t know about. I can?t see any way to detect these ?rogue? copies - can anyone else think of one? I know there are some big hitters in this area like CleanMyMac that claim to be able to find everything to do with an installed app, but I am not that ambitious - I just don?t want to miss anything obvious. Any help would be appreciated. Graham PS When I crack this, I?ll have to do the same thing for a PC version of the app. But first things first. From richmondmathewson at gmail.com Tue Jan 2 07:45:44 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 2 Jan 2018 14:45:44 +0200 Subject: Uninstaller question In-Reply-To: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> References: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> Message-ID: <962622f5-257d-dd5a-20d3-f29d78e9a682@gmail.com> I suppose you would have to search the end-user's machine for all instances of "myStack.livecode", and that seems a risky business as the end-user might have other LiveCode stacks on their machine that are needed to do something else. Richmond. On 2/1/2018 1:00 pm, Graham Samuel via use-livecode wrote: > I?m developing a very simple uninstaller for a Mac app. I have an installer, thanks to DropDMG. > > The uninstallation process isn?t difficult - it?s just a matter of deleting all the involved files (some are slightly tricky to find, like dock aliases, but I guess there?s a way around that). But there?s one issue that I?m unsure about: what to do if the user has not obeyed the installer's instructions to place the app in the Applications folder, or has maybe got a beta copy that wasn?t installed using the installer, or has made a ?spare? copy somewhere on their hard disk which I don?t know about. I can?t see any way to detect these ?rogue? copies - can anyone else think of one? I know there are some big hitters in this area like CleanMyMac that claim to be able to find everything to do with an installed app, but I am not that ambitious - I just don?t want to miss anything obvious. > > Any help would be appreciated. > > Graham > > PS When I crack this, I?ll have to do the same thing for a PC version of the app. But first things first. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From livfoss at mac.com Tue Jan 2 08:33:36 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 02 Jan 2018 14:33:36 +0100 Subject: Uninstaller question In-Reply-To: <962622f5-257d-dd5a-20d3-f29d78e9a682@gmail.com> References: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> <962622f5-257d-dd5a-20d3-f29d78e9a682@gmail.com> Message-ID: Yes, that would be a bad strategy. I think anyway I wouldn?t be looking for stacks but for complied applications - the kind of stuff you get in the Applications folder on a Mac. If there were stacks, then for a runnable app they would be in very specific places (application support type folders). No, it?s the rogue executable I?m looking for? Thanks for the reply Cheers Graham > On 2 Jan 2018, at 13:45, Richmond Mathewson via use-livecode wrote: > > I suppose you would have to search the end-user's machine for all instances of "myStack.livecode", and that seems > a risky business as the end-user might have other LiveCode stacks on their machine that are needed to do something else. > > Richmond. > > On 2/1/2018 1:00 pm, Graham Samuel via use-livecode wrote: >> I?m developing a very simple uninstaller for a Mac app. I have an installer, thanks to DropDMG. >> >> The uninstallation process isn?t difficult - it?s just a matter of deleting all the involved files (some are slightly tricky to find, like dock aliases, but I guess there?s a way around that). But there?s one issue that I?m unsure about: what to do if the user has not obeyed the installer's instructions to place the app in the Applications folder, or has maybe got a beta copy that wasn?t installed using the installer, or has made a ?spare? copy somewhere on their hard disk which I don?t know about. I can?t see any way to detect these ?rogue? copies - can anyone else think of one? I know there are some big hitters in this area like CleanMyMac that claim to be able to find everything to do with an installed app, but I am not that ambitious - I just don?t want to miss anything obvious. >> >> Any help would be appreciated. >> >> Graham >> >> PS When I crack this, I?ll have to do the same thing for a PC version of the app. But first things first. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Jan 2 09:13:17 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 2 Jan 2018 16:13:17 +0200 Subject: Uninstaller question In-Reply-To: References: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> <962622f5-257d-dd5a-20d3-f29d78e9a682@gmail.com> Message-ID: <572a1a8a-1834-8090-5b38-1b22677cd88f@gmail.com> Well, preumably the "clever" thing to do is to gave your standalone some unique name such as "WildBoar.exe" or somesuch, rather than a very pedesrian name such as "MyProg.exe" which risks having a twin. Then you'll need a routine to search the end-user's system to find all examples of WildBoar.exe and delete them. As you have pointed out, your executable may have been plonking log and pref files in various places: and it shouldn't really matter where the end-user has stored the original executable; they should be in standard places determined by your executable. What I think you MUST do is make sure any log, temp and pref files have "speicies specific" names so that your uninstaller can track them down, dlete them, and NOT delete the end-user's preferences for their browser settings or what-have-ye. -------------------------------- So . . . 1. Make your executable/standalone for whatever operating system(s) you are building it. 2. Set up a computer for each target OS with a virgin system and install your executable. 3. Find ALL the log, temp, cache and pref files your executable "strews" around the system and write their names down and their usual locations. 4. Go on a 4 week holiday to recover from the large amount of work involved in doing that. Richmond. On 2/1/2018 3:33 pm, Graham Samuel via use-livecode wrote: > Yes, that would be a bad strategy. I think anyway I wouldn?t be looking for stacks but for complied applications - the kind of stuff you get in the Applications folder on a Mac. If there were stacks, then for a runnable app they would be in very specific places (application support type folders). No, it?s the rogue executable I?m looking for? > > Thanks for the reply > > Cheers > > Graham > >> On 2 Jan 2018, at 13:45, Richmond Mathewson via use-livecode wrote: >> >> I suppose you would have to search the end-user's machine for all instances of "myStack.livecode", and that seems >> a risky business as the end-user might have other LiveCode stacks on their machine that are needed to do something else. >> >> Richmond. >> >> On 2/1/2018 1:00 pm, Graham Samuel via use-livecode wrote: >>> I?m developing a very simple uninstaller for a Mac app. I have an installer, thanks to DropDMG. >>> >>> The uninstallation process isn?t difficult - it?s just a matter of deleting all the involved files (some are slightly tricky to find, like dock aliases, but I guess there?s a way around that). But there?s one issue that I?m unsure about: what to do if the user has not obeyed the installer's instructions to place the app in the Applications folder, or has maybe got a beta copy that wasn?t installed using the installer, or has made a ?spare? copy somewhere on their hard disk which I don?t know about. I can?t see any way to detect these ?rogue? copies - can anyone else think of one? I know there are some big hitters in this area like CleanMyMac that claim to be able to find everything to do with an installed app, but I am not that ambitious - I just don?t want to miss anything obvious. >>> >>> Any help would be appreciated. >>> >>> Graham >>> >>> PS When I crack this, I?ll have to do the same thing for a PC version of the app. But first things first. >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From rdimola at evergreeninfo.net Tue Jan 2 10:18:33 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Tue, 2 Jan 2018 10:18:33 -0500 Subject: lineHeight different Mac vs. Windows In-Reply-To: <39D03AFE-A10E-410C-9C3D-C76344E6D065@me.com> References: <0D959DEE-6D90-402C-951C-483FA8AADDAE@me.com> <612e0810-8e08-ecbe-206b-93b5ee364d9e@warrensweb.us> <1BA3E3CC-ACC6-4A35-B029-546D0905DBC7@me.com> <71F0E421-FEFD-48D5-BBB5-4761F5505679@me.com> <39D03AFE-A10E-410C-9C3D-C76344E6D065@me.com> Message-ID: <007a01d383dc$f7512390$e5f36ab0$@net> I have 2 bug reports on this. 12176 and 13551 Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net From harrison at all-auctions.com Tue Jan 2 10:38:57 2018 From: harrison at all-auctions.com (Rick Harrison) Date: Tue, 2 Jan 2018 10:38:57 -0500 Subject: Uninstaller question In-Reply-To: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> References: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> Message-ID: <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> Hi Graham, Most applications on the Mac do not have uninstaller as they are usually very easy to uninstall by deleting the application. Most users are smart enough to know they have to delete any aliases in the dock. They usually know that the prefs file for the application should be deleted as well if they run into problems. Many times a good support webpage with clear instructions on how to completely delete the app and how to install the new version correctly is all that is needed. You can also remind users how to use the ?Find? File menu option in the Finder to look for your rogue versions if you feel it is necessary. You can always tag your files with some information which will always be unique to your program. If you use the ?Find? File menu option, and then click on options you will find a whole list of potential meta-data fields you could exploit to create your unique program profile. Never recommend Mac Keeper or Mac Cleaner as they are considered to be Malware/Spyware/Annoyance-ware and are difficult for some users to eradicate. Good luck! Rick > On Jan 2, 2018, at 6:00 AM, Graham Samuel via use-livecode wrote: > > I?m developing a very simple uninstaller for a Mac app. I have an installer, thanks to DropDMG. > > The uninstallation process isn?t difficult - it?s just a matter of deleting all the involved files (some are slightly tricky to find, like dock aliases, but I guess there?s a way around that). But there?s one issue that I?m unsure about: what to do if the user has not obeyed the installer's instructions to place the app in the Applications folder, or has maybe got a beta copy that wasn?t installed using the installer, or has made a ?spare? copy somewhere on their hard disk which I don?t know about. I can?t see any way to detect these ?rogue? copies - can anyone else think of one? I know there are some big hitters in this area like CleanMyMac that claim to be able to find everything to do with an installed app, but I am not that ambitious - I just don?t want to miss anything obvious. > > Any help would be appreciated. > > Graham > > PS When I crack this, I?ll have to do the same thing for a PC version of the app. But first things first. > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Tue Jan 2 12:20:47 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 2 Jan 2018 19:20:47 +0200 Subject: Uninstaller question In-Reply-To: <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> References: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> Message-ID: <08fe42fe-aee2-f040-bef5-8e85cc210c6a@gmail.com> On 2/1/2018 5:38 pm, Rick Harrison via use-livecode wrote: > Hi Graham, > > Most applications on the Mac do not have uninstaller as > they are usually very easy to uninstall by deleting the > application. Most users are smart enough to know they > have to delete any aliases in the dock. They usually know > that the prefs file for the application should be deleted > as well if they run into problems. > > Many times a good support webpage with clear instructions > on how to completely delete the app and how to install > the new version correctly is all that is needed. You can > also remind users how to use the ?Find? File menu option > in the Finder to look for your rogue versions if you feel > it is necessary. > > You can always tag your files with some information which > will always be unique to your program. If you use the > ?Find? File menu option, and then click on options you > will find a whole list of potential meta-data fields you > could exploit to create your unique program profile. > > Never recommend Mac Keeper or Mac Cleaner as they > are considered to be Malware/Spyware/Annoyance-ware > and are difficult for some users to eradicate. Indeed: these are terrible, as well as the fact that I get spam windows in my browsers for them. Richmond. > > Good luck! > > Rick > > > > > > >> On Jan 2, 2018, at 6:00 AM, Graham Samuel via use-livecode wrote: >> >> I?m developing a very simple uninstaller for a Mac app. I have an installer, thanks to DropDMG. >> >> The uninstallation process isn?t difficult - it?s just a matter of deleting all the involved files (some are slightly tricky to find, like dock aliases, but I guess there?s a way around that). But there?s one issue that I?m unsure about: what to do if the user has not obeyed the installer's instructions to place the app in the Applications folder, or has maybe got a beta copy that wasn?t installed using the installer, or has made a ?spare? copy somewhere on their hard disk which I don?t know about. I can?t see any way to detect these ?rogue? copies - can anyone else think of one? I know there are some big hitters in this area like CleanMyMac that claim to be able to find everything to do with an installed app, but I am not that ambitious - I just don?t want to miss anything obvious. >> >> Any help would be appreciated. >> >> Graham >> >> PS When I crack this, I?ll have to do the same thing for a PC version of the app. But first things first. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Jan 2 12:37:36 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 2 Jan 2018 09:37:36 -0800 Subject: Uninstaller question In-Reply-To: <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> References: <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> Message-ID: <56026313-e347-4aba-fdfe-6dfdd343ea0c@fourthworld.com> Rick Harrison wrote: > Never recommend Mac Keeper or Mac Cleaner as they > are considered to be Malware/Spyware/Annoyance-ware > and are difficult for some users to eradicate. Add Kaspersky to that list: UK cyber security chief warns government against using Kaspersky Kaspersky Lab Antivirus Software Is Ordered Off U.S. Government Computers Israeli intelligence warned US of Russian spies using Kaspersky software Kaspersky Lab Has Been Working With Russian Intelligence -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From richmondmathewson at gmail.com Tue Jan 2 12:43:28 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Tue, 2 Jan 2018 19:43:28 +0200 Subject: Uninstaller question In-Reply-To: <56026313-e347-4aba-fdfe-6dfdd343ea0c@fourthworld.com> References: <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> <56026313-e347-4aba-fdfe-6dfdd343ea0c@fourthworld.com> Message-ID: <3c321bac-f741-4ed8-16c3-191be53ae882@gmail.com> I really wonder what the Russians would do withmy LiveCode files? They would probably bring down Putin: and in my opinion, at least, that might not be a bad thing. Richmond. On 2/1/2018 7:37 pm, Richard Gaskin via use-livecode wrote: > Rick Harrison wrote: > > > Never recommend Mac Keeper or Mac Cleaner as they > > are considered to be Malware/Spyware/Annoyance-ware > > and are difficult for some users to eradicate. > > Add Kaspersky to that list: > > UK cyber security chief warns government against using Kaspersky > > > > > Kaspersky Lab Antivirus Software Is Ordered Off U.S. Government Computers > > > > > Israeli intelligence warned US of Russian spies using Kaspersky software > > > > Kaspersky Lab Has Been Working With Russian Intelligence > > > From benr_mc at cogapp.com Tue Jan 2 12:46:28 2018 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Tue, 2 Jan 2018 17:46:28 +0000 Subject: [off] Apple to unify ios/macos apps next year In-Reply-To: References: <336212FB-574D-4E03-BF89-ABD1698426F0@pacifier.com> Message-ID: <6c4ba34e-b11d-c4d3-99e9-b28acd4dc9ea@cogapp.com> I'm coming to this late, but it looks to me as if the list got into a nightmare mode a bit prematurely. What the article actually talks about is a way to create apps which can be used across 'desktop' and mobile operating systems - specifically *not* about merging those operating systems. In short, a very approximate way of describing the idea would be... LiveCode. We code an app with a text field and a button; on the desktop our users click the button with the mouse, on mobile they touch it. On desktop they click into the field and start typing on their keyboard; on mobile they touch the field and a soft keyboard appears. Apple are just trying to help the rest of the developer community catch up with us. Shouldn't we panic less? Or have I missed something? On 21/12/2017 01:01, Dr. Hawkins via use-livecode wrote: > On Wed, Dec 20, 2017 at 3:35 PM, JB via use-livecode > wrote: >> Is Apple going to have enough intelligence to >> make the ios compatible with the os desktop >> or will they do away with the desktop to make >> the new mac os like the ios? > > > *shudder* > > I'd be back on FreeBSD in a couple of days. > > It's Spotlight and the power management on portables that has me using > mac as my unix platform. OK, and iCloud Drive now. > > Mess with those (and spotlight has seriously regressed over the last > ten years) and I'm gone. > > From sundown at pacifier.com Tue Jan 2 13:32:48 2018 From: sundown at pacifier.com (JB) Date: Tue, 2 Jan 2018 10:32:48 -0800 Subject: [off] Apple to unify ios/macos apps next year In-Reply-To: <6c4ba34e-b11d-c4d3-99e9-b28acd4dc9ea@cogapp.com> References: <336212FB-574D-4E03-BF89-ABD1698426F0@pacifier.com> <6c4ba34e-b11d-c4d3-99e9-b28acd4dc9ea@cogapp.com> Message-ID: <4DE22B14-EC44-47E9-B88B-AF364E1CCC65@pacifier.com> And my question was will they have the intelligence to do it the way you suggest. Apple did rename OS X to macOS which suggest changes to the OS but what will those changes be? If they do it they way you are thinking it will be one of the best things they have in years. JB > On Jan 2, 2018, at 9:46 AM, Ben Rubinstein via use-livecode wrote: > > I'm coming to this late, but it looks to me as if the list got into a nightmare mode a bit prematurely. What the article actually talks about is a way to create apps which can be used across 'desktop' and mobile operating systems - specifically *not* about merging those operating systems. > > In short, a very approximate way of describing the idea would be... LiveCode. > > We code an app with a text field and a button; on the desktop our users click the button with the mouse, on mobile they touch it. On desktop they click into the field and start typing on their keyboard; on mobile they touch the field and a soft keyboard appears. Apple are just trying to help the rest of the developer community catch up with us. > > Shouldn't we panic less? Or have I missed something? > > > On 21/12/2017 01:01, Dr. Hawkins via use-livecode wrote: >> On Wed, Dec 20, 2017 at 3:35 PM, JB via use-livecode >> wrote: >>> Is Apple going to have enough intelligence to >>> make the ios compatible with the os desktop >>> or will they do away with the desktop to make >>> the new mac os like the ios? >> *shudder* >> I'd be back on FreeBSD in a couple of days. >> It's Spotlight and the power management on portables that has me using >> mac as my unix platform. OK, and iCloud Drive now. >> Mess with those (and spotlight has seriously regressed over the last >> ten years) and I'm gone. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From ambassador at fourthworld.com Tue Jan 2 13:51:18 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 2 Jan 2018 10:51:18 -0800 Subject: [off] Apple to unify ios/macos apps next year In-Reply-To: <6c4ba34e-b11d-c4d3-99e9-b28acd4dc9ea@cogapp.com> References: <6c4ba34e-b11d-c4d3-99e9-b28acd4dc9ea@cogapp.com> Message-ID: Ben Rubinstein wrote: > I'm coming to this late, but it looks to me as if the list got into a > nightmare mode a bit prematurely. What the article actually talks > about is a way to create apps which can be used across 'desktop' and > mobile operating systems - specifically *not* about merging those > operating systems. What is an operating system without applications? The OS is the bedrock; apps are the home built on top in which we live. Apps define what we do with our devices. That Apple would join the effort to define multi-device APIs along with Microsoft and Linux is inevitable, as many suggested even before the iPad premiered. After all, what's the difference between a tablet with a docking keyboard and a laptop with a detachable touch screen? As device form factors continue to multiply they continue to overlap in use-cases. To maintain an entirely different OS for every device type is only slightly less cumbersome than if they were to have a different OS for every model. As use-cases overlap, that's effectively the corner a vendor would paint themselves into. Not at all surprising to see this next logical evolutionary step. While it's validating to see OS vendors adopt a more LiveCode Way of working, LC will still hold an advantage over OS-provided tools: Apple and Microsoft act as though nothing else exists outside their walls; as long as you buy gear and tools from one OS vendor they work well, but neither has any incentive to prioritize about interoperability. Why should they spend money to strengthen their competitor's position? Meanwhile, people have diverse tastes so the world is naturally multi-platform. A tool that plays nice with others will always provide access to more people using more platforms more affordably than any OS-exclusive option. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From bobsneidar at iotecdigital.com Tue Jan 2 14:04:25 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 2 Jan 2018 19:04:25 +0000 Subject: [off] Apple to unify ios/macos apps next year In-Reply-To: References: <6c4ba34e-b11d-c4d3-99e9-b28acd4dc9ea@cogapp.com> Message-ID: A radically slower processor and/or a limited number of expansion ports? Of course you can get cheap laptops too. But your point is taken. Whenever someone asks me, "What computer (or phone or tablet) should I buy?" I always ask, "Why are you wanting to do with it?" I am all in favor of small/inexpensive devices which are limited in their functionality. In fact, that is what the iPhone, and then later the iPad and android based devices actually did for the market. They filled a huge niche where a lot of people (Mom/Dad/Grandparents/School Kids) didn't need a relatively expensive laptop, but there was nothing else available. Bob S > On Jan 2, 2018, at 10:51 , Richard Gaskin via use-livecode wrote: > > After all, what's the difference between a tablet with a docking keyboard and a laptop with a detachable touch screen? From bobsneidar at iotecdigital.com Tue Jan 2 14:12:18 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 2 Jan 2018 19:12:18 +0000 Subject: Uninstaller question In-Reply-To: <56026313-e347-4aba-fdfe-6dfdd343ea0c@fourthworld.com> References: <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> <56026313-e347-4aba-fdfe-6dfdd343ea0c@fourthworld.com> Message-ID: <4B820674-82DE-40C2-A1EB-C3AF43D9DF19@iotecdigital.com> Not to venture off topic too far, but if Kaspersky products have been communicating with outside entities and passing along information, the real wonder is that there are no present indications in anyone's router logs to indicate it is doing so. In fact there are entire companies that thrive on looking for such compromises, as well as competing companies which would make capital on any such evidence. Intrusion Detection Systems all over the globe monitor for suspicious activity. Many exploits have been discovered through these kinds of systems. I have not heard of any which indicate that Kaspersky products are compromising security. As Sherlock Holmes said to Watson on many occasions, "It is always a mistake, my dear Watson, to guess. Invariably you will find yourself attempting to fit the facts to your theories, instead of forming your theories to fit the facts." Bob S > On Jan 2, 2018, at 09:37 , Richard Gaskin via use-livecode wrote: > > Rick Harrison wrote: > > > Never recommend Mac Keeper or Mac Cleaner as they > > are considered to be Malware/Spyware/Annoyance-ware > > and are difficult for some users to eradicate. > > Add Kaspersky to that list: > > UK cyber security chief warns government against using Kaspersky > > > > Kaspersky Lab Antivirus Software Is Ordered Off U.S. Government Computers > > > > Israeli intelligence warned US of Russian spies using Kaspersky software > > > > Kaspersky Lab Has Been Working With Russian Intelligence > > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Jan 2 14:15:26 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 2 Jan 2018 19:15:26 +0000 Subject: lineHeight different Mac vs. Windows In-Reply-To: <71F0E421-FEFD-48D5-BBB5-4761F5505679@me.com> References: <0D959DEE-6D90-402C-951C-483FA8AADDAE@me.com> <612e0810-8e08-ecbe-206b-93b5ee364d9e@warrensweb.us> <1BA3E3CC-ACC6-4A35-B029-546D0905DBC7@me.com> <71F0E421-FEFD-48D5-BBB5-4761F5505679@me.com> Message-ID: <3CCB53CE-6AFA-428A-9F29-5CBE1C4C3267@iotecdigital.com> I always use web optimized fonts for anything I do that will be cross platform. I don't think that will address your specifit issue, but I think it's a good practice, since these fonts might take more care to be universal in their appearance. Bob S > On Jan 1, 2018, at 15:04 , Peter Bogdanoff via use-livecode wrote: > > I think that the size difference is related to the specific font used. Georgia is displaying slightly wider in Windows than Mac. Helvetica seems pretty consistent. A Chinese font I use is much smaller in Windows. > > Changing Georgia from 16 to 15 is too drastic a change for me, so I need to keep the font size the same. > > I can?t set the textHeight since I have to set fixedLineHeight to false so I can display thumbnail images within the text. > > I suspect that the space between lines when fixedLineHeight is false is determined by the specific font metrics, something LiveCode can?t or doesn?t want to override. I haven?t done a test of various fonts comparing the Windows vs. Mac ?free? line spacing. Maybe there is a constant among them all? > > Peter > > >> On Jan 1, 2018, at 2:23 PM, J. Landman Gay via use-livecode wrote: >> >> On 1/1/18 2:39 AM, Peter Bogdanoff via use-livecode wrote: >>> My page layout is fixed ? no user settings of font face or size. Also the card height doesn?t have room for text fields to get taller. And there was the design decision not to show scroll bars. >>> Text also often has ?widows? at the bottom of the field when the text was formatted for Mac but is displayed in Windows. Thus my desire to adjust the Windows text to get it to flow similarly to the Mac (where it was authored). >> >> The old-school method was to find a font size and textheight that matches what you see on Mac, and on preOpenStack, set the text properties based on platform. >> >> It used to be that Windows fonts displayed larger and/or wider than the same-named Mac fonts. That may have changed recently; my client says Windows fonts are smaller now. At any rate, do some experimentation on Windows to see if you can adjust the flow using textsize and textheight, or by experimenting with different fonts. >> >> -- >> Jacqueline Landman Gay | jacque at hyperactivesw.com >> HyperActive Software | http://www.hyperactivesw.com >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Tue Jan 2 14:27:05 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 2 Jan 2018 19:27:05 +0000 Subject: Optimizing for small Android devices In-Reply-To: References: <3CC4BD95-FEA2-464F-86E8-63D6AD91BCC2@hindu.org> <30c1a7b0-6f75-e091-db05-fafe70391c14@fourthworld.com> Message-ID: <00882CA3-4BB0-4A19-8D4B-D62FFB3080C6@iotecdigital.com> So did Russia BTW. But Germany's problems were not simply that the tanks were more complex and expensive to manufacture. They were suffering from a severe shortage of materials, and also some design problems. The Tiger as I recall had a turret that had to be hand cranked. They were also so heavy and guzzled so much fuel that large supply lines were necessary, and any terrain that was muddy tended to strand them. The battle of the Bulge basically ended when the Germans ran out of fuel. Sorry for the OT comment. Bob S > On Dec 29, 2017, at 18:59 , Sannyasin Brahmanathaswami via use-livecode wrote: > > I certainly did not mean to imply by "only" that pointed to the market share of phones with 1 GB ram. > > OT: I was just reading Quora about how US overwhelming Germany with sheer numbers of tanks and jets that had much lower specs than German made tanks/planes. But we won on our sheer industrial power to produce numbers. From ambassador at fourthworld.com Tue Jan 2 14:33:51 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 2 Jan 2018 11:33:51 -0800 Subject: [off] Apple to unify ios/macos apps next year In-Reply-To: References: Message-ID: <0c10b170-2434-404b-7b8a-b39ac84ef1c9@fourthworld.com> What model of router has the capacity to store all incoming and outgoing traffic? What did you find when you monitored Kaspersky traffic with Wireshark? I won't claim to have done the original research on this. I provided multiple links to reasonably reputable sources so the reader can go beyond the headlines and decide for themselves. For myself, when the intelligence agencies of at least three different nations are telling me to be wary of Kaspersky, and dozens of news articles from papers of record around the world provide details of relationships between Kaspersky staff and FSB agents, at a minimum I'm inclined to consider other brands for my AV needs. -- Richard Gaskin Fourth World Systems Bob Sneidar wrote: > Not to venture off topic too far, but if Kaspersky products have been > communicating with outside entities and passing along information, the > real wonder is that there are no present indications in anyone's > router logs to indicate it is doing so. In fact there are entire > companies that thrive on looking for such compromises, as well as > competing companies which would make capital on any such evidence. > Intrusion Detection Systems all over the globe monitor for suspicious > activity. Many exploits have been discovered through these kinds of > systems. I have not heard of any which indicate that Kaspersky > products are compromising security. > > As Sherlock Holmes said to Watson on many occasions, "It is always a > mistake, my dear Watson, to guess. Invariably you will find yourself > attempting to fit the facts to your theories, instead of forming your > theories to fit the facts." > > Bob S > > >> On Jan 2, 2018, at 09:37 , Richard Gaskin via use-livecode wrote: >> >> Rick Harrison wrote: >> >> > Never recommend Mac Keeper or Mac Cleaner as they >> > are considered to be Malware/Spyware/Annoyance-ware >> > and are difficult for some users to eradicate. >> >> Add Kaspersky to that list: >> >> UK cyber security chief warns government against using Kaspersky >> >> >> >> Kaspersky Lab Antivirus Software Is Ordered Off U.S. Government Computers >> >> >> >> Israeli intelligence warned US of Russian spies using Kaspersky software >> >> >> >> Kaspersky Lab Has Been Working With Russian Intelligence >> >> From bobsneidar at iotecdigital.com Tue Jan 2 14:52:40 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 2 Jan 2018 19:52:40 +0000 Subject: [off] Apple to unify ios/macos apps next year In-Reply-To: <0c10b170-2434-404b-7b8a-b39ac84ef1c9@fourthworld.com> References: <0c10b170-2434-404b-7b8a-b39ac84ef1c9@fourthworld.com> Message-ID: Can't argue with you there. But many routers are capable of offloading their logs to a log server, and any Government Contractor or agency is likely to be doing so, as well as running IDS, so there's that. I'm not saying our hackles shouldn't be raised, I'm simply proposing that if conclusive proof existed which undeniably indicted Kaspersky of this kind of activity, it would result in the demise of Kaspersky as a company, and Russia would lose a key source of Signals Intelligence. What I would be more concerned about is not that there is current or past activity, but that there is a "button" that could be pushed to enable the clients to begin transmitting critical intelligence during a conflict, or even worse, to disable devices running their product. The software would have to be decompiled and the code examined to make that determination. I can't believe no one has thought to do so, and perhaps the warnings we are getting are the fruits of that kind of investigation. Bob S > On Jan 2, 2018, at 11:33 , Richard Gaskin via use-livecode wrote: > > For myself, when the intelligence agencies of at least three different nations are telling me to be wary of Kaspersky, and dozens of news articles from papers of record around the world provide details of relationships between Kaspersky staff and FSB agents, at a minimum I'm inclined to consider other brands for my AV needs. > > -- > Richard Gaskin > Fourth World Systems From jacque at hyperactivesw.com Tue Jan 2 14:59:33 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 2 Jan 2018 13:59:33 -0600 Subject: Go in Window (not working) Go in A window "working" In-Reply-To: <6E5F5B5D-AF01-4756-B742-B97593EEBA17@hindu.org> References: <6E5F5B5D-AF01-4756-B742-B97593EEBA17@hindu.org> Message-ID: <99ae0a27-4ca6-80cd-2ad2-5ef782540125@hyperactivesw.com> On 1/1/18 9:48 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > but this fails in a backscript > > put ("stack " & quote & gems & quote) into tDestination; > go to tDestination in window > It needs a specific reference, not just the word "window": put the windowID of this stack into tID go stack in window tID -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Tue Jan 2 15:09:44 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 2 Jan 2018 12:09:44 -0800 Subject: [off] Apple to unify ios/macos apps next year In-Reply-To: References: Message-ID: Bob Sneidar wrote: > I'm not saying our hackles shouldn't be raised, I'm simply proposing > that if conclusive proof existed which undeniably indicted Kaspersky > of this kind of activity, When you read the details of the reports you'll see the "conclusive proof" part is going to be hard to get publicly. This involves the national security of multiple nations, so they're not inclined to divulge sources. I haven't yet read anything from a non-government source confirming these claims, but that may not be surprising given the level of sophistication possible. For example, all AV software requires admin privileges, and they all update themselves. So who can say whether the copy of Kaspersky I run is the same as what someone would be running from a known block of government IP addresses? There are many ways such software could be difficult for the public to get "conclusive proof" about. If someone wants to install Kaspersky it doesn't matter to me, as long as they're neither my employee or contractor. At least one of my clients is a federal contractor, so I have to run a clean ship. Besides, it's not like there's a shortage of reasonably good AV software out there. I can just use anything that isn't hosted on Kremlin-controlled networks. > it would result in the demise of Kaspersky as a company, In progress: Kaspersky Lab: D.C. office ?no longer viable? and will close > and Russia would lose a key source of Signals Intelligence. That seems to be the goal. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From jacque at hyperactivesw.com Tue Jan 2 16:24:11 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 2 Jan 2018 15:24:11 -0600 Subject: Free SVG icons Message-ID: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> Looks like a nice set: I like these a little better than the Font Awesome icons because they're slimmer. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From livfoss at mac.com Tue Jan 2 17:34:46 2018 From: livfoss at mac.com (Graham Samuel) Date: Tue, 02 Jan 2018 23:34:46 +0100 Subject: Uninstaller question In-Reply-To: <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> References: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> Message-ID: <4DBD774A-5E90-4C3C-A285-C483885E362E@mac.com> Thanks Rick for replying. I?m sticking to the original thread here. The thing is, there are different classes of users: developers / nerds (I guess many on this list count as some species of those - I know I do); people who want to ?just do it?; and a lot of categories in between. In my experience, teachers, even science teachers, don?t want to know anything about such details as how to install, uninstall or update a program - they just want to use it. So the kind of thing you?re suggesting, while making perfect sense to you and me, will not work for the ?just do it? brigade, who are not even be likely to read any helpful text with ?clear instructions? unless they?re truly desperate. I concede that most Mac users know about putting applications in the trash, but if the app they?ve just binned leaves behind preferences, application support files and the like, they will neither know nor care. So it?s for these kinds of users that I want create an uninstaller - and, presuming the uninstaller has the sense to notice when there?s nothing to uninstall, I will even attach it to the installation process of my app, so at least there will only be one version in the user?s machine at a time. There will also of course have to be a standalone version, for those that really want the app to vanish without trace rather than be reinstalled. The truth is I don?t exactly know what happens when you put an app in the trash, but I can?t believe all traces of the program are gone in all circumstances. I know even less about how well a PC?s Control Panel uninstall works, but I suppose I will eventually have to find out. Cheers Graham PS Mac Keeper and Mac Cleaner are indeed at the very least annoying (but probably much worse than that). CleanMyMac however, seems to be to have an honourable history and has never caused me any problems: but YMMV. > On 2 Jan 2018, at 16:38, Rick Harrison via use-livecode wrote: > > Hi Graham, > > Most applications on the Mac do not have uninstaller as > they are usually very easy to uninstall by deleting the > application. Most users are smart enough to know they > have to delete any aliases in the dock. They usually know > that the prefs file for the application should be deleted > as well if they run into problems. > > Many times a good support webpage with clear instructions > on how to completely delete the app and how to install > the new version correctly is all that is needed. You can > also remind users how to use the ?Find? File menu option > in the Finder to look for your rogue versions if you feel > it is necessary. > > You can always tag your files with some information which > will always be unique to your program. If you use the > ?Find? File menu option, and then click on options you > will find a whole list of potential meta-data fields you > could exploit to create your unique program profile. > > Never recommend Mac Keeper or Mac Cleaner as they > are considered to be Malware/Spyware/Annoyance-ware > and are difficult for some users to eradicate. > > Good luck! > > Rick > > > > > > >> On Jan 2, 2018, at 6:00 AM, Graham Samuel via use-livecode wrote: >> >> I?m developing a very simple uninstaller for a Mac app. I have an installer, thanks to DropDMG. >> >> The uninstallation process isn?t difficult - it?s just a matter of deleting all the involved files (some are slightly tricky to find, like dock aliases, but I guess there?s a way around that). But there?s one issue that I?m unsure about: what to do if the user has not obeyed the installer's instructions to place the app in the Applications folder, or has maybe got a beta copy that wasn?t installed using the installer, or has made a ?spare? copy somewhere on their hard disk which I don?t know about. I can?t see any way to detect these ?rogue? copies - can anyone else think of one? I know there are some big hitters in this area like CleanMyMac that claim to be able to find everything to do with an installed app, but I am not that ambitious - I just don?t want to miss anything obvious. >> >> Any help would be appreciated. >> >> Graham >> >> PS When I crack this, I?ll have to do the same thing for a PC version of the app. But first things first. >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ahsoftware at sonic.net Tue Jan 2 17:53:51 2018 From: ahsoftware at sonic.net (Mark Wieder) Date: Tue, 2 Jan 2018 14:53:51 -0800 Subject: Free SVG icons In-Reply-To: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> References: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> Message-ID: On 01/02/2018 01:24 PM, J. Landman Gay via use-livecode wrote: > Looks like a nice set: > > > I like these a little better than the Font Awesome icons because they're > slimmer. > Thanks. Those seem rather nice. And MIT-licensed. The dollar-sign but no euro seems a bit restricted, though. -- Mark Wieder ahsoftware at gmail.com From brian at milby7.com Tue Jan 2 18:03:29 2018 From: brian at milby7.com (Brian Milby) Date: Tue, 02 Jan 2018 23:03:29 +0000 Subject: Free SVG icons In-Reply-To: References: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> Message-ID: If willing to swap out a default library, the iconSVG library can be made to work with these. I?ve submitted a PR with the code to load new icons/families. I guess I need to add the ability to change the default family (which would enable easier use in the IDE). Also check out svg-icon on GitHub... over 10k icons, many with MIT licenses (leungwensen/svg-icon) On Tue, Jan 2, 2018 at 4:54 PM Mark Wieder via use-livecode < use-livecode at lists.runrev.com> wrote: > On 01/02/2018 01:24 PM, J. Landman Gay via use-livecode wrote: > > Looks like a nice set: > > > > > > I like these a little better than the Font Awesome icons because they're > > slimmer. > > > > Thanks. Those seem rather nice. And MIT-licensed. > The dollar-sign but no euro seems a bit restricted, though. > > -- > Mark Wieder > ahsoftware at gmail.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Tue Jan 2 18:43:59 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 2 Jan 2018 23:43:59 +0000 Subject: Uninstaller question In-Reply-To: <4DBD774A-5E90-4C3C-A285-C483885E362E@mac.com> References: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> <4DBD774A-5E90-4C3C-A285-C483885E362E@mac.com> Message-ID: PCs use a helper application which "records" all the changes made to the file system and registry. Similar apps have been written for the Mac in the past, mostly to track before and after installation for security purposes. You may want to look up software for MacOS along those lines. Bob S > On Jan 2, 2018, at 14:34 , Graham Samuel via use-livecode wrote: > > The truth is I don?t exactly know what happens when you put an app in the trash, but I can?t believe all traces of the program are gone in all circumstances. I know even less about how well a PC?s Control Panel uninstall works, but I suppose I will eventually have to find out. > > Cheers > > Graham From bobsneidar at iotecdigital.com Tue Jan 2 18:45:35 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Tue, 2 Jan 2018 23:45:35 +0000 Subject: Uninstaller question In-Reply-To: References: <6CC35FAE-A2AA-43EC-9AE1-69C34E5889F5@mac.com> <0BE229F1-A30B-4816-8624-7EE0C72BEE5C@all-auctions.com> <4DBD774A-5E90-4C3C-A285-C483885E362E@mac.com> Message-ID: <1C95E21A-8C8F-4020-A42D-795AF82C6DF6@iotecdigital.com> There is a product called App Cleaner. It's sold in the Mac App Store so it's likely been vetted. Bob S > On Jan 2, 2018, at 15:43 , Bob Sneidar via use-livecode wrote: > > PCs use a helper application which "records" all the changes made to the file system and registry. Similar apps have been written for the Mac in the past, mostly to track before and after installation for security purposes. You may want to look up software for MacOS along those lines. > > Bob S > > >> On Jan 2, 2018, at 14:34 , Graham Samuel via use-livecode wrote: >> >> The truth is I don?t exactly know what happens when you put an app in the trash, but I can?t believe all traces of the program are gone in all circumstances. I know even less about how well a PC?s Control Panel uninstall works, but I suppose I will eventually have to find out. >> >> Cheers >> >> Graham > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Tue Jan 2 18:51:43 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 2 Jan 2018 17:51:43 -0600 Subject: Free SVG icons In-Reply-To: References: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> Message-ID: As long as we're talking about this, I'd love to see more of the full set at once. The current interface is a little tedious. At first I could hardly make out the icons due to the lack of contrast, but I notice now the transparency has been toned down a bit, which helps. Still, scrolling through the whole set looking for something is slow. A window full of icons, like the linked web page, would be easier to scan. Or maybe add a "Show All" button where we could see the whole set in a window, and people could choose their view. Just thinking out loud. On 1/2/18 5:03 PM, Brian Milby via use-livecode wrote: > If willing to swap out a default library, the iconSVG library can be made > to work with these. I?ve submitted a PR with the code to load new > icons/families. I guess I need to add the ability to change the default > family (which would enable easier use in the IDE). > > Also check out svg-icon on GitHub... over 10k icons, many with MIT licenses > (leungwensen/svg-icon) > On Tue, Jan 2, 2018 at 4:54 PM Mark Wieder via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> On 01/02/2018 01:24 PM, J. Landman Gay via use-livecode wrote: >>> Looks like a nice set: >>> >>> >>> I like these a little better than the Font Awesome icons because they're >>> slimmer. >>> >> >> Thanks. Those seem rather nice. And MIT-licensed. >> The dollar-sign but no euro seems a bit restricted, though. >> >> -- >> Mark Wieder >> ahsoftware at gmail.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Jan 2 18:53:50 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 2 Jan 2018 17:53:50 -0600 Subject: Free SVG icons In-Reply-To: References: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> Message-ID: <1a2b65a2-cdc9-b1d4-5c0a-0034a6034e27@hyperactivesw.com> On 1/2/18 4:53 PM, Mark Wieder via use-livecode wrote: > On 01/02/2018 01:24 PM, J. Landman Gay via use-livecode wrote: >> Looks like a nice set: >> >> >> I like these a little better than the Font Awesome icons because >> they're slimmer. >> > > Thanks. Those seem rather nice. And MIT-licensed. > The dollar-sign but no euro seems a bit restricted, though. > Made in America by Americans. :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Jan 2 19:05:09 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 2 Jan 2018 18:05:09 -0600 Subject: Free SVG icons In-Reply-To: References: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> Message-ID: <90816289-6521-2f2e-f5e4-1d413a5d7233@hyperactivesw.com> On 1/2/18 5:03 PM, Brian Milby via use-livecode wrote: > If willing to swap out a default library, the iconSVG library can be made > to work with these. Alas, I can't load these icons into LC. They don't have the usual "moveTo" commands. :( -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From jacque at hyperactivesw.com Tue Jan 2 19:18:48 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 2 Jan 2018 18:18:48 -0600 Subject: Free SVG icons In-Reply-To: <90816289-6521-2f2e-f5e4-1d413a5d7233@hyperactivesw.com> References: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> <90816289-6521-2f2e-f5e4-1d413a5d7233@hyperactivesw.com> Message-ID: On 1/2/18 6:05 PM, J. Landman Gay via use-livecode wrote: > On 1/2/18 5:03 PM, Brian Milby via use-livecode wrote: >> If willing to swap out a default library, the iconSVG library can be made >> to work with these. > > Alas, I can't load these icons into LC. They don't have the usual > "moveTo" commands. :( So I took a screenshot and ran it through an online PNG-SVG converter. That works, but it would be nice if LC could read these. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com From ambassador at fourthworld.com Tue Jan 2 19:32:12 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 2 Jan 2018 16:32:12 -0800 Subject: Free SVG icons In-Reply-To: References: Message-ID: J. Landman Gay wrote: > On 1/2/18 6:05 PM, J. Landman Gay via use-livecode wrote: >> Alas, I can't load these icons into LC. They don't have the usual >> "moveTo" commands. :( > > So I took a screenshot and ran it through an online PNG-SVG converter. > That works, but it would be nice if LC could read these. Not even v9? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brian at milby7.com Tue Jan 2 19:59:30 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 03 Jan 2018 00:59:30 +0000 Subject: Free SVG icons In-Reply-To: References: Message-ID: Appears so. I?m trying with the drawingSvgCompile and not having luck with any of the shapes. On Tue, Jan 2, 2018 at 6:32 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > J. Landman Gay wrote: > > > On 1/2/18 6:05 PM, J. Landman Gay via use-livecode wrote: > >> Alas, I can't load these icons into LC. They don't have the usual > >> "moveTo" commands. :( > > > > So I took a screenshot and ran it through an online PNG-SVG converter. > > That works, but it would be nice if LC could read these. > > Not even v9? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From hh at hyperhh.de Tue Jan 2 21:19:18 2018 From: hh at hyperhh.de (hh) Date: Wed, 3 Jan 2018 03:19:18 +0100 Subject: Free SVG icons Message-ID: <7740F101-5817-4AE1-B4BA-98692A7DA74E@hyperhh.de> These SVGs are fine. 1. download the zip from github https://codeload.github.com/leungwensen/svg-icon/zip/master (29.7 MByte, unpacks to 61.4 MByte) 2. open one of the folders in dist/svg, e.g. dist/svg/flat 3. make a stack with one field and one svg widget: Script the field as follows on dragenter set the dragaction to "copy" put line 1 of the dragdata["files"] into me put url("file:"& me) into s set linedel to " From brian at milby7.com Tue Jan 2 21:45:05 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 03 Jan 2018 02:45:05 +0000 Subject: Free SVG icons In-Reply-To: <4EEE901F-111B-4CCB-8DD2-6597F4C48573@hyperhh.de> References: <4EEE901F-111B-4CCB-8DD2-6597F4C48573@hyperhh.de> Message-ID: Looking at the feather icons, it seems that ?currentColor? is not being picked up as anything which makes them render blank. If I change that to ?red? then some work. Ones that include ?line? do not draw anything (seems like a bug since the output is blank). Most use elements other than path, so they require DP11 for the ones that work (but would not be available for the icon library). On Tue, Jan 2, 2018 at 8:26 PM hh via use-livecode < use-livecode at lists.runrev.com> wrote: > There are more complicated ones like below. We have to work harder in LC 9 > for these. > > dist/svg/flat/chat.svg > > fill-rule="evenodd" clip-rule="evenodd" fill="#C0392B" d="M100 58c0 > 3.313-2.687 6-6 6h-73c-3.313 0-6-2.687-6-6v-52c0-3.313 2.687-6 6-6h73c3.313 > 0 6 2.687 6 6v52z"/> fill="#E74C3C" d="M85 73c0 3.223-2.74 6-6 6h-13c-1.113 0-2 .754-2 2v18c0 > .738-.253 1-.917 1-.232 > 0-.471-.154-.865-.457l-23.967-18.543c-3-2-6.129-2.006-6.129-2.006l-26.22-.002c-3.26 > 0-5.902-2.613-5.902-5.836v-51.125c0-3.221 2.896-6.047 6-6.031h73c3.562 0 6 > 2.778 6 6v51z"/> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Tue Jan 2 22:27:43 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 02 Jan 2018 21:27:43 -0600 Subject: Free SVG icons In-Reply-To: References: <4EEE901F-111B-4CCB-8DD2-6597F4C48573@hyperhh.de> Message-ID: <160ba0f7398.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> The one I was working with was the calendar icon. There are only line commands in it, no moveTo. I don't see a way to deal with that. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On January 2, 2018 8:47:42 PM Brian Milby via use-livecode wrote: > Looking at the feather icons, it seems that ?currentColor? is not being > picked up as anything which makes them render blank. If I change that to > ?red? then some work. Ones that include ?line? do not draw anything (seems > like a bug since the output is blank). Most use elements other than path, > so they require DP11 for the ones that work (but would not be available for > the icon library). > On Tue, Jan 2, 2018 at 8:26 PM hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> There are more complicated ones like below. We have to work harder in LC 9 >> for these. >> >> dist/svg/flat/chat.svg >> >> > fill-rule="evenodd" clip-rule="evenodd" fill="#C0392B" d="M100 58c0 >> 3.313-2.687 6-6 6h-73c-3.313 0-6-2.687-6-6v-52c0-3.313 2.687-6 6-6h73c3.313 >> 0 6 2.687 6 6v52z"/>> fill="#E74C3C" d="M85 73c0 3.223-2.74 6-6 6h-13c-1.113 0-2 .754-2 2v18c0 >> .738-.253 1-.917 1-.232 >> 0-.471-.154-.865-.457l-23.967-18.543c-3-2-6.129-2.006-6.129-2.006l-26.22-.002c-3.26 >> 0-5.902-2.613-5.902-5.836v-51.125c0-3.221 2.896-6.047 6-6.031h73c3.562 0 6 >> 2.778 6 6v51z"/> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From ambassador at fourthworld.com Tue Jan 2 23:09:19 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Tue, 2 Jan 2018 20:09:19 -0800 Subject: Free SVG icons In-Reply-To: <160ba0f7398.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> References: <160ba0f7398.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Message-ID: <9f17e68b-78df-b783-9132-fb9191eb02f9@fourthworld.com> J. Landman Gay wrote: > The one I was working with was the calendar icon. There are only line > commands in it, no moveTo. I don't see a way to deal with that. How do other programs deal with that? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brahma at hindu.org Tue Jan 2 23:55:20 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 3 Jan 2018 04:55:20 +0000 Subject: Go in Window (not working) Go in A window "working" In-Reply-To: <99ae0a27-4ca6-80cd-2ad2-5ef782540125@hyperactivesw.com> References: <6E5F5B5D-AF01-4756-B742-B97593EEBA17@hindu.org> <99ae0a27-4ca6-80cd-2ad2-5ef782540125@hyperactivesw.com> Message-ID: <996DC382-597D-4FAB-83E5-82C36DDB3A0D@hindu.org> Hmmm how simple. go stack in window tID needs to be added to the dictionary? as an example? I did read the entry text description of the Window param, but missed it, still.. lets see if this helps on Android. BR From brian at milby7.com Wed Jan 3 00:03:23 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 03 Jan 2018 05:03:23 +0000 Subject: Free SVG icons In-Reply-To: <9f17e68b-78df-b783-9132-fb9191eb02f9@fourthworld.com> References: <160ba0f7398.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <9f17e68b-78df-b783-9132-fb9191eb02f9@fourthworld.com> Message-ID: >From what I see, it looks like the SVG icons are just path elements and not lines/circles/etc. The new code in DP11 adds support for much more of the SVG spec. I found why lines are not working... I?ll get a PR together if it isn?t already corrected. Line 1124 had an extra ?_? in _svgBoxLine that was causing the issue. On Tue, Jan 2, 2018 at 10:10 PM Richard Gaskin via use-livecode < use-livecode at lists.runrev.com> wrote: > J. Landman Gay wrote: > > The one I was working with was the calendar icon. There are only line > > commands in it, no moveTo. I don't see a way to deal with that. > > How do other programs deal with that? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From jacque at hyperactivesw.com Wed Jan 3 00:30:58 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 02 Jan 2018 23:30:58 -0600 Subject: Free SVG icons In-Reply-To: <9f17e68b-78df-b783-9132-fb9191eb02f9@fourthworld.com> References: <160ba0f7398.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <9f17e68b-78df-b783-9132-fb9191eb02f9@fourthworld.com> Message-ID: <160ba804668.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> I don't know how other apps handle it but Firefox displays the calendar icon okay. -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On January 2, 2018 10:11:32 PM Richard Gaskin via use-livecode wrote: > J. Landman Gay wrote: > > The one I was working with was the calendar icon. There are only line > > commands in it, no moveTo. I don't see a way to deal with that. > > How do other programs deal with that? > > -- > Richard Gaskin > Fourth World Systems > Software Design and Development for the Desktop, Mobile, and the Web > ____________________________________________________________________ > Ambassador at FourthWorld.com http://www.FourthWorld.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From jacque at hyperactivesw.com Wed Jan 3 00:33:21 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Tue, 02 Jan 2018 23:33:21 -0600 Subject: Free SVG icons In-Reply-To: References: <160ba0f7398.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <9f17e68b-78df-b783-9132-fb9191eb02f9@fourthworld.com> Message-ID: <160ba8278e8.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> Has anyone mentioned how much we appreciate your contributions? :) -- Jacqueline Landman Gay | jacque at hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On January 2, 2018 11:05:28 PM Brian Milby via use-livecode wrote: > From what I see, it looks like the SVG icons are just path elements and not > lines/circles/etc. The new code in DP11 adds support for much more of the > SVG spec. > > I found why lines are not working... I?ll get a PR together if it isn?t > already corrected. Line 1124 had an extra ?_? in _svgBoxLine that was > causing the issue. > On Tue, Jan 2, 2018 at 10:10 PM Richard Gaskin via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> J. Landman Gay wrote: >> > The one I was working with was the calendar icon. There are only line >> > commands in it, no moveTo. I don't see a way to deal with that. >> >> How do other programs deal with that? >> >> -- >> Richard Gaskin >> Fourth World Systems >> Software Design and Development for the Desktop, Mobile, and the Web >> ____________________________________________________________________ >> Ambassador at FourthWorld.com http://www.FourthWorld.com >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From mark at livecode.com Wed Jan 3 03:31:27 2018 From: mark at livecode.com (Mark Waddingham) Date: Wed, 03 Jan 2018 09:31:27 +0100 Subject: Go in Window (not working) Go in A window "working" In-Reply-To: <996DC382-597D-4FAB-83E5-82C36DDB3A0D@hindu.org> References: <6E5F5B5D-AF01-4756-B742-B97593EEBA17@hindu.org> <99ae0a27-4ca6-80cd-2ad2-5ef782540125@hyperactivesw.com> <996DC382-597D-4FAB-83E5-82C36DDB3A0D@hindu.org> Message-ID: <365c32ac0b47c549820d7cf42298459d@livecode.com> On 2018-01-03 05:55, Sannyasin Brahmanathaswami via use-livecode wrote: > Hmmm > > how simple. > > go stack in window tID > > needs to be added to the dictionary? as an example? > > I did read the entry text description of the Window param, but missed > it, still.. > > lets see if this helps on Android. You don't need to indirect through the 'windowId'. You can do: go stack "NewStack" in window "OldStack" i.e. 'window' can either be a stack name, or 'the windowId' of an existing stack. Warmest Regards, Mark. P.S. If you could file a bug about the dictionary deficiency, that would be great! -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Wed Jan 3 03:36:32 2018 From: mark at livecode.com (Mark Waddingham) Date: Wed, 03 Jan 2018 09:36:32 +0100 Subject: [off] Apple to unify ios/macos apps next year In-Reply-To: <6c4ba34e-b11d-c4d3-99e9-b28acd4dc9ea@cogapp.com> References: <336212FB-574D-4E03-BF89-ABD1698426F0@pacifier.com> <6c4ba34e-b11d-c4d3-99e9-b28acd4dc9ea@cogapp.com> Message-ID: On 2018-01-02 18:46, Ben Rubinstein via use-livecode wrote: > I'm coming to this late, but it looks to me as if the list got into a > nightmare mode a bit prematurely. What the article actually talks > about is a way to create apps which can be used across 'desktop' and > mobile operating systems - specifically *not* about merging those > operating systems. > > In short, a very approximate way of describing the idea would be... > LiveCode. > > We code an app with a text field and a button; on the desktop our > users click the button with the mouse, on mobile they touch it. On > desktop they click into the field and start typing on their keyboard; > on mobile they touch the field and a soft keyboard appears. Apple are > just trying to help the rest of the developer community catch up with > us. > > Shouldn't we panic less? Or have I missed something? My take on it is that Apple intend to include a port of 'UIKit' to macOS in the next macOS version - meaning that an app written for iOS would compile and run on macOS without changes. A lot of frameworks are already shared between macOS and iOS - e.g. CoreGraphics, MapKit, AVFoundation, ... (the list is actually very long). The main points of difference (i.e. where you don't get source compatibility) between coding for iOS and coding for macOS is UIKit vs Cocoa - i.e. the way you interact with the window system - usually though its just a few lines (e.g. using a UIView on iOS vs an NSView on macOS). Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From mark at livecode.com Wed Jan 3 03:47:59 2018 From: mark at livecode.com (Mark Waddingham) Date: Wed, 03 Jan 2018 09:47:59 +0100 Subject: Free SVG icons In-Reply-To: References: <160ba0f7398.285b.5e131b4e58299f54a9f0b9c05d4f07f9@hyperactivesw.com> <9f17e68b-78df-b783-9132-fb9191eb02f9@fourthworld.com> Message-ID: On 2018-01-03 06:03, Brian Milby via use-livecode wrote: > From what I see, it looks like the SVG icons are just path elements and > not > lines/circles/etc. The new code in DP11 adds support for much more of > the > SVG spec. Yes - the calendar icon is a built out of three shapes, and not a simple 'path' element. The 'feather' collection of icons seem to differ from things like fontAwesome in that they are defined by an arbitrary (simple?) SVG - which could use multiple shapes and fills and/or strokes. Font glyphs (i.e. what font awesome is designed for) can only be a single (compound) path. > I found why lines are not working... I?ll get a PR together if it isn?t > already corrected. Line 1124 had an extra ?_? in _svgBoxLine that was > causing the issue. Good catch :) Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From ali.lloyd at livecode.com Wed Jan 3 04:32:07 2018 From: ali.lloyd at livecode.com (Ali Lloyd) Date: Wed, 03 Jan 2018 09:32:07 +0000 Subject: Free SVG icons In-Reply-To: References: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> Message-ID: There has been some work to replace the icon picker with a stack with a filter field, so once that?s in it should help quite a lot. On Tue, 2 Jan 2018 at 23:51, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > As long as we're talking about this, I'd love to see more of the full > set at once. The current interface is a little tedious. At first I could > hardly make out the icons due to the lack of contrast, but I notice now > the transparency has been toned down a bit, which helps. Still, > scrolling through the whole set looking for something is slow. A window > full of icons, like the linked web page, would be easier to scan. > > Or maybe add a "Show All" button where we could see the whole set in a > window, and people could choose their view. > > Just thinking out loud. > > On 1/2/18 5:03 PM, Brian Milby via use-livecode wrote: > > If willing to swap out a default library, the iconSVG library can be made > > to work with these. I?ve submitted a PR with the code to load new > > icons/families. I guess I need to add the ability to change the default > > family (which would enable easier use in the IDE). > > > > Also check out svg-icon on GitHub... over 10k icons, many with MIT > licenses > > (leungwensen/svg-icon) > > On Tue, Jan 2, 2018 at 4:54 PM Mark Wieder via use-livecode < > > use-livecode at lists.runrev.com> wrote: > > > >> On 01/02/2018 01:24 PM, J. Landman Gay via use-livecode wrote: > >>> Looks like a nice set: > >>> > >>> > >>> I like these a little better than the Font Awesome icons because > they're > >>> slimmer. > >>> > >> > >> Thanks. Those seem rather nice. And MIT-licensed. > >> The dollar-sign but no euro seems a bit restricted, though. > >> > >> -- > >> Mark Wieder > >> ahsoftware at gmail.com > >> > >> _______________________________________________ > >> use-livecode mailing list > >> use-livecode at lists.runrev.com > >> Please visit this url to subscribe, unsubscribe and manage your > >> subscription preferences: > >> http://lists.runrev.com/mailman/listinfo/use-livecode > >> > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From brian at milby7.com Wed Jan 3 08:32:05 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 03 Jan 2018 13:32:05 +0000 Subject: Free SVG icons In-Reply-To: References: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> Message-ID: Icon picker would be nice. In addition to a filter field, it should allow different families to be selected. I looked briefly for something that could convert SVG to just a path. Inkscape can do it, but I was more looking for something that could easily do it in a batch run. Then you could convert the whole set. On Wed, Jan 3, 2018 at 3:33 AM Ali Lloyd via use-livecode < use-livecode at lists.runrev.com> wrote: > There has been some work to replace the icon picker with a stack with a > filter field, so once that?s in it should help quite a lot. > From hh at hyperhh.de Wed Jan 3 09:30:49 2018 From: hh at hyperhh.de (hh) Date: Wed, 3 Jan 2018 15:30:49 +0100 Subject: Free SVG icons Message-ID: <27581171-5D5B-4D8A-A3AA-068EB168B025@hyperhh.de> > BM wrote: > I looked briefly for something that could convert SVG to just a path. > Inkscape can do it, but I was more looking for something that could easily > do it in a batch run. Then you could convert the whole set. I'm looking for that for months. TMHO opinion inkscape can do that for single selected shapes only. Even paper.js and also other js or java snippets can't do such a global flattening-all without loosing some properties. Please post whenever you find or write such a general "flatten-to-path". From mark at livecode.com Wed Jan 3 10:16:09 2018 From: mark at livecode.com (Mark Waddingham) Date: Wed, 03 Jan 2018 16:16:09 +0100 Subject: Free SVG icons In-Reply-To: <27581171-5D5B-4D8A-A3AA-068EB168B025@hyperhh.de> References: <27581171-5D5B-4D8A-A3AA-068EB168B025@hyperhh.de> Message-ID: On 2018-01-03 15:30, hh via use-livecode wrote: >> BM wrote: >> I looked briefly for something that could convert SVG to just a path. >> Inkscape can do it, but I was more looking for something that could >> easily >> do it in a batch run. Then you could convert the whole set. > > I'm looking for that for months. TMHO opinion inkscape can do that for > single > selected shapes only. Even paper.js and also other js or java snippets > can't > do such a global flattening-all without loosing some properties. > > Please post whenever you find or write such a general > "flatten-to-path". Assuming that 'flatten-to-path' means: "Produce a compound path which, when filled, produces the same result as filling and/or stroking a sequence of paths and/or shapes." Then, in full generality, this is really quite complex - particularly if you want to preserve curves (which is important if you want your resulting path to scale arbitrarily). There are two pieces: 1) A 'thicken' operation which takes a path and stroke properties as input and produces a path which can be filled to produce the stroke. (i.e. the 'inside' of the path is the same as the 'inside' of the stroke of the original path). 2) A 'union' operation which takes two arbitrary paths and produces a single path which, when filled, produces the same result as filling the first path, and then filling and compositing the second path on top of it. (i.e. the 'inside' of the path is the same as the union of the 'insides' of the two input paths). Neither of these are at all straight-forward in the general case unfortunately :( However, if you restrict yourself to: 1) polygonal paths and elliptical arcs, sectors and segments 2) non-overlapping paths which use the same fill rule Restricting to (1) means it is much easier to generate a thickened path from the original - there's no pesky bezier thickening to deal with (which is problematic because the curve which is a fixed perpendicular distance from a bezier is not a bezier). Restricting to (2) means that A union B == A concat B - i.e. you append the path definition of B to A. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From bobsneidar at iotecdigital.com Wed Jan 3 10:27:30 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Jan 2018 15:27:30 +0000 Subject: Free SVG icons In-Reply-To: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> References: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> Message-ID: <2914DF28-FADD-4D2C-8504-9B4D6E71B72B@iotecdigital.com> In case anyone needs to convert SVG to PNG or other format: Apple has a free app on their store called VisualDesigler, where as you may imagine you can also CREATE SVGs. Bob S > On Jan 2, 2018, at 13:24 , J. Landman Gay via use-livecode wrote: > > Looks like a nice set: > > > I like these a little better than the Font Awesome icons because they're slimmer. > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com From bobsneidar at iotecdigital.com Wed Jan 3 10:33:22 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Jan 2018 15:33:22 +0000 Subject: Free SVG icons In-Reply-To: <2914DF28-FADD-4D2C-8504-9B4D6E71B72B@iotecdigital.com> References: <29cbd60d-89a4-e4a8-cd1e-7e33e730f346@hyperactivesw.com> <2914DF28-FADD-4D2C-8504-9B4D6E71B72B@iotecdigital.com> Message-ID: That would be: VisualDesigner > On Jan 3, 2018, at 07:27 , Bob Sneidar via use-livecode wrote: > > VisualDesigler From klaus at major-k.de Wed Jan 3 11:33:29 2018 From: klaus at major-k.de (Klaus major-k) Date: Wed, 3 Jan 2018 17:33:29 +0100 Subject: problems with mobilepickphoto Message-ID: <6041E2BE-F5E2-46E5-A52B-2A720D228F5B@major-k.de> Hi friends, I have a strange problem with "mobilepickphoto"! Here the script: on mouseUp pMouseButton lock screen if the environment = "mobile" then mobilePickPhoto "library",212,212 if the result is empty then exit mouseUp end if ## Works on Device and simulator so far! else answer file "Bitte ein Bild ausw?hlen" with type "jpeg, png|jpg,png|" if IT is empty then exit mouseUp end if import paint from file it end if ## When on MOBILE, the script stops here without any error? ## Works fine on desktop! ## Not executed on mobile? put last image into image "foto-01" ## Same for this line? set the text of image "foto-01" to the text of last image delete last img ... Any hints very welcome, thank you! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From benr_mc at cogapp.com Wed Jan 3 11:25:26 2018 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 3 Jan 2018 16:25:26 +0000 Subject: zip folder of arbitrary size Message-ID: I want an app running unattended on a Windows VM to zip up a folder (on a regular basis). I've not used the revZip library before: when I look at it the first thing I notice is that first step, according to the Dictionary is: Use the revZipOpenArchive command to load a zip archive into memory It's the "into memory" part that bothers me. The folder is probably around 125 - 150MB in total; the zip file I'd expect to be 25MB. I know that we sometimes run into horrible memory problems on these Windows VMs, so this makes me nervous. Does anyone have experience of working with this library on Windows, in relation to how much memory it uses? I'm guessing the key formula is related to the size of the largest file to be zipped, and the size of the zip package itself. My alternative is probably shelling out to Windows to have the folder zipped by an external process. Any tips in relation to this? TIA, Ben From mark at livecode.com Wed Jan 3 11:41:52 2018 From: mark at livecode.com (Mark Waddingham) Date: Wed, 03 Jan 2018 17:41:52 +0100 Subject: zip folder of arbitrary size In-Reply-To: References: Message-ID: <7b4e7748ee86599f65c58356a7e6d149@livecode.com> On 2018-01-03 17:25, Ben Rubinstein via use-livecode wrote: > I want an app running unattended on a Windows VM to zip up a folder > (on a regular basis). > > I've not used the revZip library before: when I look at it the first > thing I notice is that first step, according to the Dictionary is: > Use the revZipOpenArchive command to load a zip archive into memory > > It's the "into memory" part that bothers me. The folder is probably > around 125 - 150MB in total; the zip file I'd expect to be 25MB. I > know that we sometimes run into horrible memory problems on these > Windows VMs, so this makes me nervous. It doesn't load the whole archive into memory - just the 'central directory' - which is the list of files which are present in the zip. Extracting data from the zip file occurs when you request it - and then only the bits you ask for. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From klaus at major-k.de Wed Jan 3 11:46:45 2018 From: klaus at major-k.de (Klaus major-k) Date: Wed, 3 Jan 2018 17:46:45 +0100 Subject: problems with mobilepickphoto In-Reply-To: <6041E2BE-F5E2-46E5-A52B-2A720D228F5B@major-k.de> References: <6041E2BE-F5E2-46E5-A52B-2A720D228F5B@major-k.de> Message-ID: Hi friends, found it! > Am 03.01.2018 um 17:33 schrieb Klaus major-k via use-livecode : > > Hi friends, > > I have a strange problem with "mobilepickphoto"! > > Here the script: > on mouseUp pMouseButton > lock screen > if the environment = "mobile" then > mobilePickPhoto "library",212,212 > ## if the result is empty then ## This way! :-) if the result = "cancel" > exit mouseUp > end if > > ## Works on Device and simulator so far! > > else Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From benr_mc at cogapp.com Wed Jan 3 13:02:28 2018 From: benr_mc at cogapp.com (Ben Rubinstein) Date: Wed, 3 Jan 2018 18:02:28 +0000 Subject: zip folder of arbitrary size In-Reply-To: <7b4e7748ee86599f65c58356a7e6d149@livecode.com> References: <7b4e7748ee86599f65c58356a7e6d149@livecode.com> Message-ID: Phew - thanks Mark! On 03/01/2018 16:41, Mark Waddingham via use-livecode wrote: > On 2018-01-03 17:25, Ben Rubinstein via use-livecode wrote: >> I want an app running unattended on a Windows VM to zip up a folder >> (on a regular basis). >> >> I've not used the revZip library before: when I look at it the first >> thing I notice is that first step, according to the Dictionary is: >> Use the revZipOpenArchive command to load a zip archive into memory >> >> It's the "into memory" part that bothers me. The folder is probably >> around 125 - 150MB in total; the zip file I'd expect to be 25MB. I >> know that we sometimes run into horrible memory problems on these >> Windows VMs, so this makes me nervous. > > It doesn't load the whole archive into memory - just the 'central directory' - > which is the list of files which are present in the zip. > > Extracting data from the zip file occurs when you request it - and then only > the bits you ask for. > > Warmest Regards, > > Mark. > From bobsneidar at iotecdigital.com Wed Jan 3 13:10:53 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Wed, 3 Jan 2018 18:10:53 +0000 Subject: problems with mobilepickphoto In-Reply-To: References: <6041E2BE-F5E2-46E5-A52B-2A720D228F5B@major-k.de> Message-ID: Yeah I tripped over that when I first began using Answer File/Folder. The result contains "Cancel" if the cancel button is clicked, and is empty if a file/folder is chosen. The it variable contains the absolute file/folder path if one is chosen or empty if the user cancels. It's somewhat counter to the Answer command unless you think about the it variable always containing the information requested. In a simple answer dialog, that would be the button clicked, but in answer file/folder it is the path to the file/folder. Bob S > On Jan 3, 2018, at 08:46 , Klaus major-k via use-livecode wrote: > > Hi friends, > > found it! > >> Am 03.01.2018 um 17:33 schrieb Klaus major-k via use-livecode : >> >> Hi friends, >> >> I have a strange problem with "mobilepickphoto"! >> >> Here the script: >> on mouseUp pMouseButton >> lock screen >> if the environment = "mobile" then >> mobilePickPhoto "library",212,212 >> ## if the result is empty then > > ## This way! :-) > if the result = "cancel" From richmondmathewson at gmail.com Wed Jan 3 13:26:53 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 3 Jan 2018 20:26:53 +0200 Subject: Free SVG icons In-Reply-To: <7740F101-5817-4AE1-B4BA-98692A7DA74E@hyperhh.de> References: <7740F101-5817-4AE1-B4BA-98692A7DA74E@hyperhh.de> Message-ID: <7ad04936-1645-b1e1-be2e-8f2fca8f194a@gmail.com> https://pixelbuddha.net/freebie/paticons-Icons-and-ui-patterns Richmond. From brahma at hindu.org Wed Jan 3 13:45:37 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Wed, 3 Jan 2018 18:45:37 +0000 Subject: Go in Window (not working) Go in A window "working" In-Reply-To: <365c32ac0b47c549820d7cf42298459d@livecode.com> References: <6E5F5B5D-AF01-4756-B742-B97593EEBA17@hindu.org> <99ae0a27-4ca6-80cd-2ad2-5ef782540125@hyperactivesw.com> <996DC382-597D-4FAB-83E5-82C36DDB3A0D@hindu.org> <365c32ac0b47c549820d7cf42298459d@livecode.com> Message-ID: "Something is wrong" This works on desktop, but fails on iOS. Nothing happens at all. it stays on the same, open stack and does not navigate to/open the new stack declared in "go put the windowID of stack oStackName into tWindowID # current open stack go to cardOrStackObject in window tWindowID # where "cardOrStackObject" is a string in the form of .e.g # stack "gems OR card 2 of stack "gems" OR card "video" of stack surprise Since I had made other changes since my last commit? I did commented out my new lines and used the old method and ran the stand alone again and it works -- put the windowID of stack oStackName into tWindowID # current open stack go cardOrStackObject # e.g go "gems" (or this string) go card 3 of "gems" wait 100 milliseconds with messages close stack oStackName wait 100 milliseconds with messages --go to cardOrStackObject in window tWindowID # where we open the other, new stack first and *then* close the old one. On 1/2/18, 10:31 PM, "use-livecode on behalf of Mark Waddingham via use-livecode" wrote: On 2018-01-03 05:55, Sannyasin Brahmanathaswami via use-livecode wrote: >Hmmm >how simple. > go stack in window tID >needs to be added to the dictionary? as an example? >I did read the entry text description of the Window param, but missed >it, still.. >lets see if this helps on Android. You don't need to indirect through the 'windowId'. You can do: go stack "NewStack" in window "OldStack" i.e. 'window' can either be a stack name, or 'the windowId' of an existing stack. Warmest Regards, Mark. P.S. If you could file a bug about the dictionary deficiency, that would be great! -- Mark From brian at milby7.com Wed Jan 3 14:30:25 2018 From: brian at milby7.com (Brian Milby) Date: Wed, 03 Jan 2018 19:30:25 +0000 Subject: Free SVG icons In-Reply-To: <7ad04936-1645-b1e1-be2e-8f2fca8f194a@gmail.com> References: <7740F101-5817-4AE1-B4BA-98692A7DA74E@hyperhh.de> <7ad04936-1645-b1e1-be2e-8f2fca8f194a@gmail.com> Message-ID: Thanks Richmond... that looks useful. https://icomoon.io has the ability to bulk convert several icon sets to paths/fonts. Feather happens to be one of the free sets available. Since it is originally under MIT, this could be a set that could bundle up as a family for the icon library. Here's the calendar path: "M19 3h-2v-1c0-0.6-0.4-1-1-1s-1 0.4-1 1v1h-6v-1c0-0.6-0.4-1-1-1s-1 0.4-1 1v1h-2c-1.7 0-3 1.3-3 3v14c0 1.7 1.3 3 3 3h14c1.7 0 3-1.3 3-3v-14c0-1.7-1.3-3-3-3zM5 5h2v1c0 0.6 0.4 1 1 1s1-0.4 1-1v-1h6v1c0 0.6 0.4 1 1 1s1-0.4 1-1v-1h2c0.6 0 1 0.4 1 1v3h-16v-3c0-0.6 0.4-1 1-1zM19 21h-14c-0.6 0-1-0.4-1-1v-9h16v9c0 0.6-0.4 1-1 1z" Thanks, Brian On Wed, Jan 3, 2018 at 12:27 PM Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > https://pixelbuddha.net/freebie/paticons-Icons-and-ui-patterns > > Richmond. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Wed Jan 3 15:10:06 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 3 Jan 2018 22:10:06 +0200 Subject: Print to PDF Message-ID: I wonder why this doesn't work: onmouseUp setthelockScreentotrue settheformatForPrintingofthis stack totrue openprinting topdf "./sampleOutput" setthewidthoffld "fff" tothewidthofstack "PDF Printer" settheheightoffld "fff" totheheightofstack "PDF Printer" printcard 1 setthewidthoffld "fff" to450 settheheightoffld "fff" to560 setthetopoffld "fff" to20 settheleftoffld "fff" to20 closeprinting setthelockScreentofalse endmouseUp Richmond. From tom at makeshyft.com Wed Jan 3 16:00:52 2018 From: tom at makeshyft.com (Tom Glod) Date: Wed, 3 Jan 2018 16:00:52 -0500 Subject: Print to PDF In-Reply-To: References: Message-ID: let me look up my pdf printing code.....why are all the spaces gone from your code? On Wed, Jan 3, 2018 at 3:10 PM, Richmond Mathewson via use-livecode < use-livecode at lists.runrev.com> wrote: > I wonder why this doesn't work: > > onmouseUp > > setthelockScreentotrue > > settheformatForPrintingofthis stack totrue > > openprinting topdf "./sampleOutput" > > setthewidthoffld "fff" tothewidthofstack "PDF Printer" > > settheheightoffld "fff" totheheightofstack "PDF Printer" > > printcard 1 > > setthewidthoffld "fff" to450 > > settheheightoffld "fff" to560 > > setthetopoffld "fff" to20 > > settheleftoffld "fff" to20 > > closeprinting > > setthelockScreentofalse > > endmouseUp > > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From richmondmathewson at gmail.com Wed Jan 3 16:25:41 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Wed, 3 Jan 2018 23:25:41 +0200 Subject: Print to PDF In-Reply-To: References: Message-ID: <2ef15c4b-246f-5812-f38c-9ee603c84350@gmail.com> Dunno where all the spaces have gone: I copy-pasted from the 8.1.8 scriptEditor om Mac OS 10.7.5 Richmond. On 3/1/2018 11:00 pm, Tom Glod via use-livecode wrote: > let me look up my pdf printing code.....why are all the spaces gone from > your code? > > On Wed, Jan 3, 2018 at 3:10 PM, Richmond Mathewson via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> I wonder why this doesn't work: >> >> onmouseUp >> >> setthelockScreentotrue >> >> settheformatForPrintingofthis stack totrue >> >> openprinting topdf "./sampleOutput" >> >> setthewidthoffld "fff" tothewidthofstack "PDF Printer" >> >> settheheightoffld "fff" totheheightofstack "PDF Printer" >> >> printcard 1 >> >> setthewidthoffld "fff" to450 >> >> settheheightoffld "fff" to560 >> >> setthetopoffld "fff" to20 >> >> settheleftoffld "fff" to20 >> >> closeprinting >> >> setthelockScreentofalse >> >> endmouseUp >> >> >> Richmond. >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Wed Jan 3 23:25:12 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Wed, 3 Jan 2018 23:25:12 -0500 Subject: Two new videos about using Navigator with LiveCode Message-ID: I updated my copy of ScreenFlow, so I made two new videos about how to use Navigator with LiveCode. Navigator is old -- I mostly finished with it about a dozen years ago -- but I updated it a few years ago to work with behaviors, so if you use those it can be really helpful. That said, I haven't tested Navigator extensively with anything more recent than LC 6.7.3, although it seems at least not to break in LC 8. (Yes, I know, I'm going to try 8 out this week). There are two new videos: The Card Menu: https://youtu.be/kkAWisu-3EU Shows a list of the cards in the displayed stack, and lets you display the controls in any of them. Can also display all the background-capable (top level) groups in the stack, whether they have backgroundbehavior set to true or not. The Script Menu: https://youtu.be/25q-D8k_z2s Lets you easily copy and paste scripts into objects. Displays all the handlers from both an object and its behavior. Select any handler to edit the script and jump to that handler. Lets you call any handler, function, getProp, or setProp, including passing in parameters, and for functions and getProp displays the result/property so you can see/copy it. Here's a link to all the videos I've created about Navigator: 4 Play all I'll upload more videos as they're available. Navigator comes with LiveCode, but get the most recent version here, it's far better than the included version: https://www.dropbox.com/s/kz3zqi4botzglgq/navigator.zip?dl=0 Navigator is free and open source. If you have any questions, let me know. From paul at livecode.org Thu Jan 4 00:47:49 2018 From: paul at livecode.org (Paul Hibbert) Date: Wed, 3 Jan 2018 21:47:49 -0800 Subject: Print to PDF In-Reply-To: <2ef15c4b-246f-5812-f38c-9ee603c84350@gmail.com> References: <2ef15c4b-246f-5812-f38c-9ee603c84350@gmail.com> Message-ID: <91FC2B96-2F1A-4C06-8A5E-9FC58944B227@livecode.org> Richmond, I tried using macOS High Siera version 10.13.2 (17C88) and your script writes a PDF in LC7.1.4 & LC8.2.0 (dp2), but in LC9.0.0 (dp11) it prints the card to my default printer, so it seems the ?to PDF? part is being ignored. Maybe time for a Bug Report. :) Paul > On Jan 3, 2018, at 1:25 PM, Richmond Mathewson via use-livecode wrote: > > Dunno where all the spaces have gone: I copy-pasted from the 8.1.8 scriptEditor om Mac OS 10.7.5 > > Richmond. > > On 3/1/2018 11:00 pm, Tom Glod via use-livecode wrote: >> let me look up my pdf printing code.....why are all the spaces gone from >> your code? >> >> On Wed, Jan 3, 2018 at 3:10 PM, Richmond Mathewson via use-livecode < >> use-livecode at lists.runrev.com> wrote: >> >>> I wonder why this doesn't work: >>> >>> onmouseUp >>> >>> setthelockScreentotrue >>> >>> settheformatForPrintingofthis stack totrue >>> >>> openprinting topdf "./sampleOutput" >>> >>> setthewidthoffld "fff" tothewidthofstack "PDF Printer" >>> >>> settheheightoffld "fff" totheheightofstack "PDF Printer" >>> >>> printcard 1 >>> >>> setthewidthoffld "fff" to450 >>> >>> settheheightoffld "fff" to560 >>> >>> setthetopoffld "fff" to20 >>> >>> settheleftoffld "fff" to20 >>> >>> closeprinting >>> >>> setthelockScreentofalse >>> >>> endmouseUp >>> >>> >>> Richmond. >>> >>> _______________________________________________ >>> use-livecode mailing list >>> use-livecode at lists.runrev.com >>> Please visit this url to subscribe, unsubscribe and manage your >>> subscription preferences: >>> http://lists.runrev.com/mailman/listinfo/use-livecode >>> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From niconiko at gmail.com Thu Jan 4 00:52:14 2018 From: niconiko at gmail.com (Nicolas Cueto) Date: Thu, 4 Jan 2018 14:52:14 +0900 Subject: screenloc not actually centered after changing scalefactor (was Screen Resolution for Desktop Apps) In-Reply-To: References: Message-ID: Jacqueline yet again saves the day. Thank you! -- N. On 2 January 2018 at 08:34, J. Landman Gay via use-livecode < use-livecode at lists.runrev.com> wrote: > On 12/31/17 7:31 PM, Nicolas Cueto via use-livecode wrote: > >> To do "some calculations", I thought of comparing the loc to the >> scalefactor. So ran the standalone on three devices, but saw no consistent >> corelation between the differing locs and the scalefactor. >> >> So, still no clue what to use for these calculations... >> > > My math skills are terrible so we need someone more clever to fix my > calculation. But this seems to work for most scalefactors until you get > down to about 0.6 or lower: > > on setloc pScale > -- pScale = the desired scaleFactor > put the screenloc into tSLoc > if pScale <= 1 then > put 1 + (1-pScale) into tRatio > else > put 1/pScale into tRatio > end if > put item 1 of tSLoc * tRatio into item 1 of tNewLoc > put item 2 of tSLoc * tRatio into item 2 of tNewLoc > set the scalefactor of this stack to pScale > set the loc of this stack to tNewLoc > end setloc > > I'm pretty sure there's a way to calculate the ratio without the "if" > clause so that it works for both large and small scales and I'm not sure > why it breaks at about 0.6. Hopefully one of our math gurus can advise. > > > -- > Jacqueline Landman Gay | jacque at hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bogdanoff at me.com Thu Jan 4 01:28:42 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 03 Jan 2018 22:28:42 -0800 Subject: Script editor won't compile Message-ID: <473C545B-50D4-4343-80F2-CCE2E4A89D1F@me.com> Hi, LC 8.1.7 Windows LC 9.1.7 Mac I worked on a card script in Windows (using Parallels), copied that script, and went to the Mac version, pasted it in the script window. It saves, but won?t compile. My various handlers don?t show on the left panel and clicking Apply doesn?t do anything. And the script definitely doesn?t do anything operational for that card. Other scripts in the stack work normally and show normally in the script editor. I tried monkeying around with Windows version in a text editor, changing the line endings, but no success. Is there something I can do to rescue this card? Peter Bogdanoff ArtsInteractive From bogdanoff at me.com Thu Jan 4 01:57:30 2018 From: bogdanoff at me.com (Peter Bogdanoff) Date: Wed, 03 Jan 2018 22:57:30 -0800 Subject: Script editor won't compile In-Reply-To: <473C545B-50D4-4343-80F2-CCE2E4A89D1F@me.com> References: <473C545B-50D4-4343-80F2-CCE2E4A89D1F@me.com> Message-ID: I tried again, pasted the Windows 10 script into Apple?s TextEdit, copied that into the script editor, and it now works normally. What I was doing before was: 1. Copying text from the Windows 10 LC script editor and pasting directly into the Mac LC script editor. No compile. 2. Pasting into Tex-Edit Plus and adding carriage returns using that program's tools. Then pasting into the Mac LC script editor. No compile. Interestingly, searching for specific text in the document inside of Tex-Edit Plus always came up empty. So there seems to be a problem/incompatibility with encoding Windows to Mac? TextEdit was able to fix the text so that the Mac text editor could read it. Peter > On Jan 3, 2018, at 10:28 PM, Peter Bogdanoff via use-livecode wrote: > > Hi, > > LC 8.1.7 Windows > LC 9.1.7 Mac > > I worked on a card script in Windows (using Parallels), copied that script, and went to the Mac version, pasted it in the script window. It saves, but won?t compile. My various handlers don?t show on the left panel and clicking Apply doesn?t do anything. And the script definitely doesn?t do anything operational for that card. > > Other scripts in the stack work normally and show normally in the script editor. > > I tried monkeying around with Windows version in a text editor, changing the line endings, but no success. > > Is there something I can do to rescue this card? > > Peter Bogdanoff > ArtsInteractive > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From richmondmathewson at gmail.com Thu Jan 4 06:14:55 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 4 Jan 2018 13:14:55 +0200 Subject: Print to PDF needs extending In-Reply-To: References: Message-ID: <990c47b4-2b36-d231-1473-aa444f1a8875@gmail.com> I got a bit "Pee-Dee-Effed Off" when I realised that to print the contents of a field to PDF one had to "fool around" with the field so that it fitted the dimensions of the card on which the field resided; because Print to PDF can ONLY print a Card to PDF. WHY is this? I believe that a "Print to PDF" extension that allows printing of field contents as they are in the field: PseudoCode follows: PrintToPDF field "XXX" would be a really marvellous boon to everyone. Richmond. From livfoss at mac.com Thu Jan 4 06:30:22 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 04 Jan 2018 12:30:22 +0100 Subject: Mac 64 bit? Message-ID: <5075FCB1-A551-43D9-9AC9-2B6ED9A96EE9@mac.com> I notice using LC 8.1.8 (the latest stable release AFAIK) that in the Standalone Application Settings, building for Mac OS X is still described as EXPERIMENTAL. Is this right? Has anyone experienced any gotchas by using this type of build? In reality I don?t know what OSX started to expect 64 bit apps, but it must have been a good few iterations ago. Graham From livfoss at mac.com Thu Jan 4 06:32:11 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 04 Jan 2018 12:32:11 +0100 Subject: Mac 64 bit? Message-ID: <367EF0EE-8E57-4A61-AEF1-2899002717D0@mac.com> Oops - I should have said ?building for Mac OS 64 bit?, of course. Sorry. I wrote just now > I notice using LC 8.1.8 (the latest stable release AFAIK) that in the Standalone Application Settings, building for Mac OS X is still described as EXPERIMENTAL. Is this right? Has anyone experienced any gotchas by using this type of build? In reality I don?t know what OSX started to expect 64 bit apps, but it must have been a good few iterations ago. Graham From richmondmathewson at gmail.com Thu Jan 4 06:56:46 2018 From: richmondmathewson at gmail.com (Richmond Mathewson) Date: Thu, 4 Jan 2018 13:56:46 +0200 Subject: Mac 64 bit? In-Reply-To: <5075FCB1-A551-43D9-9AC9-2B6ED9A96EE9@mac.com> References: <5075FCB1-A551-43D9-9AC9-2B6ED9A96EE9@mac.com> Message-ID: <1e98e41e-4e36-d16b-3207-7ba96cc13cc2@gmail.com> Dunno: but, both the 32-bit and the 64-bit version of my Devawriter run "as they should" on my Mac OS 10.7.5 imac, for all that that may be worth. Richmond. On 4/1/2018 1:30 pm, Graham Samuel via use-livecode wrote: > I notice using LC 8.1.8 (the latest stable release AFAIK) that in the Standalone Application Settings, building for Mac OS X is still described as EXPERIMENTAL. Is this right? Has anyone experienced any gotchas by using this type of build? In reality I don?t know what OSX started to expect 64 bit apps, but it must have been a good few iterations ago. > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Jan 4 10:44:12 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 4 Jan 2018 15:44:12 +0000 Subject: Script editor won't compile In-Reply-To: References: <473C545B-50D4-4343-80F2-CCE2E4A89D1F@me.com> Message-ID: <5C4C3CD8-72D7-47BC-A8C9-18139501CB91@iotecdigital.com> I have to do that all the time. Otherwise I get double returns. Of course, if the email size limit was raised a bit on the list, we could paste RTF text directly into the email without exceeding that limit. Bob S > On Jan 3, 2018, at 22:57 , Peter Bogdanoff via use-livecode wrote: > > I tried again, pasted the Windows 10 script into Apple?s TextEdit, copied that into the script editor, and it now works normally. > > What I was doing before was: > 1. Copying text from the Windows 10 LC script editor and pasting directly into the Mac LC script editor. No compile. > 2. Pasting into Tex-Edit Plus and adding carriage returns using that program's tools. Then pasting into the Mac LC script editor. No compile. Interestingly, searching for specific text in the document inside of Tex-Edit Plus always came up empty. So there seems to be a problem/incompatibility with encoding Windows to Mac? > > TextEdit was able to fix the text so that the Mac text editor could read it. > > Peter From bobsneidar at iotecdigital.com Thu Jan 4 10:45:47 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 4 Jan 2018 15:45:47 +0000 Subject: Mac 64 bit? In-Reply-To: <367EF0EE-8E57-4A61-AEF1-2899002717D0@mac.com> References: <367EF0EE-8E57-4A61-AEF1-2899002717D0@mac.com> Message-ID: <33EBCF48-6567-4062-9EC7-16369C53FC95@iotecdigital.com> This was discussed a while back. 64 bit works fine. That is all I use. Bob S > On Jan 4, 2018, at 03:32 , Graham Samuel via use-livecode wrote: > > Oops - I should have said ?building for Mac OS 64 bit?, of course. Sorry. > > I wrote just now > >> I notice using LC 8.1.8 (the latest stable release AFAIK) that in the Standalone Application Settings, building for Mac OS X is still described as EXPERIMENTAL. Is this right? Has anyone experienced any gotchas by using this type of build? In reality I don?t know what OSX started to expect 64 bit apps, but it must have been a good few iterations ago. > > Graham > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Thu Jan 4 11:19:17 2018 From: hh at hyperhh.de (hh) Date: Thu, 4 Jan 2018 17:19:17 +0100 Subject: Two new videos about using Navigator with LiveCode Message-ID: <6DEB620D-AA2A-4519-99F6-878F858065E9@hyperhh.de> Often "Navigator" works good for me in LC 8 (I stopped developing in LC 9). It is especially very valuable when working with nested groups. Why don't you announce the update in the forum (also the link to the documentation) and publish this very useful stack in "Sample Stacks"/ livecodeshare? It is there better visible than here or in the plugins menu. From bobsneidar at iotecdigital.com Thu Jan 4 12:34:26 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 4 Jan 2018 17:34:26 +0000 Subject: Long Launch Time Message-ID: Hi all. I perused the forums but could not find the post and solution to someone who was having difficulty when launching the IDE. It had something to do with clearing some logs somewhere as I recall, but I cannot find it in the forums. Anyone remember? OS 10.12 LC 8.1.8 Bob S From bonnmike at gmail.com Thu Jan 4 12:51:53 2018 From: bonnmike at gmail.com (Mike Bonner) Date: Thu, 4 Jan 2018 10:51:53 -0700 Subject: Long Launch Time In-Reply-To: References: Message-ID: I think this is what you're looking for: http://runtime-revolution.278305.n4.nabble.com/Slow-Opening-IDE-td4720805.html On Thu, Jan 4, 2018 at 10:34 AM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi all. > > I perused the forums but could not find the post and solution to someone > who was having difficulty when launching the IDE. It had something to do > with clearing some logs somewhere as I recall, but I cannot find it in the > forums. Anyone remember? > > OS 10.12 > LC 8.1.8 > > Bob S > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From MikeKerner at roadrunner.com Thu Jan 4 15:08:38 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 4 Jan 2018 15:08:38 -0500 Subject: Two new videos about using Navigator with LiveCode In-Reply-To: <6DEB620D-AA2A-4519-99F6-878F858065E9@hyperhh.de> References: <6DEB620D-AA2A-4519-99F6-878F858065E9@hyperhh.de> Message-ID: Do you have a repo, too? On Thu, Jan 4, 2018 at 11:19 AM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > Often "Navigator" works good for me in LC 8 (I stopped developing in LC 9). > It is especially very valuable when working with nested groups. > > Why don't you announce the update in the forum (also the link to the > documentation) and publish this very useful stack in "Sample Stacks"/ > livecodeshare? > It is there better visible than here or in the plugins menu. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From klaus at major-k.de Thu Jan 4 15:10:58 2018 From: klaus at major-k.de (Klaus major-k) Date: Thu, 4 Jan 2018 21:10:58 +0100 Subject: native iOS button question Message-ID: <515E21D8-3748-4C53-8610-8398547E9A84@major-k.de> Hi friends, is it true that the "native iOS button" widget will only run on iOS/Simulator? Or can I also script and test it in the IDE? Looks like it does not react "on mouseup" at all. Any hints welcome, thanks! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From gcanyon at gmail.com Thu Jan 4 15:43:38 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 4 Jan 2018 15:43:38 -0500 Subject: Two new videos about using Navigator with LiveCode In-Reply-To: References: <6DEB620D-AA2A-4519-99F6-878F858065E9@hyperhh.de> Message-ID: I still use the same source control I used when I started it: an archive folder with several hundred saved versions. :-) What's the easiest/expected way to start a repo for it/a LiveCode project? gc On Thu, Jan 4, 2018 at 3:08 PM, Mike Kerner via use-livecode < use-livecode at lists.runrev.com> wrote: > Do you have a repo, too? > > On Thu, Jan 4, 2018 at 11:19 AM, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Often "Navigator" works good for me in LC 8 (I stopped developing in LC > 9). > > It is especially very valuable when working with nested groups. > > > > Why don't you announce the update in the forum (also the link to the > > documentation) and publish this very useful stack in "Sample Stacks"/ > > livecodeshare? > > It is there better visible than here or in the plugins menu. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From gcanyon at gmail.com Thu Jan 4 15:46:30 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 4 Jan 2018 15:46:30 -0500 Subject: Two new videos about using Navigator with LiveCode In-Reply-To: <6DEB620D-AA2A-4519-99F6-878F858065E9@hyperhh.de> References: <6DEB620D-AA2A-4519-99F6-878F858065E9@hyperhh.de> Message-ID: For anyone who wants, documentation for the (nearly) latest version is here: https://gcanyon.wordpress.com/navigator-documentation/ On Thu, Jan 4, 2018 at 11:19 AM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > Often "Navigator" works good for me in LC 8 (I stopped developing in LC 9). > It is especially very valuable when working with nested groups. > > Why don't you announce the update in the forum (also the link to the > documentation) and publish this very useful stack in "Sample Stacks"/ > livecodeshare? > It is there better visible than here or in the plugins menu. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From bobsneidar at iotecdigital.com Thu Jan 4 15:54:41 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 4 Jan 2018 20:54:41 +0000 Subject: Message Order Difference different between platforms Message-ID: <3BAB32DB-B8E2-4F78-83F3-42D8DED11641@iotecdigital.com> Hi all. This may explain some wierdness between different platforms. I have a datagrid in a stack, with a mouseDoubleUp handler and a selectionChanged handler. The first command in each handler is an answer dialog telling which handler is currently running. On MacOS if I double click a datagrid row, selectionChanged gets triggered. On Windows, the mouseDoubleUp handler gets triggered. The expected behavior is that selectionChanged gets triggered, at which point some form population routines run, and then mouseDoubleUp gets triggered, after which if the stack is in Search mode (a construction of my own) the stack closes after passing the selected data back to the main stack. Because Windows si doing these things in the opposite order, mouseDoubleUp is closing the stack and returning to the main form before selectionChanged gets a chance to run. Is this the expected behavior, or is this some kind of anomaly? Bob S From paul at livecode.org Thu Jan 4 15:57:44 2018 From: paul at livecode.org (Paul Hibbert) Date: Thu, 4 Jan 2018 12:57:44 -0800 Subject: native iOS button question In-Reply-To: <515E21D8-3748-4C53-8610-8398547E9A84@major-k.de> References: <515E21D8-3748-4C53-8610-8398547E9A84@major-k.de> Message-ID: <3F8DB76C-A829-4268-A9C4-02A9C61B4E45@livecode.org> According to the MessageWatcher the iOS Native Button doesn?t receive a mouseUp/Down event, but the Android Native Button does, however, they both receive a rawKeyDown message if I scroll while the mouse pointer is over either button. That suggests something is wrong to me, I would expect them both to react the same. Paul > On Jan 4, 2018, at 12:10 PM, Klaus major-k via use-livecode wrote: > > Hi friends, > > is it true that the "native iOS button" widget will only run on iOS/Simulator? > Or can I also script and test it in the IDE? Looks like it does not react "on mouseup" at all. > > Any hints welcome, thanks! > > > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Jan 4 15:58:15 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 4 Jan 2018 20:58:15 +0000 Subject: Long Launch Time In-Reply-To: References: Message-ID: <07406628-3B55-4E08-8F84-3EF028C21740@iotecdigital.com> Hi Mike thanks that was it. In my case I do not have AV software scanning files, but after deleting the log file the plugins part of the IDE launch executed in a timely manner again. Bob S > On Jan 4, 2018, at 09:51 , Mike Bonner via use-livecode wrote: > > I think this is what you're looking for: > http://runtime-revolution.278305.n4.nabble.com/Slow-Opening-IDE-td4720805.html > > > On Thu, Jan 4, 2018 at 10:34 AM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Hi all. >> >> I perused the forums but could not find the post and solution to someone >> who was having difficulty when launching the IDE. It had something to do >> with clearing some logs somewhere as I recall, but I cannot find it in the >> forums. Anyone remember? >> >> OS 10.12 >> LC 8.1.8 From klaus at major-k.de Thu Jan 4 16:00:19 2018 From: klaus at major-k.de (Klaus major-k) Date: Thu, 4 Jan 2018 22:00:19 +0100 Subject: native iOS button question In-Reply-To: <3F8DB76C-A829-4268-A9C4-02A9C61B4E45@livecode.org> References: <515E21D8-3748-4C53-8610-8398547E9A84@major-k.de> <3F8DB76C-A829-4268-A9C4-02A9C61B4E45@livecode.org> Message-ID: <7283DA8C-26E3-4AF3-B25C-AEEC6A444BDA@major-k.de> Hi Paul, > Am 04.01.2018 um 21:57 schrieb Paul Hibbert via use-livecode : > > According to the MessageWatcher the iOS Native Button doesn?t receive a mouseUp/Down event, but the Android Native Button does, however, they both receive a rawKeyDown message if I scroll while the mouse pointer is over either button. That suggests something is wrong to me, I would expect them both to react the same. thanks, I already found another solution without native buttons. But there are some more widgets that do not react "on mouseup" unfortunately. > Paul > >> On Jan 4, 2018, at 12:10 PM, Klaus major-k via use-livecode wrote: >> >> Hi friends, >> >> is it true that the "native iOS button" widget will only run on iOS/Simulator? >> Or can I also script and test it in the IDE? Looks like it does not react "on mouseup" at all. >> Any hints welcome, thanks! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From brian at milby7.com Thu Jan 4 16:06:07 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 04 Jan 2018 21:06:07 +0000 Subject: native iOS button question In-Reply-To: <7283DA8C-26E3-4AF3-B25C-AEEC6A444BDA@major-k.de> References: <515E21D8-3748-4C53-8610-8398547E9A84@major-k.de> <3F8DB76C-A829-4268-A9C4-02A9C61B4E45@livecode.org> <7283DA8C-26E3-4AF3-B25C-AEEC6A444BDA@major-k.de> Message-ID: iOS button widget passes ?mouseUp? using a callback from the OS, so it would only work on the device. Android actually has the public OnClick handler to post mouseUp. This could be added to the widget to allow testing in the IDE I believe. On Thu, Jan 4, 2018 at 3:01 PM Klaus major-k via use-livecode < use-livecode at lists.runrev.com> wrote: > Hi Paul, > > > Am 04.01.2018 um 21:57 schrieb Paul Hibbert via use-livecode < > use-livecode at lists.runrev.com>: > > > > According to the MessageWatcher the iOS Native Button doesn?t receive a > mouseUp/Down event, but the Android Native Button does, however, they both > receive a rawKeyDown message if I scroll while the mouse pointer is over > either button. That suggests something is wrong to me, I would expect them > both to react the same. > > thanks, I already found another solution without native buttons. > But there are some more widgets that do not react "on mouseup" > unfortunately. > > > Paul > > > >> On Jan 4, 2018, at 12:10 PM, Klaus major-k via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> > >> Hi friends, > >> > >> is it true that the "native iOS button" widget will only run on > iOS/Simulator? > >> Or can I also script and test it in the IDE? Looks like it does not > react "on mouseup" at all. > >> Any hints welcome, thanks! > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From gcanyon at gmail.com Thu Jan 4 16:08:50 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Thu, 4 Jan 2018 16:08:50 -0500 Subject: Two new videos about using Navigator with LiveCode In-Reply-To: <6DEB620D-AA2A-4519-99F6-878F858065E9@hyperhh.de> References: <6DEB620D-AA2A-4519-99F6-878F858065E9@hyperhh.de> Message-ID: I don't see a way to publish to http://livecodeshare.runrev.com I posted to the forums: http://forums.livecode.com/viewtopic.php?f=13&t=30394 thanks! gc On Thu, Jan 4, 2018 at 11:19 AM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > Often "Navigator" works good for me in LC 8 (I stopped developing in LC 9). > It is especially very valuable when working with nested groups. > > Why don't you announce the update in the forum (also the link to the > documentation) and publish this very useful stack in "Sample Stacks"/ > livecodeshare? > It is there better visible than here or in the plugins menu. > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From runrev at vonfintel.org Thu Jan 4 16:30:15 2018 From: runrev at vonfintel.org (Thomas von Fintel) Date: Thu, 4 Jan 2018 22:30:15 +0100 Subject: Parameters for functions and commands Message-ID: <8c0720a0-d5bc-bc64-a09f-449187f56722@vonfintel.org> I am well aware that I shouldn't expect *everything* in Livecode to be intuitive, but this one bugs me: Having a handler like ?? function DoStuff_1 a, b ????? return a ?? end DoStuff_1 When you do "put DoStuff_1 (2,3)" the result is 2. But with ?? on DoStuff_2 a, b ?????? put a ?? end DoStuff_2 The result of DoStuff_2 (2, 3) is 2,3. "put a*b" produces an error. This means, parameters are passed differently to command handlers and function handlers. Right? Is that the way it should be and why? Thanks for your patience Thomas From rdimola at evergreeninfo.net Thu Jan 4 16:57:01 2018 From: rdimola at evergreeninfo.net (Ralph DiMola) Date: Thu, 4 Jan 2018 16:57:01 -0500 Subject: Parameters for functions and commands In-Reply-To: <8c0720a0-d5bc-bc64-a09f-449187f56722@vonfintel.org> References: <8c0720a0-d5bc-bc64-a09f-449187f56722@vonfintel.org> Message-ID: <00ae01d385a6$f64cf3e0$e2e6dba0$@net> T, Non functions don't need the parens. You are actually are passing 1 parameter of "2,3" When you do a "put DoStuff_2 (2,3)" LC is looking for a function DoStuff_2 that does not exist. If you do "DoStuff_2 2,3" you will get the expected results. Also if a non function does a "Return somevar" the value of somevar with be in "the result" Example: On DoStuff3 a,b Return A End DoStuff3 The if you do this in another handler Dostuff3 2,3 Answer the result You will see "2" Ralph DiMola IT Director Evergreen Information Services rdimola at evergreeninfo.net -----Original Message----- From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Thomas von Fintel via use-livecode Sent: Thursday, January 04, 2018 4:30 PM To: use-livecode at lists.runrev.com Cc: Thomas von Fintel Subject: Parameters for functions and commands I am well aware that I shouldn't expect *everything* in Livecode to be intuitive, but this one bugs me: Having a handler like function DoStuff_1 a, b return a end DoStuff_1 When you do "put DoStuff_1 (2,3)" the result is 2. But with on DoStuff_2 a, b put a end DoStuff_2 The result of DoStuff_2 (2, 3) is 2,3. "put a*b" produces an error. This means, parameters are passed differently to command handlers and function handlers. Right? Is that the way it should be and why? Thanks for your patience Thomas _______________________________________________ use-livecode mailing list use-livecode at lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Thu Jan 4 16:57:09 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Thu, 4 Jan 2018 21:57:09 +0000 Subject: Parameters for functions and commands In-Reply-To: <8c0720a0-d5bc-bc64-a09f-449187f56722@vonfintel.org> References: <8c0720a0-d5bc-bc64-a09f-449187f56722@vonfintel.org> Message-ID: In short, yes. Commands can still pass parameters, and as you may not know CAN ALSO RETURN VALUES. The difference is that functions are called with parenthesis and must be put into a variable. eg. function bobtest 1, 2 -- do some stuff return true -- do some other stuff end bobtest Now I can say: put bobTest(1, 2) into tBobResult -- if you exclude into tBobResult the result will be put into the message Commands are simply called and then the result variable contains anything put there by the return command ie. on bobtest2 pParam1, pParam2 -- do some stuff return true -- do some other stuff end bobtest2 Now I can say: bobtest 1,2 -- or dispatch "bobtest" to card 1 with 1,2 put the result into tBobResult NOTE: when a return command is encountered, either in a command or function, the handler is immediately exited and control is returned to the calling handler. So anything after -- do some other stuff WILL NOT EXECUTE. I suppose the difference may be somewhat academic, but as a convention, functions are usually used to get information, process it and return values without actually "doing" anything, like going to a card or putting values into fields etc. Commands actually DO things, but nothing is preventing you from using all commands or all functions. You can see though from the above examples that functions are slightly simpler to code with, requiring one line instead of two to process returned values. It can also make code more readable: put theInternetDate(the date) into tToday updateTheRecordDate tToday Bob S > On Jan 4, 2018, at 13:30 , Thomas von Fintel via use-livecode wrote: > > I am well aware that I shouldn't expect *everything* in Livecode to be intuitive, but this one bugs me: > > Having a handler like > > function DoStuff_1 a, b > > return a > > end DoStuff_1 > > When you do "put DoStuff_1 (2,3)" the result is 2. > > But with > > on DoStuff_2 a, b > > put a > > end DoStuff_2 > > The result of DoStuff_2 (2, 3) is 2,3. "put a*b" produces an error. > > This means, parameters are passed differently to command handlers and function handlers. Right? > > Is that the way it should be and why? > > > Thanks for your patience > > Thomas > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From runrev at vonfintel.org Thu Jan 4 17:39:18 2018 From: runrev at vonfintel.org (Thomas von Fintel) Date: Thu, 4 Jan 2018 23:39:18 +0100 Subject: Parameters for functions and commands In-Reply-To: References: <8c0720a0-d5bc-bc64-a09f-449187f56722@vonfintel.org> Message-ID: <58580afc-ec7b-8ea3-aa59-b77df6ad91c5@vonfintel.org> Thanks a lot, Ralph and Bob. I think, I've got it. Thomas Am 04.01.2018 um 22:57 schrieb Bob Sneidar via use-livecode: > In short, yes. Commands can still pass parameters, and as you may not know CAN ALSO RETURN VALUES. The difference is that functions are called with parenthesis and must be put into a variable. eg. > > function bobtest 1, 2 > -- do some stuff > return true > -- do some other stuff > end bobtest > > Now I can say: > > put bobTest(1, 2) into tBobResult -- if you exclude into tBobResult the result will be put into the message > > Commands are simply called and then the result variable contains anything put there by the return command ie. > > on bobtest2 pParam1, pParam2 > -- do some stuff > return true > -- do some other stuff > end bobtest2 > > Now I can say: > > bobtest 1,2 -- or dispatch "bobtest" to card 1 with 1,2 > put the result into tBobResult > > NOTE: when a return command is encountered, either in a command or function, the handler is immediately exited and control is returned to the calling handler. So anything after -- do some other stuff WILL NOT EXECUTE. > > I suppose the difference may be somewhat academic, but as a convention, functions are usually used to get information, process it and return values without actually "doing" anything, like going to a card or putting values into fields etc. Commands actually DO things, but nothing is preventing you from using all commands or all functions. You can see though from the above examples that functions are slightly simpler to code with, requiring one line instead of two to process returned values. It can also make code more readable: > > put theInternetDate(the date) into tToday > updateTheRecordDate tToday > > Bob S > >> On Jan 4, 2018, at 13:30 , Thomas von Fintel via use-livecode wrote: >> >> I am well aware that I shouldn't expect *everything* in Livecode to be intuitive, but this one bugs me: >> >> Having a handler like >> >> function DoStuff_1 a, b >> >> return a >> >> end DoStuff_1 >> >> When you do "put DoStuff_1 (2,3)" the result is 2. >> >> But with >> >> on DoStuff_2 a, b >> >> put a >> >> end DoStuff_2 >> >> The result of DoStuff_2 (2, 3) is 2,3. "put a*b" produces an error. >> >> This means, parameters are passed differently to command handlers and function handlers. Right? >> >> Is that the way it should be and why? >> >> >> Thanks for your patience >> >> Thomas >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > From livfoss at mac.com Thu Jan 4 17:40:24 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 04 Jan 2018 23:40:24 +0100 Subject: Mac 64 bit? In-Reply-To: <33EBCF48-6567-4062-9EC7-16369C53FC95@iotecdigital.com> References: <367EF0EE-8E57-4A61-AEF1-2899002717D0@mac.com> <33EBCF48-6567-4062-9EC7-16369C53FC95@iotecdigital.com> Message-ID: <2BD8CE18-AAF0-4B7B-89E4-3736CAD4F8F4@mac.com> Then the mother ship should remove the word EXPERIMENTAL. I will raise it in the quality database. Thanks for the info Graham > On 4 Jan 2018, at 16:45, Bob Sneidar via use-livecode wrote: > > This was discussed a while back. 64 bit works fine. That is all I use. > > Bob S > > >> On Jan 4, 2018, at 03:32 , Graham Samuel via use-livecode wrote: >> >> Oops - I should have said ?building for Mac OS 64 bit?, of course. Sorry. >> >> I wrote just now >> >>> I notice using LC 8.1.8 (the latest stable release AFAIK) that in the Standalone Application Settings, building for Mac OS X is still described as EXPERIMENTAL. Is this right? Has anyone experienced any gotchas by using this type of build? In reality I don?t know what OSX started to expect 64 bit apps, but it must have been a good few iterations ago. >> >> Graham >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From MikeKerner at roadrunner.com Thu Jan 4 17:41:51 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 4 Jan 2018 17:41:51 -0500 Subject: Parameters for functions and commands In-Reply-To: References: <8c0720a0-d5bc-bc64-a09f-449187f56722@vonfintel.org> Message-ID: I agree that the syntax should be the same. the parenthesis difference is annoying Then there's the way RETURN is handled in functions as opposed to handlers (vs RETURN FOR VALUE and RETURN FOR ERROR) On Thu, Jan 4, 2018 at 4:57 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > In short, yes. Commands can still pass parameters, and as you may not know > CAN ALSO RETURN VALUES. The difference is that functions are called with > parenthesis and must be put into a variable. eg. > > function bobtest 1, 2 > -- do some stuff > return true > -- do some other stuff > end bobtest > > Now I can say: > > put bobTest(1, 2) into tBobResult -- if you exclude into tBobResult the > result will be put into the message > > Commands are simply called and then the result variable contains anything > put there by the return command ie. > > on bobtest2 pParam1, pParam2 > -- do some stuff > return true > -- do some other stuff > end bobtest2 > > Now I can say: > > bobtest 1,2 -- or dispatch "bobtest" to card 1 with 1,2 > put the result into tBobResult > > NOTE: when a return command is encountered, either in a command or > function, the handler is immediately exited and control is returned to the > calling handler. So anything after -- do some other stuff WILL NOT EXECUTE. > > I suppose the difference may be somewhat academic, but as a convention, > functions are usually used to get information, process it and return values > without actually "doing" anything, like going to a card or putting values > into fields etc. Commands actually DO things, but nothing is preventing you > from using all commands or all functions. You can see though from the above > examples that functions are slightly simpler to code with, requiring one > line instead of two to process returned values. It can also make code more > readable: > > put theInternetDate(the date) into tToday > updateTheRecordDate tToday > > Bob S > > > On Jan 4, 2018, at 13:30 , Thomas von Fintel via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > > I am well aware that I shouldn't expect *everything* in Livecode to be > intuitive, but this one bugs me: > > > > Having a handler like > > > > function DoStuff_1 a, b > > > > return a > > > > end DoStuff_1 > > > > When you do "put DoStuff_1 (2,3)" the result is 2. > > > > But with > > > > on DoStuff_2 a, b > > > > put a > > > > end DoStuff_2 > > > > The result of DoStuff_2 (2, 3) is 2,3. "put a*b" produces an error. > > > > This means, parameters are passed differently to command handlers and > function handlers. Right? > > > > Is that the way it should be and why? > > > > > > Thanks for your patience > > > > Thomas > > > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Thu Jan 4 17:44:12 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Thu, 4 Jan 2018 17:44:12 -0500 Subject: Two new videos about using Navigator with LiveCode In-Reply-To: References: <6DEB620D-AA2A-4519-99F6-878F858065E9@hyperhh.de> Message-ID: I'll email you off-list On Thu, Jan 4, 2018 at 4:08 PM, Geoff Canyon via use-livecode < use-livecode at lists.runrev.com> wrote: > I don't see a way to publish to http://livecodeshare.runrev.com > > I posted to the forums: > http://forums.livecode.com/viewtopic.php?f=13&t=30394 > > thanks! > > gc > > On Thu, Jan 4, 2018 at 11:19 AM, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > > > Often "Navigator" works good for me in LC 8 (I stopped developing in LC > 9). > > It is especially very valuable when working with nested groups. > > > > Why don't you announce the update in the forum (also the link to the > > documentation) and publish this very useful stack in "Sample Stacks"/ > > livecodeshare? > > It is there better visible than here or in the plugins menu. > > > > > > _______________________________________________ > > use-livecode mailing list > > use-livecode at lists.runrev.com > > Please visit this url to subscribe, unsubscribe and manage your > > subscription preferences: > > http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From livfoss at mac.com Thu Jan 4 17:46:29 2018 From: livfoss at mac.com (Graham Samuel) Date: Thu, 04 Jan 2018 23:46:29 +0100 Subject: Finding the 'Applications' folder on a Mac Message-ID: <6AA27573-6E02-4217-94AF-1436C86E3F20@mac.com> It looks to me that specialFolderPath doesn?t give a way of finding the /Applications folder on a Mac (or presumably the equivalent on a PC). If one is running a standalone which has been placed in the Applications folder, then it is possible to start with specialFolderPath(?engine?) and work back to the Applications directory, but I suspect this is fraught with uncertainty. Has anyone a solution? Graham From m.schonewille at economy-x-talk.com Thu Jan 4 17:54:35 2018 From: m.schonewille at economy-x-talk.com (Mark) Date: Thu, 4 Jan 2018 23:54:35 +0100 Subject: Finding the 'Applications' folder on a Mac In-Reply-To: <6AA27573-6E02-4217-94AF-1436C86E3F20@mac.com> References: <6AA27573-6E02-4217-94AF-1436C86E3F20@mac.com> Message-ID: On Mac OS X, user applications are in "~"& $USER & "/Applications" Global applications are in /Applications On Windows, you use specialfolderpath(38). My book has an appendix with all folder numbers and names. Op 04-01-18 om 23:46 schreef Graham Samuel via use-livecode: > It looks to me that specialFolderPath doesn?t give a way of finding the /Applications folder on a Mac (or presumably the equivalent on a PC). If one is running a standalone which has been placed in the Applications folder, then it is possible to start with specialFolderPath(?engine?) and work back to the Applications directory, but I suspect this is fraught with uncertainty. Has anyone a solution? > > Graham From klaus at major-k.de Thu Jan 4 17:59:11 2018 From: klaus at major-k.de (Klaus major-k) Date: Thu, 4 Jan 2018 23:59:11 +0100 Subject: Finding the 'Applications' folder on a Mac In-Reply-To: <6AA27573-6E02-4217-94AF-1436C86E3F20@mac.com> References: <6AA27573-6E02-4217-94AF-1436C86E3F20@mac.com> Message-ID: <5383AA84-CDD8-488C-8846-C4B5180E99FE@major-k.de> Hi Graham, > Am 04.01.2018 um 23:46 schrieb Graham Samuel via use-livecode : > > It looks to me that specialFolderPath doesn?t give a way of finding the /Applications folder on a Mac (or presumably the equivalent on a PC). If one is running a standalone which has been placed in the Applications folder, then it is possible to start with specialFolderPath(?engine?) and work back to the Applications directory, but I suspect this is fraught with uncertainty. Has anyone a solution? ... put specialfolderpath("apps") into tApplicationFolder ... Found this and more gemns here: > Graham Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From bobsneidar at iotecdigital.com Thu Jan 4 19:13:16 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 5 Jan 2018 00:13:16 +0000 Subject: How to tell if it's a datagrid Message-ID: <89F12174-19FA-4FDB-873C-989A4A85B458@iotecdigital.com> Given an object reference, how can I tell the object is a datagrid? You might say, get the dgProp ["control type"], but every object contained within a datagrid group will ALSO return "data grid". In fact, EVERY dgProp arguement for every item in a datagrid group will do the same. The reason I ask is that I want to get the minimum left/top and maximum right/bottom of every VISIBLE object on a card that is NOT a group but notwithstanding INCLUDING Datagrids, so that I can set the rect of the card containing them in a consistent way. The thing is, groups have margins (I'm not going to set the margins of all my groups to 0) and these are not visible, so could skew the positioning of what IS visible. Datagrids do NOT have margins that I can tell, even though they are groups. For example, if I had a group on the left edge but not on the right edge, the objects on the card would look off center. Bob S From ambassador at fourthworld.com Thu Jan 4 19:18:00 2018 From: ambassador at fourthworld.com (Richard Gaskin) Date: Thu, 4 Jan 2018 16:18:00 -0800 Subject: Mac 64 bit? In-Reply-To: <2BD8CE18-AAF0-4B7B-89E4-3736CAD4F8F4@mac.com> References: <2BD8CE18-AAF0-4B7B-89E4-3736CAD4F8F4@mac.com> Message-ID: <772b2560-dd93-4918-6d81-cca38feece9a@fourthworld.com> Graham Samuel wrote: >>> I notice using LC 8.1.8 (the latest stable release AFAIK) that in >>> the Standalone Application Settings, building for Mac OS X is still >>> described as EXPERIMENTAL. Is this right? Has anyone experienced any >>> gotchas by using this type of build? In reality I don?t know what >>> OSX started to expect 64 bit apps, but it must have been a good few >>> iterations ago. ... > Then the mother ship should remove the word EXPERIMENTAL. I will raise > it in the quality database. One more reason to use the most recent build during development: In v9 you'll find that's already done: 64-bit is now the default, "Experimental" has been removed, as "(Deprecated)" is now added next to 32-bit. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ____________________________________________________________________ Ambassador at FourthWorld.com http://www.FourthWorld.com From brian at milby7.com Thu Jan 4 21:26:15 2018 From: brian at milby7.com (Brian Milby) Date: Thu, 4 Jan 2018 20:26:15 -0600 Subject: Free SVG icons In-Reply-To: <7740F101-5817-4AE1-B4BA-98692A7DA74E@hyperhh.de> References: <7740F101-5817-4AE1-B4BA-98692A7DA74E@hyperhh.de> Message-ID: Here's a bit of code to handle the feather set when converted by icomoon.io (which could have multiple path statements): on dragEnter local tFile, tSVG, tIndex, tLine set the dragAction to "copy" put line 1 of the dragdata["files"] into me put url ("file:" & me) into tFile set linedel to " wrote: > These SVGs are fine. > > 1. download the zip from github > https://codeload.github.com/leungwensen/svg-icon/zip/master > (29.7 MByte, unpacks to 61.4 MByte) > > 2. open one of the folders in dist/svg, e.g. dist/svg/flat > 3. make a stack with one field and one svg widget: > > Script the field as follows > > on dragenter > set the dragaction to "copy" > put line 1 of the dragdata["files"] into me > put url("file:"& me) into s > set linedel to " References: <6E5F5B5D-AF01-4756-B742-B97593EEBA17@hindu.org> <99ae0a27-4ca6-80cd-2ad2-5ef782540125@hyperactivesw.com> <996DC382-597D-4FAB-83E5-82C36DDB3A0D@hindu.org> <365c32ac0b47c549820d7cf42298459d@livecode.com> Message-ID: <71A61F95-58A7-4B5F-BBA6-F51DB7C52185@hindu.org> FWIW: Seems my error was (not in dict) that I should have been doing put the ID of the topstack into tWindowID go to cardOrStackObject in window id tWindowID Well I've been tinkering testing this for two days? made the mistake of making too many changes, then threw out that branch? went back to a working branch and start just toggling between this -- go cardOrStackObject # e.g go "gems" (or this string) go card 3 of "gems" -- wait 100 milliseconds with messages -- close stack oStackName -- wait 100 milliseconds with messages versus this, where the top stack short name is already known by ourhandler. So we really only need this go to cardOrStackObject in window oStackName And this works on Mobile, in fact it seems a bit more responsive? BUT there is a rendering failure on leaving any stack whose main control is the browser widget? we have "go back" icons that close the stack with the browser widget? and go back ot he stack that "launched'' the view web stack. and the whole bottom navigation group disappears. It seems like the fullScreenMode "showAll" is only registering the width of the stack but now the height of the stack is now too high? and (I am guessing) the bottom navigation group is below screen. This "smells" like old issue with the browser rect on mobile?using showAll This does not happen if we just (using the above code that is commented out) open the "new" stack and wait 100 milliseconds and *then* close the "old" stack. but, as already bug reported.. this is failing to render properly also on some Android devices. which leaves only option to beg/pray for resolution of this bug http://quality.livecode.com/show_bug.cgi?id=20810 BR wrote: "Something is wrong" This works on desktop, but fails on iOS. Nothing happens at all. it stays on the same, open stack and does not navigate to/open the new stack declared in "go put the windowID of stack oStackName into tWindowID # current open stack go to cardOrStackObject in window tWindowID # where "cardOrStackObject" is a string in the form of .e.g # stack "gems OR card 2 of stack "gems" OR card "video" of stack surprise From brian at milby7.com Thu Jan 4 22:09:53 2018 From: brian at milby7.com (Brian Milby) Date: Fri, 05 Jan 2018 03:09:53 +0000 Subject: Go in Window (not working) Go in A window "working" In-Reply-To: <71A61F95-58A7-4B5F-BBA6-F51DB7C52185@hindu.org> References: <6E5F5B5D-AF01-4756-B742-B97593EEBA17@hindu.org> <99ae0a27-4ca6-80cd-2ad2-5ef782540125@hyperactivesw.com> <996DC382-597D-4FAB-83E5-82C36DDB3A0D@hindu.org> <365c32ac0b47c549820d7cf42298459d@livecode.com> <71A61F95-58A7-4B5F-BBA6-F51DB7C52185@hindu.org> Message-ID: Just a wild guess, but did you attempt to reset the full screen mode in the new stack? (Can?t tell from the above if you set it in each stack or just the first) On Thu, Jan 4, 2018 at 8:39 PM Sannyasin Brahmanathaswami via use-livecode < use-livecode at lists.runrev.com> wrote: > FWIW: > > Seems my error was (not in dict) that I should have been doing > > put the ID of the topstack into tWindowID > go to cardOrStackObject in window id tWindowID > > > Well I've been tinkering testing this for two days? made the mistake of > making too many changes, then threw out that branch? went back to a working > branch and start just toggling between this > > -- go cardOrStackObject # e.g go "gems" (or this string) go > card 3 of "gems" > -- wait 100 milliseconds with messages > -- close stack oStackName > -- wait 100 milliseconds with messages > > versus this, where the top stack short name is already known by > ourhandler. So we really only need this > > go to cardOrStackObject in window oStackName > > And this works on Mobile, in fact it seems a bit more responsive? > > BUT there is a rendering failure on leaving any stack whose main control > is the browser widget? we have "go back" icons that close the stack with > the browser widget? and go back ot he stack that "launched'' the view web > stack. and the whole bottom navigation group disappears. > > It seems like the fullScreenMode "showAll" is only registering the width > of the stack but now the height of the stack is now too high? and (I am > guessing) the bottom navigation group is below screen. This "smells" like > old issue with the browser rect on mobile?using showAll > > This does not happen if we just (using the above code that is commented > out) open the "new" stack and wait 100 milliseconds and *then* close the > "old" stack. but, as already bug reported.. this is failing to render > properly also on some Android devices. > > which leaves only option to beg/pray for resolution of this bug > > http://quality.livecode.com/show_bug.cgi?id=20810 > > > BR wrote: > > "Something is wrong" > > This works on desktop, but fails on iOS. Nothing happens at all. it > stays on the same, open stack and does not navigate to/open the new stack > declared in "go > > put the windowID of stack oStackName into tWindowID # current open > stack > go to cardOrStackObject in window tWindowID > > # where "cardOrStackObject" is a string in the form of .e.g > # stack "gems OR card 2 of stack "gems" OR card "video" of stack > surprise > > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From james at thehales.id.au Thu Jan 4 22:34:00 2018 From: james at thehales.id.au (James At The Hale) Date: Fri, 5 Jan 2018 14:34:00 +1100 Subject: Print to PDF needs extending Message-ID: ?PDF (Portable Document Format) is a file format that has captured all the elements of a printed document as an electronic image that you can view, navigate, print, or forward to someone else.? So if PDF is basically a representation of a printed doc, then a pdf of a text field doesn?t actually make sense, in that the text field does not represent what the printed document would like like. But if you made a card as big as the page you want to print, layout the text field to suit, add anything else you wanted, that would work and make sense. Hang on. That?s how it works now. From brahma at hindu.org Thu Jan 4 22:42:48 2018 From: brahma at hindu.org (Sannyasin Brahmanathaswami) Date: Fri, 5 Jan 2018 03:42:48 +0000 Subject: Two new videos about using Navigator with LiveCode In-Reply-To: References: Message-ID: <70945F36-B7D1-446B-81EC-41C84313E425@hindu.org> Geoff wow this is the tool I've been waiting for! I just fixed a series of fields on 8 cards that carried that old single blank line script that used to be saved in by default? using Navigator it was so easy. FYI" the script handler's for a long script on ly stack are being filtered to show only functions. all the commands to not appear in your handler list. How do you want bug reports sent? Do we need to clean up the old navigator? at first the on-board 2.* showed up but then after downloading and putting into my Plug'ss folder the latest 4.5 beta 2 is the default. But I wonder if some prefs or something might be saved that would block the appearance of commands in the list of handlers. I can send you the script off list if you want? we have a lot of comments in there? possibly breaking your look up..? BR On 1/3/18, 6:26 PM, "use-livecode on behalf of Geoff Canyon via use-livecode" wrote: The Script Menu: https://youtu.be/25q-D8k_z2s Lets you easily copy and paste scripts into objects. Displays all the handlers from both an object and its behavior. Select any handler to edit the script and jump to that handler. Lets you call any handler, function, getProp, or setProp, including passing in parameters, and for functions and getProp displays the result/property so you can see/copy it. From dunbarx at aol.com Fri Jan 5 00:06:05 2018 From: dunbarx at aol.com (dunbarx) Date: Thu, 4 Jan 2018 22:06:05 -0700 (MST) Subject: How to tell if it's a datagrid In-Reply-To: <89F12174-19FA-4FDB-873C-989A4A85B458@iotecdigital.com> References: <89F12174-19FA-4FDB-873C-989A4A85B458@iotecdigital.com> Message-ID: <1515128765037-0.post@n4.nabble.com> Hi. Can you both check dgProp ["control type"] AND see if the owner of that control is a group where that property also exists? Or, and I hesitate to mention it, why not just either name all your DG's a certain way, or set a custom property for each of them? After all, you had to have created them in the first place. Perhaps this exercise comes after the fact? Craig Newman -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From jacque at hyperactivesw.com Fri Jan 5 00:59:54 2018 From: jacque at hyperactivesw.com (J. Landman Gay) Date: Thu, 4 Jan 2018 23:59:54 -0600 Subject: Free SVG icons In-Reply-To: References: <7740F101-5817-4AE1-B4BA-98692A7DA74E@hyperhh.de> Message-ID: Very nice, thanks. It took me a bit to figure out the icomoon web app, but now I've got the whole feather set and your script works well. On 1/4/18 8:26 PM, Brian Milby via use-livecode wrote: > Here's a bit of code to handle the feather set when converted by icomoon.io > (which could have multiple path statements): > > on dragEnter > local tFile, tSVG, tIndex, tLine > set the dragAction to "copy" > put line 1 of the dragdata["files"] into me > put url ("file:" & me) into tFile > set linedel to " into field 2" > > On Tue, Jan 2, 2018 at 8:19 PM, hh via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> These SVGs are fine. >> >> 1. download the zip from github >> https://codeload.github.com/leungwensen/svg-icon/zip/master >> (29.7 MByte, unpacks to 61.4 MByte) >> >> 2. open one of the folders in dist/svg, e.g. dist/svg/flat >> 3. make a stack with one field and one svg widget: >> >> Script the field as follows >> >> on dragenter >> set the dragaction to "copy" >> put line 1 of the dragdata["files"] into me >> put url("file:"& me) into s >> set linedel to " 32-bit. From livfoss at mac.com Fri Jan 5 06:08:23 2018 From: livfoss at mac.com (Graham Samuel) Date: Fri, 05 Jan 2018 12:08:23 +0100 Subject: Finding the 'Applications' folder on a Mac In-Reply-To: <5383AA84-CDD8-488C-8846-C4B5180E99FE@major-k.de> References: <6AA27573-6E02-4217-94AF-1436C86E3F20@mac.com> <5383AA84-CDD8-488C-8846-C4B5180E99FE@major-k.de> Message-ID: Gems indeed! If they always work, I wonder why the mother ship hasn?t incorporated them into the LC Dictionary. Anyway thanks Klaus, and of course thanks Ken Ray. Graham > On 4 Jan 2018, at 23:59, Klaus major-k via use-livecode wrote: > > Hi Graham, > >> Am 04.01.2018 um 23:46 schrieb Graham Samuel via use-livecode : >> >> It looks to me that specialFolderPath doesn?t give a way of finding the /Applications folder on a Mac (or presumably the equivalent on a PC). If one is running a standalone which has been placed in the Applications folder, then it is possible to start with specialFolderPath(?engine?) and work back to the Applications directory, but I suspect this is fraught with uncertainty. Has anyone a solution? > > ... > put specialfolderpath("apps") into tApplicationFolder > ... > > Found this and more gemns here: > >> Graham > > Best > > Klaus > > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From klaus at major-k.de Fri Jan 5 07:11:02 2018 From: klaus at major-k.de (Klaus major-k) Date: Fri, 5 Jan 2018 13:11:02 +0100 Subject: Lower part of Script Editor (the one with variabels etc.) disappeared, how to get it back? Message-ID: <255393BD-DBBB-4BE4-9A17-AC7A7D130A41@major-k.de> Hi friends, the subject says it all. Out of a sudden*** the lower part of the script editor diappeared from his machine. The part with the variables, Find etc. How can we get it back? We really cannot debug this way :-/ He is using a MacBook and LC 2.18. ***We have no idea when and how it disapperaed. Thanks for any hint! Best Klaus -- Klaus Major http://www.major-k.de klaus at major-k.de From lists at mangomultimedia.com Fri Jan 5 07:20:43 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 05 Jan 2018 12:20:43 +0000 Subject: How to tell if it's a datagrid In-Reply-To: <89F12174-19FA-4FDB-873C-989A4A85B458@iotecdigital.com> References: <89F12174-19FA-4FDB-873C-989A4A85B458@iotecdigital.com> Message-ID: On Thu, Jan 4, 2018 at 6:13 PM Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Given an object reference, how can I tell the object is a datagrid? You could check to see if the long id of your target control is the dgControl of the target control. If it is then you have a data grid. - - Trevor DeVore ScreenSteps > From gcanyon at gmail.com Fri Jan 5 07:44:06 2018 From: gcanyon at gmail.com (Geoff Canyon) Date: Fri, 5 Jan 2018 07:44:06 -0500 Subject: Two new videos about using Navigator with LiveCode In-Reply-To: <70945F36-B7D1-446B-81EC-41C84313E425@hindu.org> References: <70945F36-B7D1-446B-81EC-41C84313E425@hindu.org> Message-ID: <3C300D91-422B-4299-8BF4-51F1D153BFA8@gmail.com> Email is fine for bug reports; I don't get that many. gc > On Jan 4, 2018, at 10:42 PM, Sannyasin Brahmanathaswami via use-livecode wrote: > > Geoff > > wow this is the tool I've been waiting for! > > I just fixed a series of fields on 8 cards that carried that old single blank line script that used to be saved in by default? using Navigator it was so easy. > > FYI" the script handler's for a long script on ly stack are being filtered to show only functions. all the commands to not appear in your handler list. > > How do you want bug reports sent? > > Do we need to clean up the old navigator? at first the on-board 2.* showed up but then after downloading and putting into my Plug'ss folder the latest 4.5 beta 2 is the default. But I wonder if some prefs or something might be saved that would block the appearance of commands in the list of handlers. > > I can send you the script off list if you want? we have a lot of comments in there? possibly breaking your look up..? > > BR > > On 1/3/18, 6:26 PM, "use-livecode on behalf of Geoff Canyon via use-livecode" wrote: > > The Script Menu: https://youtu.be/25q-D8k_z2s > Lets you easily copy and paste scripts into objects. Displays all the > handlers from both an object and its behavior. Select any handler to edit > the script and jump to that handler. Lets you call any handler, function, > getProp, or setProp, including passing in parameters, and for functions and > getProp displays the result/property so you can see/copy it. > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From lists at mangomultimedia.com Fri Jan 5 08:42:12 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 5 Jan 2018 07:42:12 -0600 Subject: Cancel browser widget navigation? Message-ID: Other than injecting javascript into each web page that cancels clicks on links, is there a way to cancel user clicks on links in a browser widget? -- Trevor DeVore ScreenSteps www.screensteps.com From MikeKerner at roadrunner.com Fri Jan 5 08:48:32 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 5 Jan 2018 08:48:32 -0500 Subject: How to tell if it's a datagrid In-Reply-To: <89F12174-19FA-4FDB-873C-989A4A85B458@iotecdigital.com> References: <89F12174-19FA-4FDB-873C-989A4A85B458@iotecdigital.com> Message-ID: uhhh guessing: can you check if the object has a parent? If the parent is a datagrid, then the object is not a datagrid On Thu, Jan 4, 2018 at 7:13 PM, Bob Sneidar via use-livecode < use-livecode at lists.runrev.com> wrote: > Given an object reference, how can I tell the object is a datagrid? You > might say, get the dgProp ["control type"], but every object contained > within a datagrid group will ALSO return "data grid". In fact, EVERY dgProp > arguement for every item in a datagrid group will do the same. > > The reason I ask is that I want to get the minimum left/top and maximum > right/bottom of every VISIBLE object on a card that is NOT a group but > notwithstanding INCLUDING Datagrids, so that I can set the rect of the card > containing them in a consistent way. The thing is, groups have margins (I'm > not going to set the margins of all my groups to 0) and these are not > visible, so could skew the positioning of what IS visible. Datagrids do NOT > have margins that I can tell, even though they are groups. For example, if > I had a group on the left edge but not on the right edge, the objects on > the card would look off center. > > Bob S > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From MikeKerner at roadrunner.com Fri Jan 5 09:05:43 2018 From: MikeKerner at roadrunner.com (Mike Kerner) Date: Fri, 5 Jan 2018 09:05:43 -0500 Subject: How to tell if it's a datagrid In-Reply-To: References: <89F12174-19FA-4FDB-873C-989A4A85B458@iotecdigital.com> Message-ID: whoa. everyone else's replies didn't show up until just now, and they're all above mine. weird email glitch this AM. On Fri, Jan 5, 2018 at 8:48 AM, Mike Kerner wrote: > uhhh guessing: can you check if the object has a parent? If the parent > is a datagrid, then the object is not a datagrid > > On Thu, Jan 4, 2018 at 7:13 PM, Bob Sneidar via use-livecode < > use-livecode at lists.runrev.com> wrote: > >> Given an object reference, how can I tell the object is a datagrid? You >> might say, get the dgProp ["control type"], but every object contained >> within a datagrid group will ALSO return "data grid". In fact, EVERY dgProp >> arguement for every item in a datagrid group will do the same. >> >> The reason I ask is that I want to get the minimum left/top and maximum >> right/bottom of every VISIBLE object on a card that is NOT a group but >> notwithstanding INCLUDING Datagrids, so that I can set the rect of the card >> containing them in a consistent way. The thing is, groups have margins (I'm >> not going to set the margins of all my groups to 0) and these are not >> visible, so could skew the positioning of what IS visible. Datagrids do NOT >> have margins that I can tell, even though they are groups. For example, if >> I had a group on the left edge but not on the right edge, the objects on >> the card would look off center. >> >> Bob S >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." From dave at applicationinsight.com Fri Jan 5 09:58:20 2018 From: dave at applicationinsight.com (Dave Kilroy) Date: Fri, 5 Jan 2018 07:58:20 -0700 (MST) Subject: The coming of SVG In-Reply-To: <1510154220809-0.post@n4.nabble.com> References: <9b4b2d74e230e7a8c83716d9447f7419@livecode.com> <1510154220809-0.post@n4.nabble.com> Message-ID: <1515164300379-0.post@n4.nabble.com> Hi - anyone got news on 'VectorIcon' or whatever it's going to be called? I was thinking it would arrive with LC (dp11) but it didn't When using Mark's external that he shared on LC Global I can get it working in the IDE but it's a no-show on an iOS device (amongst other errors I get "864,7,1 unable to load sag compiler") Regards Dave ----- "The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time." Peter M. Brigham -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From dave at applicationinsight.com Fri Jan 5 10:00:23 2018 From: dave at applicationinsight.com (Dave Kilroy) Date: Fri, 5 Jan 2018 08:00:23 -0700 (MST) Subject: The coming of SVG In-Reply-To: <1515164300379-0.post@n4.nabble.com> References: <9b4b2d74e230e7a8c83716d9447f7419@livecode.com> <1510154220809-0.post@n4.nabble.com> <1515164300379-0.post@n4.nabble.com> Message-ID: <1515164423700-0.post@n4.nabble.com> he he - that should be "svg compiler" Dave ----- "The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time." Peter M. Brigham -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From hh at hyperhh.de Fri Jan 5 10:01:54 2018 From: hh at hyperhh.de (hh) Date: Fri, 5 Jan 2018 16:01:54 +0100 Subject: Cancel browser widget navigation? Message-ID: <36F0CAD9-2D90-4532-B251-058890D6CF0E@hyperhh.de> > Trevor D. wrote: > Other than injecting javascript into each web page that cancels clicks on > links, is there a way to cancel user clicks on links in a browser widget? 1. Cancel while navigating: Catch the "current" htmltext: on browserNavigateBegin set the currentHTML of me to the htmltext of me end browserNavigateBegin Then cancel with set the htmltext of widget 1 to the currentHTML of widget 1. If the navigation is fast this is the same as navigating back. 2. Don't do the navigation in the widget but later on in browsers: Not really from a widget property. But you could use an attribute that the widget can't do: to open a new window. This works in "hhTextEditBasic". set the htmltext of widget 1 to Trevor's Site From mark at livecode.com Fri Jan 5 10:03:32 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 05 Jan 2018 16:03:32 +0100 Subject: The coming of SVG In-Reply-To: <1515164300379-0.post@n4.nabble.com> References: <9b4b2d74e230e7a8c83716d9447f7419@livecode.com> <1510154220809-0.post@n4.nabble.com> <1515164300379-0.post@n4.nabble.com> Message-ID: <2ac801c73a0d5fe1698197e0d0b29123@livecode.com> On 2018-01-05 15:58, Dave Kilroy via use-livecode wrote: > Hi - anyone got news on 'VectorIcon' or whatever it's going to be > called? I > was thinking it would arrive with LC (dp11) but it didn't It did - but not in widget form. There is a script library which compiles an SVG file into a metafile format called a 'drawing'. Then the image object has been prodded so you can set the text of an image to said metafile data and it will render the SVG represented by it. Take a look in the dictionary under drawingSvgCompile(). > When using Mark's external that he shared on LC Global I can get it > working > in the IDE but it's a no-show on an iOS device (amongst other errors I > get > "864,7,1 unable to load sag compiler") Yes - there was an issue with inclusions in extensions - that should be fixed in dp11. However, the support for rendering drawings is in the engine - so you only need to include the drawing SVG compiler library if you want to compile SVGs on the fly. Warmest Regards, Mark. -- Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps From lists at mangomultimedia.com Fri Jan 5 10:18:13 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 5 Jan 2018 09:18:13 -0600 Subject: Cancel browser widget navigation? In-Reply-To: <36F0CAD9-2D90-4532-B251-058890D6CF0E@hyperhh.de> References: <36F0CAD9-2D90-4532-B251-058890D6CF0E@hyperhh.de> Message-ID: On Fri, Jan 5, 2018 at 9:01 AM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > Trevor D. wrote: > > Other than injecting javascript into each web page that cancels clicks on > > links, is there a way to cancel user clicks on links in a browser widget? > > 1. Cancel while navigating: > Catch the "current" htmltext: > > on browserNavigateBegin > set the currentHTML of me to the htmltext of me > end browserNavigateBegin > > Then cancel with > set the htmltext of widget 1 to the currentHTML of widget 1. > > If the navigation is fast this is the same as navigating back. > Thanks for responding. If I understand what you are suggesting then the problem is that the vertical scroll of the page would be reset. There is no guarantee that the page load will happen quickly. The user will most likely see the navigation occur and then the original page refresh. I want to cancel navigation before it ever occurs. > 2. Don't do the navigation in the widget but later on in browsers: > Not really from a widget property. But you could use an attribute that the > widget can't do: to open a new window. This works in "hhTextEditBasic". > > set the htmltext of widget 1 to > Trevor's Site > The browser widget I?m working with is a Froala editor. The user will be inserting their own content into the browser widget. -- Trevor DeVore ScreenSteps www.screensteps.com From bobsneidar at iotecdigital.com Fri Jan 5 10:34:16 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 5 Jan 2018 15:34:16 +0000 Subject: Lower part of Script Editor (the one with variabels etc.) disappeared, how to get it back? In-Reply-To: <255393BD-DBBB-4BE4-9A17-AC7A7D130A41@major-k.de> References: <255393BD-DBBB-4BE4-9A17-AC7A7D130A41@major-k.de> Message-ID: <096E44D4-59F0-4896-884E-D2ABFFB81851@iotecdigital.com> At the bottom of the script window there should be 2 horizontal bars about 3/8 inch long. This is the handle for the split pane control. Bob S > On Jan 5, 2018, at 04:11 , Klaus major-k via use-livecode wrote: > > Hi friends, > > the subject says it all. > > Out of a sudden*** the lower part of the script editor diappeared > from his machine. The part with the variables, Find etc. > How can we get it back? We really cannot debug this way :-/ > > He is using a MacBook and LC 2.18. > > ***We have no idea when and how it disapperaed. > > Thanks for any hint! > > > Best > > Klaus > -- > Klaus Major > http://www.major-k.de > klaus at major-k.de > > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From bobsneidar at iotecdigital.com Fri Jan 5 10:39:21 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 5 Jan 2018 15:39:21 +0000 Subject: How to tell if it's a datagrid In-Reply-To: <1515128765037-0.post@n4.nabble.com> References: <89F12174-19FA-4FDB-873C-989A4A85B458@iotecdigital.com> <1515128765037-0.post@n4.nabble.com> Message-ID: <574C3E58-9267-4F2A-96A7-61785C88690D@iotecdigital.com> Hi Craig. Thanks for the reply. One of the goals of any utility script I write is to make it usable in any circumstance. Using naming conventions violates this principle. However your first comment seems like it would work. There is only one control where the dgProp ["control type"] is "data grid" but not for the owner, and that is the datagrid itself. That might do the trick! I must have been in a coding fog not to think of that yesterday afternoon. It's been getting foggy of late. ;-) Bob S > On Jan 4, 2018, at 21:06 , dunbarx via use-livecode wrote: > > Hi. > > Can you both check dgProp ["control type"] AND see if the owner of that > control is a group where that property also exists? > > Or, and I hesitate to mention it, why not just either name all your DG's a > certain way, or set a custom property for each of them? After all, you had > to have created them in the first place. > > Perhaps this exercise comes after the fact? > > Craig Newman From bobsneidar at iotecdigital.com Fri Jan 5 10:41:04 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 5 Jan 2018 15:41:04 +0000 Subject: How to tell if it's a datagrid In-Reply-To: References: <89F12174-19FA-4FDB-873C-989A4A85B458@iotecdigital.com> Message-ID: <09DEED3A-3CE2-4C25-AA22-B3D5CDCD8749@iotecdigital.com> Thanks all for the replies. I guess everyone figured it out but me. :-0 Bob S > On Jan 5, 2018, at 05:48 , Mike Kerner via use-livecode wrote: > > uhhh guessing: can you check if the object has a parent? If the parent is > a datagrid, then the object is not a datagrid From hh at hyperhh.de Fri Jan 5 10:45:17 2018 From: hh at hyperhh.de (hh) Date: Fri, 5 Jan 2018 16:45:17 +0100 Subject: Cancel browser widget navigation? Message-ID: <1D623A0C-D6F3-4630-8E3A-A109AA7F56C2@hyperhh.de> > > hh wrote: > > 2. Don't do the navigation in the widget but later on in browsers: > > Not really from a widget property. But you could use an attribute that the > > widget can't do: to open a new window. This works in "hhTextEditBasic". > > > > set the htmltext of widget 1 to > > Trevor's Site > > > > TD wrote: > The browser widget I?m working with is a Froala editor. The user will be > inserting their own content into the browser widget. Then you could add in "onChange" of the editor an insert of target="_blank". So the links won't work in the widget but in browsers. I use this in the free hhTextEdit-Full (to appear) that also does editing like the paid Froala. May be similar to this (here written with jQuery), preserving on-page-links: onChange: function(contents, $editable) { $('a').each(function () { if ($(this).attr('href').charAt(0) != '#') $(this).attr('target','_blank');}); } From bobsneidar at iotecdigital.com Fri Jan 5 10:45:21 2018 From: bobsneidar at iotecdigital.com (Bob Sneidar) Date: Fri, 5 Jan 2018 15:45:21 +0000 Subject: Finding the 'Applications' folder on a Mac In-Reply-To: References: <6AA27573-6E02-4217-94AF-1436C86E3F20@mac.com> <5383AA84-CDD8-488C-8846-C4B5180E99FE@major-k.de> Message-ID: <7DEBE1BC-7997-4939-9C5D-AA7F0D33C32C@iotecdigital.com> That IS handy! Bob S > On Jan 5, 2018, at 03:08 , Graham Samuel via use-livecode wrote: > >> ... >> put specialfolderpath("apps") into tApplicationFolder >> ... >> >> Found this and more gemns here: >> >>> Graham >> >> Best >> >> Klaus From lists at mangomultimedia.com Fri Jan 5 10:59:04 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 5 Jan 2018 09:59:04 -0600 Subject: Cancel browser widget navigation? In-Reply-To: <1D623A0C-D6F3-4630-8E3A-A109AA7F56C2@hyperhh.de> References: <1D623A0C-D6F3-4630-8E3A-A109AA7F56C2@hyperhh.de> Message-ID: On Fri, Jan 5, 2018 at 9:45 AM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > > > hh wrote: > > > 2. Don't do the navigation in the widget but later on in browsers: > > > Not really from a widget property. But you could use an attribute that > the > > > widget can't do: to open a new window. This works in "hhTextEditBasic". > > > > > > set the htmltext of widget 1 to > > > Trevor's Site > > > > > > > TD wrote: > > The browser widget I?m working with is a Froala editor. The user will be > > inserting their own content into the browser widget. > > Then you could add in "onChange" of the editor an insert of > target="_blank". > So the links won't work in the widget but in browsers. > I use this in the free hhTextEdit-Full (to appear) that also does editing > like > the paid Froala. > May be similar to this (here written with jQuery), preserving > on-page-links: > > onChange: function(contents, $editable) { > $('a').each(function () { > if ($(this).attr('href').charAt(0) != '#') $(this).attr('target','_blank' > );}); > } > Yes, I am aware of how to cancel clicks using JavaScript. Remember that my original post stated that I was looking for a way to cancel navigation using a method other than JavaScript (which is the solution I?m currently using) :-) Ideally the browser widget would allow us to cancel navigation links using LCS. -- Trevor DeVore ScreenSteps www.screensteps.com From bleiler at buffalo.edu Fri Jan 5 11:21:16 2018 From: bleiler at buffalo.edu (Bleiler, Timothy) Date: Fri, 5 Jan 2018 16:21:16 +0000 Subject: The coming of SVG In-Reply-To: <2ac801c73a0d5fe1698197e0d0b29123@livecode.com> References: <9b4b2d74e230e7a8c83716d9447f7419@livecode.com> <1510154220809-0.post@n4.nabble.com> <1515164300379-0.post@n4.nabble.com> <2ac801c73a0d5fe1698197e0d0b29123@livecode.com> Message-ID: <62A9C4CF-30CF-4EA5-9E5D-528FD2728676@buffalo.edu> I?ve been testing this a little and I?ve run into some files that don?t render correctly. I?ve attached a simple example I found on the internet that contains this info about how it was created - Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0). When I tried to display this in the image control as described, I get just an outline of the drawing filled black. I?m using Mac OS with Livecode 9.0.0 (dp 11) Have I missed a critical part of the process or should this be filed as a bug? -------------- next part -------------- Tim Bleiler, Ph.D. Instructional Designer, HSIT University at Buffalo > On Jan 5, 2018, at 10:03 AM, Mark Waddingham via use-livecode wrote: > > On 2018-01-05 15:58, Dave Kilroy via use-livecode wrote: >> Hi - anyone got news on 'VectorIcon' or whatever it's going to be called? I >> was thinking it would arrive with LC (dp11) but it didn't > > It did - but not in widget form. > > There is a script library which compiles an SVG file into a metafile format called a 'drawing'. > > Then the image object has been prodded so you can set the text of an image to said metafile data and it will render the SVG represented by it. > > Take a look in the dictionary under drawingSvgCompile(). > >> When using Mark's external that he shared on LC Global I can get it working >> in the IDE but it's a no-show on an iOS device (amongst other errors I get >> "864,7,1 unable to load sag compiler") > > Yes - there was an issue with inclusions in extensions - that should be fixed in dp11. However, the support for rendering drawings is in the engine - so you only need to include the drawing SVG compiler library if you want to compile SVGs on the fly. > > Warmest Regards, > > Mark. > > -- > Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From hh at hyperhh.de Fri Jan 5 11:23:02 2018 From: hh at hyperhh.de (hh) Date: Fri, 5 Jan 2018 17:23:02 +0100 Subject: Cancel browser widget navigation? Message-ID: <0BD4C5EF-0715-4402-98D7-442AECEB3AB5@hyperhh.de> > Yes, I am aware of how to cancel clicks using JavaScript. Remember that my > original post stated that I was looking for a way to cancel navigation > using a method other than JavaScript (which is the solution I?m currently > using) :-) > > Ideally the browser widget would allow us to cancel navigation links using > LCS. Assuming you mean "block" with "cancel". The browser widget doesn't know anything about what you do in the editor. It has always the original htmltext you used for starting the editor. So, how should this work without using a lot of JavaScript (eventually changing libbrowser)? From bleiler at buffalo.edu Fri Jan 5 11:31:13 2018 From: bleiler at buffalo.edu (Bleiler, Timothy) Date: Fri, 5 Jan 2018 16:31:13 +0000 Subject: The coming of SVG In-Reply-To: <62A9C4CF-30CF-4EA5-9E5D-528FD2728676@buffalo.edu> References: <9b4b2d74e230e7a8c83716d9447f7419@livecode.com> <1510154220809-0.post@n4.nabble.com> <1515164300379-0.post@n4.nabble.com> <2ac801c73a0d5fe1698197e0d0b29123@livecode.com> <62A9C4CF-30CF-4EA5-9E5D-528FD2728676@buffalo.edu> Message-ID: <402DA94C-A977-4410-9EA0-077FC77075AD@buffalo.edu> Oops, I guess we can?t send attachments to the list. Here is a link to the file I tested. https://lovesvg.com/2018/01/cat-5169/ Tim Bleiler, Ph.D. Instructional Designer, HSIT University at Buffalo > On Jan 5, 2018, at 11:21 AM, Bleiler, Timothy via use-livecode wrote: > > I?ve been testing this a little and I?ve run into some files that don?t render correctly. > > I?ve attached a simple example I found on the internet that contains this info about how it was created - Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0). > > When I tried to display this in the image control as described, I get just an outline of the drawing filled black. I?m using Mac OS with Livecode 9.0.0 (dp 11) > > Have I missed a critical part of the process or should this be filed as a bug? > > > > > > > > Tim Bleiler, Ph.D. > Instructional Designer, HSIT > University at Buffalo > > > >> On Jan 5, 2018, at 10:03 AM, Mark Waddingham via use-livecode wrote: >> >> On 2018-01-05 15:58, Dave Kilroy via use-livecode wrote: >>> Hi - anyone got news on 'VectorIcon' or whatever it's going to be called? I >>> was thinking it would arrive with LC (dp11) but it didn't >> >> It did - but not in widget form. >> >> There is a script library which compiles an SVG file into a metafile format called a 'drawing'. >> >> Then the image object has been prodded so you can set the text of an image to said metafile data and it will render the SVG represented by it. >> >> Take a look in the dictionary under drawingSvgCompile(). >> >>> When using Mark's external that he shared on LC Global I can get it working >>> in the IDE but it's a no-show on an iOS device (amongst other errors I get >>> "864,7,1 unable to load sag compiler") >> >> Yes - there was an issue with inclusions in extensions - that should be fixed in dp11. However, the support for rendering drawings is in the engine - so you only need to include the drawing SVG compiler library if you want to compile SVGs on the fly. >> >> Warmest Regards, >> >> Mark. >> >> -- >> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/ >> LiveCode: Everyone can create apps >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode at lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > _______________________________________________ > use-livecode mailing list > use-livecode at lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode From dunbarx at aol.com Fri Jan 5 11:32:21 2018 From: dunbarx at aol.com (dunbarx) Date: Fri, 5 Jan 2018 09:32:21 -0700 (MST) Subject: Lower part of Script Editor (the one with variabels etc.) disappeared, how to get it back? In-Reply-To: <096E44D4-59F0-4896-884E-D2ABFFB81851@iotecdigital.com> References: <255393BD-DBBB-4BE4-9A17-AC7A7D130A41@major-k.de> <096E44D4-59F0-4896-884E-D2ABFFB81851@iotecdigital.com> Message-ID: <1515169941639-0.post@n4.nabble.com> Klaus is new at this. Be patient with him Craig -- Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html From lists at mangomultimedia.com Fri Jan 5 11:35:55 2018 From: lists at mangomultimedia.com (Trevor DeVore) Date: Fri, 5 Jan 2018 10:35:55 -0600 Subject: Cancel browser widget navigation? In-Reply-To: <0BD4C5EF-0715-4402-98D7-442AECEB3AB5@hyperhh.de> References: <0BD4C5EF-0715-4402-98D7-442AECEB3AB5@hyperhh.de> Message-ID: On Fri, Jan 5, 2018 at 10:23 AM, hh via use-livecode < use-livecode at lists.runrev.com> wrote: > The browser widget doesn't know anything about what you do in the editor. > It has always the original htmltext you used for starting the editor. > > So, how should this work without using a lot of JavaScript (eventually > changing libbrowser)? The same way that browserLoadRequest works for the iOS mobile browser. If you don?t pass the message then the url isn?t loaded. -- Trevor DeVore ScreenSteps www.screensteps.com From hh at hyperhh.de Fri Jan 5 11:45:26 2018 From: hh at hyperhh.de (hh) Date: Fri, 5 Jan 2018 17:45:26 +0100 Subject: Cancel browser widget navigation? Message-ID: <0C949F7A-31DB-47D7-B561-BE3F6FBFA4D0@hyperhh.de> > > So, how should this work without using a lot of JavaScript (eventually > > changing libbrowser)? > > The same way that browserLoadRequest works for the iOS mobile browser. If > you don?t pass the message then the url isn?t loaded. This works from a WYSIWYG editor? From mark at livecode.com Fri Jan 5 11:54:44 2018 From: mark at livecode.com (Mark Waddingham) Date: Fri, 05 Jan 2018 17:54:44 +0100 Subject: The coming of SVG In-Reply-To: <62A9C4CF-30CF-4EA5-9E5D-528FD2728676@buffalo.edu> References: <9b4b2d74e230e7a8c83716d9447f7419@livecode.com> <1510154220809-0.post@n4.nabble.com> <1515164300379-0.post@n4.nabble.com> <2ac801c73a0d5fe1698197e0d0b29123@livecode.com> <62A9C4CF-30CF-4EA5-9E5D-528FD2728676@buffalo.edu> Message-ID: <7a1300ee17880889bcf233fecda323c9@livecode.com> On 2018-01-05 17:21, Bleiler, Timothy via use-livecode wrote: > I?ve been testing this a little and I?ve run into some files that > don?t render correctly. > > I?ve attached a simple example I found on the internet that contains > this info about how it was created - Generator: Adobe Illustrator > 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0). > > When I tried to display this in the image control as described, I get > just an outline of the drawing filled black. I?m using Mac OS with > Livecode 9.0.0 (dp 11) > > Have I missed a critical part of the process or should this be filed as > a bug? Please do file a bug with the SVG attached as an example. In this case, it isn't working correctly because that SVG uses a