Re: Interface Resolution
Never mind, I got the plugin to appear in the list in the plugins dialogue window. I selected it, set it to "LiveCode starts up" and "Invisible". Quit the IDE and restarted it. Nothing happens. Typing each command into the message box affects things though. I can kind of work with doing that while I try to find out the connection between the OS interface settings and Livecode reading them (if it does). One big issue still is the text on the drop down menus remains the same size. If anyone happens to know which file controls that I would be glad to hear the details. At some point I may scale each one of them one at a time until I discover what it is, if any. Maybe the font size is not even controlled by a stack script. Thanks for the help all that posted. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Interface Resolution
Ralph, thank for for the specific instructions. Thanks to the others and poking around I knew some of that, but the extra info was stuff I needed to know. Unfortunately, the script does not appear in the list of plugins in the Plugin Settings dialogue. Did basic things like double check the directory, quit and restarted the Livecode IDE, etc. Will keep following around with it, but if anyone has a theory off the top of their head for the lack of the plugin showing up I would like to hear it. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: The iOS "Files" folder
Using iCloud shouldn’t require internet access for the app as it is designed to work offline and sync when the network is available. My comment was aimed at the need to have data retained separately from the app. Sent from my iPhone > On Oct 15, 2020, at 3:51 PM, Graham Samuel via use-livecode > wrote: > > Believe it or not, there is a class of apps that doesn’t need to use the > internet. I’m thinking for example of apps meant to be used on a device such > as a phone while it’s in motion or on a journey. Internet access isn’t > guaranteed in many parts of the world. Although smart phones do have to make > contact with the internet for many tasks, that imperative shouldn’t force one > to include internet access in an app that has no other need for it. It’s that > notion that made me want to break out of the sandbox locally, to allow local > apps access to local data. > > Just my two overpriced eurocents. > > Graham > [sorry if I sent this twice, but the first try seems to have got lost] > >> On 14 Oct 2020, at 16:24, Brian Milby via use-livecode >> wrote: >> >> Apple has already provided a way forward for this. Their current best >> practice is for apps to store files in their Documents folder in iCloud. >> This provides seamless access between multiple devices and data security >> since it is not tied to the app remaining installed. >> >> I briefly looked at the dev docs on this and it does take some work to >> integrate. The most complicated piece will be detecting and resolving >> conflicts. I think it would be a good feature request just not sure how to >> do the conflict resolution piece. The mechanics of putting and getting a >> file are not that bad. >> >> Sent from my iPhone >> On Oct 13, 2020, at 8:42 PM, John Balgenorth via use-livecode wrote: >>> >>> One my iPad I have everything turned on for iCloud and I am >>> sure everything is backed up with my backup file. I do not >>> see all of my individual files when I access icloud except for >>> ones I added through a different means than the application. >>> >>> The issue of apps becoming outdated and any files being >>> locked in with the app is serious to me. Not a big issue to >>> solve if Apple wants to. >>> >>> JB >>> On Oct 13, 2020, at 8:24 AM, Bob Sneidar via use-livecode wrote: I’ll have to take issue with that one. If your device is set to sync to the cloud, your notes will be preserver. There’s no unlikely about it. The only way they would not sync is if you had sync turned off for notes. In that case it is not only likely but certain you will lose any new data since sync was disabled. If it did not work this way, iCould would die a quick and horrible death. Bob S On Oct 12, 2020, at 3:09 PM, John Balgenorth via use-livecode mailto:use-livecode@lists.runrev.com>> wrote: Most likely it will not be saved to the icloud independently so the files you have for that app even though they exist with the app on your icloud backup will be deleted with the app. ___ use-livecode mailing list use-livecode@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@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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: The iOS "Files" folder
Believe it or not, there is a class of apps that doesn’t need to use the internet. I’m thinking for example of apps meant to be used on a device such as a phone while it’s in motion or on a journey. Internet access isn’t guaranteed in many parts of the world. Although smart phones do have to make contact with the internet for many tasks, that imperative shouldn’t force one to include internet access in an app that has no other need for it. It’s that notion that made me want to break out of the sandbox locally, to allow local apps access to local data. Just my two overpriced eurocents. Graham [sorry if I sent this twice, but the first try seems to have got lost] > On 14 Oct 2020, at 16:24, Brian Milby via use-livecode > wrote: > > Apple has already provided a way forward for this. Their current best > practice is for apps to store files in their Documents folder in iCloud. > This provides seamless access between multiple devices and data security > since it is not tied to the app remaining installed. > > I briefly looked at the dev docs on this and it does take some work to > integrate. The most complicated piece will be detecting and resolving > conflicts. I think it would be a good feature request just not sure how to > do the conflict resolution piece. The mechanics of putting and getting a > file are not that bad. > > Sent from my iPhone > >> On Oct 13, 2020, at 8:42 PM, John Balgenorth via use-livecode >> wrote: >> >> One my iPad I have everything turned on for iCloud and I am >> sure everything is backed up with my backup file. I do not >> see all of my individual files when I access icloud except for >> ones I added through a different means than the application. >> >> The issue of apps becoming outdated and any files being >> locked in with the app is serious to me. Not a big issue to >> solve if Apple wants to. >> >> JB >> >>> On Oct 13, 2020, at 8:24 AM, Bob Sneidar via use-livecode >>> wrote: >>> >>> I’ll have to take issue with that one. If your device is set to sync to >>> the cloud, your notes will be preserver. There’s no unlikely about it. The >>> only way they would not sync is if you had sync turned off for notes. In >>> that case it is not only likely but certain you will lose any new data >>> since sync was disabled. >>> >>> If it did not work this way, iCould would die a quick and horrible death. >>> >>> Bob S >>> >>> >>> On Oct 12, 2020, at 3:09 PM, John Balgenorth via use-livecode >>> mailto:use-livecode@lists.runrev.com>> wrote: >>> >>> Most likely it will not be saved to the >>> icloud independently so the files you have for that app even >>> though they exist with the app on your icloud backup will be >>> deleted with the app. >>> >>> ___ >>> use-livecode mailing list >>> use-livecode@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@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@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Datagrid question - variable row templates
It’s been a while since I used data grids - so I’m wondering if there are any new aspects / tricks here that I’m missing. Requirements I need a data grid like object to display json data / an array, in which each item has a type. So type image or type text etc. Each type should be displayed by a different equivalent of a row template. As far as I know the data grid can’t really do this. I’ve hacked it before by creating a row template that has the ability to transfer itself - but this is quite a hack and I expect will be too slow for mobile. Solutions sought? My thought is that I have to create my. Own. Custom datagrid like group - which is naturally quite a lot of work. Any suggestions? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Is this a bug?
Oooh thanks! Fun. Fact. I’ve been living with this bug for a few years - which is why I didn’t try deleting the prefs. On 14 Oct 2020, 09:23 +0100, How to use LiveCode , wrote: > > /Users//Library/Preferences/RunRev/livecode.rev > /Users//Library/Preferences/RunRev/livecode7.rev > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Interface Resolution
Put the commands you want to run in the preopen handler of your plug-in stack. Save the stack Close LC Put the stack into you're "My LiveCode/Plugins" folder. The location of this folder can be found in LC preferences in the "Files and Memory" section. Reopen LC Go to the Development==>Plugins and select(at the bottom) "Plugin Settings" Select your Plugin from the dropdown list In the "Open Plugin when:" section select "LiveCode starts up" In the "Open as" section select "Invisible" Restart LC and you should be good to go. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of John McKenzie via use-livecode Sent: Thursday, October 15, 2020 12:53 PM To: use-livecode@lists.runrev.com Cc: John McKenzie Subject: Re: Interface Resolution I felt up to trying one of the suggested workarounds for my interface scaling issue, specifically making a script to run as a plug-in. The plugin in does not appear on the plugins menu and I do not know what I did wrong. The link to creating plugins was helpful, but lacked specifics. Do I need to do something special to make it a plug-in? Such as having a shebang statement or a special command at the top declaring it a plug-in? Do it have to have a specific naming format? Should it begin or end with "rev" for example? I called it "intefaceScaling.livecode". Perhaps that was wrong to do. Looking at existing ones as examples I did not get the impression that was so. When I ran the command "put the stacks" it outputted the following. /opt/livecode/livecodecommunity-9.6.0.x86_64/Toolset/palettes/tools/revtools .livecodescript /opt/livecode/livecodecommunity-9.6.0.x86_64/Toolset/palettes/message box/revmessagebox.8.rev /opt/livecode/livecodecommunity-9.6.0.x86_64/Toolset/palettes/menubar/revmen ubar.livecodescript Do I need absolute filenames in my script? Do I need anything else in the script that makes up my plugin? Currently all I know to type is the following. set the scalefactor of stack "revtools" to 2 set the scalefactor of stack "revmessagebox.8" to 2 set the scalefactor of stack "revmenubar" to 2 Surely I need more than that. Sorry for my ignorance of what should be easy. ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Interface Resolution
I felt up to trying one of the suggested workarounds for my interface scaling issue, specifically making a script to run as a plug-in. The plugin in does not appear on the plugins menu and I do not know what I did wrong. The link to creating plugins was helpful, but lacked specifics. Do I need to do something special to make it a plug-in? Such as having a shebang statement or a special command at the top declaring it a plug-in? Do it have to have a specific naming format? Should it begin or end with "rev" for example? I called it "intefaceScaling.livecode". Perhaps that was wrong to do. Looking at existing ones as examples I did not get the impression that was so. When I ran the command "put the stacks" it outputted the following. /opt/livecode/livecodecommunity-9.6.0.x86_64/Toolset/palettes/tools/revtools.livecodescript /opt/livecode/livecodecommunity-9.6.0.x86_64/Toolset/palettes/message box/revmessagebox.8.rev /opt/livecode/livecodecommunity-9.6.0.x86_64/Toolset/palettes/menubar/revmenubar.livecodescript Do I need absolute filenames in my script? Do I need anything else in the script that makes up my plugin? Currently all I know to type is the following. set the scalefactor of stack "revtools" to 2 set the scalefactor of stack "revmessagebox.8" to 2 set the scalefactor of stack "revmenubar" to 2 Surely I need more than that. Sorry for my ignorance of what should be easy. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Livecode server UNIX version (not Linux).
Dear all, I have a question. It's not a very important question and I don’t want to bother you y 'all, so if you think is off-topic, feel free to not to respond, I'm just curious. I've been working with Livecode for almost five years, and I never saw a LiveCode server "UNIX" version. The LiveCode Wikipedia’s article says this: LiveCode runs on iOS, Android, OS X, Windows 95 through Windows 10, Raspberry Pi and "several variations of Unix (I think is just means Linux)". I'm thinking about tinkering with a FreeBSD server and LiveCode server, but I didn't see a "UNIX" version, so I suppose that I have to compile it. Have any of you installed LiveCode server on FreeBSD (or Solaris)? I'm just thinking, but maybe there's a small niche working with LiveCode server on BSD or Solaris (still many companies use them and not many people develop software for this platforms nowadays). We have a few companies in Spain (my country) still using Solaris or BSD servers (mainly in the Graphic arts business). PS, I currently work with LiveCode Server on Centos, but it could be interesting to test it in FreeBSD. Best regards/ Saludos cordiales/ Cordialement Heriberto Torrado Chief Technology Officer (CTO) Director de informática Directeur informatique https://networkdreams.net ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Interface Resolution
Peter, thank you for those suggestions I will try them once my treatment is done tomorrow. Richard, I am using Kubunutu and KDE for some reason does not get every app when using its interface scaling setting. It gets almost all of them, but does not affect a few. It may be these apps are doing something wrong that the Livecode IDE does as well, but it is also possible it is a bug in KDE settings that only affects a handful of apps so it goes less noticed than it should be. So what I am saying is I will have to investigate more to see if it is the OS or the IDE that has a bug with scaling interfaces. A work around is good for now, but in general, yes, I should have something (in the OS or app) that just does it for the long term and that is worth investigating. BTW, I have greatly delayed working on the project that I thought Livecode could do well and brought me to it, mostly do to changes at work and health problems. This issue with the new monitor came up when I showed my brother the Livecode IDE and tell him about the platform. "Like Hypercard" really sucked him in, too. He was very interested and I may have gotten someone to try it out. Do not even have my own main app done and I recruited someone to try the platform. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Fun with the templateimage
This works: export snapshot from rect tRect of window tWinID at size tDim1,tDim2 to file tFile as GIF I saw a report in the forum saying that this scaled incorrectly if the snapshot was of a text field, but in my tests this was not a problem. On Thu, Oct 15, 2020 at 11:34 AM Bernard Devlin wrote: > Richard, just FYI > > The dictionary (LC 9.5.1) does say that "export snapshot ... at size > x,x..." is supported since version 6.0, but I can't get it to change the > size of the exported image. I'll add a note here if I get it to work. > > On Thu, Oct 31, 2019 at 4:38 PM Richard Gaskin via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> The "import snapshot" command had an "at size" option added several >> versions ago to facilitate some scaling tasks: >> >> import snapshot from the selectedObject at size 100,100 >> >> But oddly, no such option has been added to the "export snapshot" command. >> >> -- >> Richard Gaskin >> Fourth World Systems >> >> >> ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Fun with the templateimage
Richard, just FYI The dictionary (LC 9.5.1) does say that "export snapshot ... at size x,x..." is supported since version 6.0, but I can't get it to change the size of the exported image. I'll add a note here if I get it to work. On Thu, Oct 31, 2019 at 4:38 PM Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > The "import snapshot" command had an "at size" option added several > versions ago to facilitate some scaling tasks: > > import snapshot from the selectedObject at size 100,100 > > But oddly, no such option has been added to the "export snapshot" command. > > -- > Richard Gaskin > Fourth World Systems > > > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Interface Resolution
These workarounds are great for helping John get back to work right away, but if the IDE isn't respecting Windows' resolution that would be a bug and I hope someone's reported it. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Interface Resolution
Hi John, I haven’t done this myself, but I suppose you could create a Livecode plugin that runs the needed code: https://livecode.fandom.com/wiki/Creating_a_livecode_plugin which is basically a LC stack that lives in your local plugins folder. Under the IDE Development menu are plugin settings, which includes an option, “Open plugin when: ‘LiveCode starts up.’” The plugin stack would have an openStack handler that calls the sizing handler. Or, you could have a script internal to your project that checks the environment property so it runs only when in the IDE. You might want to have a failsafe in case you have to run LC on a smaller monitor that would check the size of the monitor—the screenRect property—then size down the IDE elements appropriately. Peter > On Oct 14, 2020, at 10:09 PM, John McKenzie via use-livecode > wrote: > > > Peter, thank you for the information about changing the scale of the > IDE user interface. > > You mentioned that if I put a script somewhere to affect the IDE > stacks that it should work. I looked up the IDE stacks as per your > directions. Thanks for those. > > I do not know where a good somewhere to put such a script would be. Is > there a directory that gets its scripts execute upon running the IDE? > Or can I put it anywhere and take other action to have it run with the > IDE startup? > > Thanks. > > ___ > use-livecode mailing list > use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Textsize of label of copied btn changes
William Prothero wrote: > After the button is copied to the destination card, I do: > > set the textsize of btnRef to the textsize of srcBtnRef > the contents of btnRef is: > > btn "doNext2" of card "WhatsTheMystery-2" of stack "/Users/AfilePath > /PlateTectonics.livecode" > > srcBtnRef is pretty much the same thing with the card that holds the > object library. > > It has no effect. But then, I’ve been known to screw up these > references, but since the copy works, I think it’s ok. > > What’s odd, is that it seems to be picking up the fontsize of some of > the other fields on the destination card. So, for now, I’ve given up > and use a field for a button, which I like better anyway. I’ll look at > this again to see if I made a stupid mistake. No need to give up and use an object type you didn't want. This is an opportunity to analyze so we can find the right solution. Given that assigning the textFont of the new button to that of the old one has no effect, I'd wager that if you examined the textFont of the original you'd find it's not been assigned. And we see that font settings for various objects look one way on one card and different on a different card. This suggests the card the original button is on has a textFont set, and setting the textFont of the new card to match will give you a matching appearance for controls. Or perhaps simpler, if you want all cards in the stack to have the same default textFont and textSize, you can set those properties in the stack, clear those for each card, and then you have consistency throughout the controls in your stack. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Standalone failures
Hello Michael, You do not need Xcode for this, but you do need the command line tools. Try typing this in a Terminal: sudo xcode-select --install This will install/update the missing command line tools. Hope this helps. Kind regards, Panos -- On Thu, 15 Oct 2020 at 02:01, Michael Lew via use-livecode < use-livecode@lists.runrev.com> wrote: > I'm trying to build standalones from 9.6.1 business and cannot get the Mac > version to succeed. The process goes through the normal lot of "saving" and > "building" bits but it eventually turns up an alert that says > > "There was an error while saving the standalone application > Adding the ad-hoc signature failed with error: [path]: replacing existing > signature > xcrun error: Invalid developer path (/Library/Developer/CommandLineTools), > missing xcrun at: [path]: the codesign_allocate helper tool cannot be found > or used > In subcomponent: [path]/tsNet.bundle" > > The same thing happens after I turned off the automatic inclusions option > and selected no inclusions. > > (Windows standalones build fine.) > > Do I need to have XCode installed to build a Mac standalone nowadays, or > is there some other problem with my Mac (Mojave 10.14.6)? > > Michael Lew > > ___ > use-livecode mailing list > use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode