Re: Which Livecode/Xcode/macOS/iOS version

2023-07-25 Thread Paul Hibbert via use-livecode
Or, click on” Resources" in the main Nav menu then scroll down to “Support" and 
there’s your FAQ button!

Simples! :-)

Paul

> On Jul 25, 2023, at 9:14 AM, Mark Wieder via use-livecode 
>  wrote:
> 
> On 7/25/23 03:55, Heather Laine via use-livecode wrote:
>> https://livecode.com/resources/support/ask-a-question/ 
>> 
>> Top FAQ.
> 
> There's a FAQ?
> Why isn't there a link to it on the main web page?
> This really should be easier to get to for prospective users
> (aka customers. subscribers).
> 
> Apparently the only way to get there from the main page is
> 
> Scroll to the bottom
> Find the Resources link
> Click on Support (!)
> Scroll down to the Support section
> Find FAQ
> Click the button
> 
> It's down there just above the link to the April 2022 Live Conference.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.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


___
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: Solved: Writing to Mac Application Support folder

2023-07-11 Thread Paul Hibbert via use-livecode
Thank you for sharing.

That’s a very useful snippet to save for the future.

Paul

> On Jul 10, 2023, at 1:11 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> After innumerable tests and failures I've figured out how to read/write to 
> the Application Support folder on newer versions of MacOS X. Manually setting 
> permissions in System Settings didn't work for my tester, and Ventura never 
> did ask him to allow file access, so he was stuck.
> 
> In case anyone else needs to do this, here is what worked for distribution 
> outside the Mac App Store.
> 
> 1. The app must be signed and notarized. I thank Matthias every day for his 
> mrSignNotarizeHelper. The app does not need to be sandboxed.
> 
> 2. Apps can automatically read from and write to their own container. My 
> problem was not knowing where the container was.
> 
> 3. The path to the container is in ~/Library/Containers//
> 
> We don't have a specialFolderPath for that, so here's how I did it:
> 
>   put specialFolderPath("support") into tContainer
>   set the itemdel to slash
>   put "Containers/your.bundle.id/" into last item of tContainer
>   if there is no folder tContainer then
> create folder tContainer
> if the result <> empty then log "Create container:" && the result
>   end if
>   put tContainer & "yourFileName.ext" into tPath
> 
> This appears to work on any version of MacOS X so far, though I haven't yet 
> heard from a tester on Mojave.
> 
> Note: in the past I could just write a file into the Preferences or the App 
> Support folder and it worked. Now I can't. You need the app container.
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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



Paul
p...@livecode.org

macOS Mojave 10.14




___
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: Sort Ascending DateTime - failure

2022-09-11 Thread Paul Hibbert via use-livecode
Should have waited to send this, on further investigation, I found the 
useSystemDate property, now all is well. Sorry for the noise!

> On 11Sep, 2022, at 8:29 PM, Paul Hibbert via use-livecode 
>  wrote:
> 
> While playing around with the PolyGrid, I wanted to try adding sorting 
> options by clicking the PolyGrid Header Labels. The solution I came up with 
> drove me nuts until I discovered that there appears to be an issue associated 
> with the sort command and dateTime.
> 
> According to the dictionary, text can be sorted by dateTime, and the entry 
> for dateTime states…
> 
> "The dateTime keyword recognizes all LiveCode's date and time formats and 
> sorts them in time order, rather than alphabetical or numeric order."
> 
> Date Formats:
> 
> the [{ long | abbreviated | short }] [{ english | system }] date
> 
> …So I was expecting to be able to sort the PolyGrid by the dates as entered, 
> because they are set to the same format as the system date on my Mac, 
> however, sorting by dateTime fails (on my Mac) when the system is set to use 
> dashes as date separators. e.g.: 11-09-2022, it works fine with any other 
> format. e.g.: 11/09/2022
> 
> I know that I can work around this fairly easily, but I see this as a bug. 
> Before I report it, I figured it would be best to ask here if anyone else has 
> come across this, or am I missing something? Seems like this should have been 
> caught a long time ago.
> 
> macOS Monterey
> Version 12.5.1
> LiveCode 9.6.8 & 10.0.0 (dp 4)
> 
> Paul
> ___
> 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


Sort Ascending DateTime - failure

2022-09-11 Thread Paul Hibbert via use-livecode
While playing around with the PolyGrid, I wanted to try adding sorting options 
by clicking the PolyGrid Header Labels. The solution I came up with drove me 
nuts until I discovered that there appears to be an issue associated with the 
sort command and dateTime.

According to the dictionary, text can be sorted by dateTime, and the entry for 
dateTime states…

"The dateTime keyword recognizes all LiveCode's date and time formats and sorts 
them in time order, rather than alphabetical or numeric order."

Date Formats:

the [{ long | abbreviated | short }] [{ english | system }] date

…So I was expecting to be able to sort the PolyGrid by the dates as entered, 
because they are set to the same format as the system date on my Mac, however, 
sorting by dateTime fails (on my Mac) when the system is set to use dashes as 
date separators. e.g.: 11-09-2022, it works fine with any other format. e.g.: 
11/09/2022

I know that I can work around this fairly easily, but I see this as a bug. 
Before I report it, I figured it would be best to ask here if anyone else has 
come across this, or am I missing something? Seems like this should have been 
caught a long time ago.

macOS Monterey
Version 12.5.1
LiveCode 9.6.8 & 10.0.0 (dp 4)

Paul
___
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: bordercolor of buttons

2021-06-08 Thread Paul Hibbert via use-livecode
Like Sean points out, this is caused by the “threeD” property being on.

I don’t think it’s a bug, it’s just the nature of the beast, I seem to remember 
that the threeD effect is generated by pre-made graphics or images, although I 
may be totally wrong. It would be useful if this kind of info was in the 
dictionary, then we wouldn’t be forced to rely on ageing grey matter quite so 
much.

Anyway, the way I have managed to overcome this in the past is to use an Inner 
Glow effect set to 1 or 2 pixels. You can also add a 1px Outer Glow for a more 
intense colour effect. You have to be aware that it is adding colour to grey, 
so it’s not perfect, but it does allow you to use some colour on the border of 
a standard button while keeping the rounded corners and threeD effect. 

I totally agree that setting the "Border Color" Property would be much easier 
though.

Pau

> On 7Jun, 2021, at 7:53 AM, ELS Prothero via use-livecode 
>  wrote:
> 
> Folks,
> This issue also confused me recently when I was making an app for my own use. 
> It seems like an idiosyncrasy to me, even tho a pretty minor one that could 
> be mentioned in the dictionary.
> Best,
> Bill
> 
> William Prothero
> https://earthlearningsolutions.org
> 
>> On Jun 7, 2021, at 7:30 AM, Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi Sean,
>> 
>>> Am 06.06.2021 um 23:40 schrieb Sean Cole (Pi) via use-livecode 
>>> :
>>> 
>>> Klaus,
>>> Forecolor IS the border color. It always has been for shapes including
>>> circles, polygons and custom shapes.
>> 
>> yes, but I was clearly referring to a button.
>> 
>>> Buttons have a bordercolor property but only visible if 3d is off.
>> 
>> AND if they are not "roundrect"!
>> Then the BORDERCOLOR does nto work!
>> It does if you switch to e.g. "rectangle".
>> 
>> And that was puzzling me a bit. 8-)
>> 
>>> Sean
>>> 
 On Sun, 6 Jun 2021 at 14:20, Klaus major-k via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
 Hi friends,
 
 bug or feature?
 
 I have a "roundrect" button and cannot set its BORDERCOLOR!?
 I have to set the FOREGROUNDCOLOR which also affects its BORDERCOLOR.
 
 This is not the case if I set the buttons type to e.g. "rectangle", then
 the before
 set BORDERCOLOR will be displayed.
 
 No hint in the dictionary about this, so but or feature? :-)
>> 
>> Best
>> 
>> Klaus
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> https://www.major-k.de/bass
>> kl...@major-k.de
>> 
>> 
>> ___
>> 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: 9.6.0 simulator issue

2021-05-08 Thread Paul Hibbert via use-livecode
The process I use:

One time process for each Xcode version/update:
Launch Xcode > Open the Simulator(s) that I want to use.
Add the Simulator app(s) to the dock — Right Click on the Simulator Icon in the 
Dock while it’s open and choose “Keep in dock”.
Quit Xcode.

From then on, whenever I’m working on an iOS app, I launch the simulator from 
the dock and wait until it fully loads before testing from LC, no need to 
launch Xcode and no messages from LC saying the simulator is taking too long to 
load. It’s still not a quick process until the simulator is open, but it does 
seem more reliable to me.

When you update to the next version of Xcode, it is necessary to clean out the 
old simulators from the dock and make new Dock entries, but that’s not too much 
hassle in comparison to the time saving.

Paul


> On 8May, 2021, at 5:45 AM, Mark Smith via use-livecode 
>  wrote:
> 
> In order,
> 
> Re-started Xcode, invoked the Simulator
> Waited for the simulator to boot
> Re-loaded LC, loaded my app
> Pressed the test button. 
> 
> That is being really rigorous about it, but sometimes I have found if that 
> the sequence is messed up in some way you’ll see the C++ exception error. 
> That’s when I do the above and so far (knock on wood) it has always got 
> things going again. 
> 
>> On May 7, 2021, at 7:41 PM, Mike Kerner via use-livecode 
>>  wrote:
>> 
>> what do you mean - reloaded as in reinstalled xcode or just restarted LC?
>> 
>> On Fri, May 7, 2021 at 2:39 PM Mark Smith via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Hi Mike,
>>> 
>>> I have seen this problem as well, rebooted, reloaded everything and it
>>> worked. You might want to try that. Simulator first, then load the app and
>>> try the Test button.
>>> 
>>> Mark
>>> 
 On May 7, 2021, at 7:28 PM, Mike Kerner via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
 
 Since 9.6.2 is giving me issues, I decided to try the simulator in 9.6.0.
 That is giving me
 "Unable to start simulator: 634,0,0,unknown
 C++ exception
 573,263,1,revPhoneSetSimulatorSDK"
 
 --
 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@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
>>> 
>> 
>> 
>> -- 
>> 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@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: how do I get geoLocation on a Mac?

2021-03-01 Thread Paul Hibbert via use-livecode
I’m no Javascript expert, so I can’t answer the question about the error, but 
my best guess is that code needs to be run within a browser. 

However, considering that you need to be connected to the internet to access 
your geolocation on desktop, if you sign up for a free API with 
https://ipgeolocation.io (for unto 30K non commercial Requests Per Month), then 
it’s pretty easy to parse the Lat/Long from the returned data with a couple of 
lines of of simple code, e.g.

   put url(https://api.ipgeolocation.io/ipgeo?apiKey=) into tResult 
-- Replace  with your unique key

   put item 12 of tResult && item 13 of tResult into tGeoLocation

The result = "latitude":"50.12345" "longitude":"-125.67890”

It’s not quite as accurate as GPS, but it’s close, plus you have the advantage 
of lots more data returned should you need it and no messing with Javascript.

Paul



> On 1Mar, 2021, at 10:34 AM, kee nethery via use-livecode 
>  wrote:
> 
> How do I get latitude & longitude within a macOS LiveCode script?
> 
> ———   
> 
> I know iOS has a way to tell you latitude & longitude. It appears that 
> capability is not available on macOS.
> 
> I know that macOS browsers, with WiFi on and connected, can determine 
> lat/long with a javascript command. At this URL:
>   https://www.w3schools.com/html/html5_geolocation.asp
> I found this example:
> 
> 
> var x = document.getElementById("demo");
> function getLocation() {
>  if (navigator.geolocation) {
>navigator.geolocation.getCurrentPosition(showPosition);
>  } else {
>x.innerHTML = "Geolocation is not supported by this browser.";
>  }
> }
> 
> function showPosition(position) {
>  x.innerHTML = "Latitude: " + position.coords.latitude + 
>  "
Longitude: " + position.coords.longitude; > } > > > > I know that macOS can: > do

Re: LC, Mac Mail & Rules

2021-02-24 Thread Paul Hibbert via use-livecode
I know this is moving away from LC, but you can use a simple AppleScript to to 
do this, then trigger the AppleScript from Mail rules, or run as a standalone 
app, or you could trigger the AppleScript from LC if that’s what you need.

I’m no AppleScript expert, I just did a bit of searching and found a script 
that could be easily modified, anyway, this is the script I tested and it seems 
to do what you asked. It could probably be improved, if anyone understands AS 
better please step in.



set toAddress to "myemailaddr...@mail.com"
set toName to "My Name"
set toSubject to "Something Cool"

tell application "Mail"
repeat with _acct in imap accounts
--Look For Messages in the INBOX with the subject set in 
toSubject 
set _acct_name to name of _acct
set _inbox to _acct's mailbox "INBOX"
set _msgs_to_capture to (a reference to ¬
(every message of _inbox ¬
whose subject is toSubject))

repeat with _msg in _msgs_to_capture
set _fwdmsg to forward _msg with opening window

tell _fwdmsg
make new to recipient at end of ¬
to recipients with properties 
{name:toName, address:toAddress}
end tell

activate

send _fwdmsg
end repeat
end repeat
end tell



To compile this code, open Utilities > Script Editor, create a new script and 
paste the code in, make the changes you need to lines 1, 2 and 3 and save the 
script as an application in the User > Library > Application Scripts > 
com.apple.mail folder, then it will be available in the Apple Mail Rules.

Paul

> On 24Feb, 2021, at 8:29 AM, Rick Harrison via use-livecode 
>  wrote:
> 
> Hi Matthias,
> 
> Ok, so Mojave is good and macOS Mail in Catalina is the problem.
> 
> I don’t know if we can come up with an LC solution work around
> for this problem, or if I need to be looking at some other email
> client software.  Is anyone using Thunderbird or another
> program that has Rules or Filter auto-respond capability
> that might work?
> 
> Your thoughts and suggestions?
> 
> Thanks,
> 
> Rick
> 
>> On Feb 24, 2021, at 11:23 AM, matthias rebbe via use-livecode 
>>  wrote:
>> 
>> Hi Rick,
>> 
>> i mixed the version numbers. I tested with 15.3 which is Catalina. There it 
>> shows also the behaviour.
>> In Mojave the subjects is not changed and keeps the original value.
>> 
>> Please excuse the confusion.
>> 
> 
> 
> ___
> 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: Which Monitor to Open LC In

2021-02-23 Thread Paul Hibbert via use-livecode
Sorry, I should have explained more, but I answered just before shutting my Mac 
down for the night. I’m still on Catalina (10.15.7), but this type of control 
doesn’t usually change too much if it’s still there.

To check Spaces, go to System Preferences, open Mission Control and check which 
shortcut is assigned to "Show Deskto"p, it’s usually F3 by default. I prefer 
“Group windows by application” to be off, but that’s just my choice.

Now press the F3 key to open the Spaces view (depending on your keyboard 
settings, you may need to press both the fn key and F3 to access Spaces). If 
you haven’t set any extra desktops before you will see “Desktop 1” for the main 
monitor and “Desktop 2” for the secondary monitor at the tops of the screens. 
Now move the mouse pointer to the grey bar at the top and you should see a “+” 
appear at the right hand side, click on the “+” to add a third Desktop, you 
don’t have to use this, but it will allow you to assign apps to specific 
desktop views. Close the view by clicking on any of the open windows or press 
F3 again.

Now you can right click on the Dock Icon for LC and choose the option to assign 
it to "Desktop on Display 1”, or whichever you prefer.

If you wish to remove any extra Desktops, press F3 then place the mouse pointer 
over a Desktop thumbnail in the top bar and a circle with an X will appear, 
click on that to remove the Desktop. Once you have removed any excess Desktops 
and you are down to Desktop 1 and 2, you will lose the option to assign 
applications to a particular display, I’m not sure what the logic of this is, 
but that’s how it goes.

HTH

Paul

> On 22Feb, 2021, at 9:52 PM, Roger Guay via use-livecode 
>  wrote:
> 
> Hmmm, I don’t have that option!?? I’m using LC 9.6.1 in OS 11.2 What is your 
> config?
> 
> Thanks Paul!
> 
> Roger
> 
>> On Feb 22, 2021, at 8:48 PM, Paul Hibbert via use-livecode 
>>  wrote:
>> 
>> Right-click (ctrl-click) on the LC icon in the dock and choose “Options” 
>> then select “Assign to Desktop on Display 1”, should do it.
>> 
>> Paul
>> 
>>> On 22Feb, 2021, at 7:47 PM, Roger Guay via use-livecode 
>>>  wrote:
>>> 
>>> I have a MBP with an external monitor. Does anybody know how to force LC to 
>>> open on the internal display and not the external? It suddenly switched on 
>>> me and I can’t figure out why or how to control it. BTW, the external 
>>> monitor is arranged to be above the MBP display.
>>> 
>>> Thanks,
>>> Roger
>>> ___
>>> 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: Which Monitor to Open LC In

2021-02-22 Thread Paul Hibbert via use-livecode
Right-click (ctrl-click) on the LC icon in the dock and choose “Options” then 
select “Assign to Desktop on Display 1”, should do it.

Paul

> On 22Feb, 2021, at 7:47 PM, Roger Guay via use-livecode 
>  wrote:
> 
> I have a MBP with an external monitor. Does anybody know how to force LC to 
> open on the internal display and not the external? It suddenly switched on me 
> and I can’t figure out why or how to control it. BTW, the external monitor is 
> arranged to be above the MBP display.
> 
> Thanks,
> Roger
> ___
> 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: scrollbar question

2021-02-19 Thread Paul Hibbert via use-livecode
You have probably figured this out by now, but I just tried this on 
LC9.6.2(rc2) on a Mac plus Windows and setting both the lineInc and the pageInc 
to zero stops the user from changing the thumbPosition when clicking on the bar 
of the scrollbar, but doesn’t affect the dragging of the thumb.

I also agree with Tom, scrollbars are pretty easy to build and customise to 
suit your own requirements, one advantage is the user will have the same 
experience on Mac and Win if that’s something you need/want.

Paul

> On 19Feb, 2021, at 9:49 AM, jbv via use-livecode 
>  wrote:
> 
> Hi lust,
> 
> How can I prevent the thumb of a scrollbar to move when user
> clicks on the scrollbar, but not on the thumb, when it's set
> as a slider ?
> I tried to trap scrollbarLineDec and scrollbarLineInc, and
> also to set the lineincrement to 0, but to no avail.
> What am I missing ?
> Thanks in advance.
> 
> jbv
> 
> ___
> 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: disabling a group

2021-01-13 Thread Paul Hibbert via use-livecode
I have just used setProp in a behaviour button that was assigned to several 
groups made up of two graphic controls to represent a toggle switch. By setting 
one custom property the whole appearance of the group can easily be changed. I 
predefined the colours for each state in more custom properties, I’m sure this 
could be adapted to suit your case.

Rather than explain everything in detail here, I have uploaded a stripped down 
stack to dropbox which I’m sure you could easily modify the behaviour script to 
change the appearance of your graphics in a similar way. If you need any more 
explanation, just ask, but I’m sure you will get the idea.

Dropbox Link; 
https://www.dropbox.com/s/misiog5bwathpgy/Toggle%20Switch.livecode?dl=0

Paul

> On 13Jan, 2021, at 1:04 PM, jbv via use-livecode 
>  wrote:
> 
> Le 2021-01-13 15:34, Mark Wieder via use-livecode a écrit :
>> On 1/13/21 11:32 AM, jbv via use-livecode wrote:
>>> Hi list,
>>> I have a group that contains various controls, including graphic objects.
>>> When I disable the group, the colors of every object becomes lighter,
>>> except for graphics whose colors remain the same.
>>> What is the best way to make colors of graphics become lighter when the
>>> group is disabled ?
>>> I tried blending, but then the portions of other controls underneath the
>>> graphic become visible...
>> A thought:
>> You might try overlaying the group or the graphic objects with another
>> graphic rectangle, set the blending to make it translucent, and then
>> toggle the visibility of said rectangular graphic.
> 
> yes, I thought of that; but since I have 20 groups on my card, it will
> be simpler to add a line of script and change the graphic color when
> toggling between enable & disable.
> I was just wondering if there was a secret trick to disable the graphic
> and make it look disabled like the rest of the group.
> 
> ___
> 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: Searching this mailing list

2020-12-14 Thread Paul Hibbert via use-livecode
This may help:

http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html 


Paul

> On 14Dec, 2020, at 3:09 PM, Linda Miller via use-livecode 
>  wrote:
> 
> Is there a way to search through the archives of this mailing list? ... Other 
> than search engines like Google.
> 
> Linda
> ___
> 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: Has anyone published an iPhone app that works on iOS 14?

2020-09-28 Thread Paul Hibbert via use-livecode
I’ve just recently upgraded my iPhone and so ended up using iOS14, initially 
some apps that I had previously installed on my older iPhone would’t install on 
the new phone, most of them are quite old, so I rebuilt them using LC9.6.0 and 
Xcode 11.4. The first time I launched them they all worked fine on first 
launch, but none of them would launch for a second time, however, when I 
rebuilt them again using LC9.6.1 and Xcode 11.5 they all work fine.

These are all apps that I have built for my own use and are not published 
through the app store.

Paul

> On 28Sep, 2020, at 01:44, Graham Samuel via use-livecode 
>  wrote:
> 
> Sorry if this has been asked before, but a quick search of the list didn’t 
> reveal anything, and I have only been semi-lurking lately.
> 
> The subject says it all. At this point I don’t know if I can create an app in 
> LC that runs reliably with iOS 14. I know there have been high volume 
> grumbles from some non-LC developers that they weren’t ready when Apple 
> started the rollout of 14 earlier than expected, but I don’t know the 
> substance of the complaints.
> 
> Anyone just sailing along with no problems? I ask because I’m about to revive 
> an earlier app project and don’t want to crash and burn the moment I restart.
> 
> Graham
> ___
> 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: HOw to get htmltext from the field to display in another field

2020-09-21 Thread Paul Hibbert via use-livecode

> On 21Sep, 2020, at 10:55, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> ?? where does the font size becomes "34" . Even with the font size of field 
> increases, it stays at size="34”??

I would say from the h1 attribute that sets the text as a heading, h1 being the 
largest size. If you test with h2, h3 etc. you should see different font sizes.

As you can see, LiveCode’s conversion to HTML is not exactly how you would 
write the code if you were producing a web page, AFAIK it’s designed to suit 
LC's internal use.

Paul
___
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: Basic question about behaviors

2020-08-25 Thread Paul Hibbert via use-livecode
Bill, try this in the behaviour button script:

on mouseUp
  put the long name of this me into theName  —theName will contain the long 
name of the behaviour button.
end mouseUp

put this me into theName - would put the value contained in the text property 
of the behaviour button into theName. In standard, default and rectangle 
buttons we don’t normally use the text property, but there’s nothing stopping 
you from using it if you wish, you just need to populate it first. :)

Paul

> On 25Aug, 2020, at 15:48, William Prothero via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> on mouseUp
>   put  this me into theName  —theName is blank.
> end mouseUP




___
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: Quick question: player object callbacks still working?

2020-06-27 Thread Paul Hibbert via use-livecode
Just done a quick test and it’s working fine for me with LC9.6.0 on macOS 
Mojave 10.14.6.

Paul

> On Jun 27, 2020, at 13:41, David Bovill via use-livecode 
>  wrote:
> 
> I’ve been testing an idea for an app - and I can’t get the callbacks property 
> sending of messages. Does it still work with 9.6 MacOS?
> ___
> 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: Mobile Keyboard

2020-06-24 Thread Paul Hibbert via use-livecode
Try setting the traversalOn to false rather than using lockText, I seem to 
remember that worked for the last iOS app that I made (quite a while ago now), 
I’m sure it has been discussed here, probably several years ago, so  I’m amazes 
that I remembered it. :-)

I tested the script below in the simulator on a card with 5 fields and it 
worked as expected.

CODE:

local sFields

on preOpenCard
   put the number of fields on this card into sFields
  repeat with x = 1 to sFields
set the traversalOn of fld x to false   
   end repeat
end preOpenCard

on openCard
## openCard stuff here
send "unlockAllFields" to this card in 2 ticks ## Last line of the 
openCard handler
end openCard

on unlockAllFields
   repeat with x = 1 to sFields
  set the traversalOn of fld x to true
   end repeat
end unlockAllFields

END CODE

Best of luck.

Paul



> On Jun 24, 2020, at 08:35, Ralph DiMola via use-livecode 
>  wrote:
> 
> If found that you need to enclose the (set the lockText of fld 
> "thisDarnField" to false) with lock/unlock messages or the keyboard will pop 
> up when the doUnlockTheField handler is run. Probably because I do a lot in 
> the passed open card message path I also needed to send the message in 100 
> ticks.
> 
> Works great now.
> Thanks!
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: Dan Friedman [mailto:d...@clearvisiontech.com] 
> Sent: Tuesday, June 23, 2020 7:54 PM
> To: How to use LiveCode
> Cc: Ralph DiMola
> Subject: Re: Mobile Keyboard
> 
> Ralph,
> 
> I had this same issue on a project.  The problem is when the card/stack 
> opens, LiveCode want to activate the first typable field it finds.  If my old 
> memory is correct, what I did was this:
> 
> on preOpenCard
>   set the lockText of fld "thisDarnField" to true 
> end preOpenCard
> 
> on openCard
>   send "doUnlockTheField" to this card in 1 tick //don't send this until 
> everything is done loading (you could probably send this in the preOpenCard 
> too) end openCard
> 
> on doUnlockTheField
>   set the lockText of fld "thisDarnField" to false end doUnlockTheField
> 
> 
> Hope that helps and I hope it works!   I hope my cobweb-ridden brain 
> remembers this correctly!
> 
> -Dan
> 
> 
> On 6/23/20, 3:40 PM, "use-livecode on behalf of Ralph DiMola via 
> use-livecode"  use-livecode@lists.runrev.com> wrote:
> 
>I have a card with one focusable input field.
>How can I keep the keyboard from opening until the user taps into the 
> field?
> 
>I tried putting "focus on nothing"s in various places such as preopencard
>and opencard with no success?
> 
>I think this has been discussed before. Was there ever a solution for both
>iOS and Android?
> 
>Thanks
> 
>Ralph DiMola
>IT Director
>Evergreen Information Services
>rdim...@evergreeninfo.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
> 
> 
> 
> ___
> 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: Moving object out of a group

2020-06-15 Thread Paul Hibbert via use-livecode
Hi Sean,

Try collapsing the groups in the PB, then dragging the Graphic Object in 
between them.

I find that if the groups are displayed expanded, then the dragged object will 
end up in the group above where it is dropped, but with the groups collapsed 
you should be able to drop the objects in between them. You should be able to 
get away with just collapsing the group that you wish to place the Graphic 
below.

Paul

> On Jun 15, 2020, at 09:31, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all,
> 
> This has been a problem for some time now but it's just got so much more
> frustrating for me. I tend to organise my objects into groups as there are
> often lots of them and it helps keep them manageable.
> 
> However, I have created a rectangle grc I need positioning between two
> group layers but I can never seem to get it to between them but only inside
> one or the other. It's not easy to describe so I've created a little video
> to help demonstrate it. -
> https://www.dropbox.com/s/w75fapg0pqcgezg/MoveOutOfGrp.mov?dl=0
> 
> Ideally, the grc should end up outside of both groups but between them in
> the list. I've tried drag-drop and by changing the layer number but can't
> get it to place properly. Is there a way to overcome this?
> 
> Thanks
> 
> Sean Cole
> *Pi Digital *
> ___
> 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: HTML Colour Groups

2020-05-31 Thread Paul Hibbert via use-livecode
Hi Terence,

I’m not sure where these originate from, although I suspect they are from an 
earlier HTML version than is displayed on w3schools.

After a quick comparison, the missing colours appear to be;

Aqua
Crimson
Fuchsia
Indigo
Lime
Olive
RebeccaPurple
Silver
Teal

It probably wouldn’t be too difficult to catch these and substitute the Hex 
codes. It also wouldn’t take too much work to build your own custom list if you 
needed it, there's a really comprehensive list of colour names on Wikipedia.

It maybe worth a bug report to get the colorNames updated, I wouldn’t expect it 
to be too high a priority, but it should be an easy fix so you never know.

Regards

Paul

> On May 31, 2020, at 02:39, Terence Heaford via use-livecode 
>  wrote:
> 
> I thought LC supported HTML Colour Names?
> 
> I have been using the Colour Name Groups found here
> 
> https://www.w3schools.com/colors/colors_groups.asp 
> 
> 
> and found that some of the colours do not work in LC.
> 
> For example “Crimson” reports an error in LC.
> 
> Can someone explain this anomaly please.
> 
> 
> 
> Thanks
> 
> Terry
> ___
> 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: Special Paste

2020-05-29 Thread Paul Hibbert via use-livecode
Hi Charles,

Your examples are about pasting;

> Both Apple's Pages and Microsoft’s Word software have key commands for 
> pasting text into an existing document to match the current formatting (font).

But, your question is about copying;

> How do you script to accomplish this when copying text to the clipboard in a 
> button so the user does not have to use keyboard commands?

However, you can manipulate the clipBoardData both when when copying and 
pasting if you wish.

When copying the text, if you want the clipboard to contain unformatted (Plain) 
text, then use this in a “Copy Unformatted" button:

   on mouseUp
   set the clipBoardData["text"] to the selection
   end mouseUp

Or when pasting unformatted text, use this in a “Paste Unformatted” (= “Paste 
and Match Style or Paste and Match Formatting”) button:

   on mouseUp
   put the clipBoardData["text"] into the selection
   end mouseUp

Or if your app has a menu, then your Edit Menu script may look something like 
this:

on menuPick pWhich
   switch pWhich
  case "Cut"
 Cut
 break
  case "Copy"
 Copy
 break
  case "Copy Plain Text"
 set the clipBoardData["text"] to the selection
 break
  case "Paste"
 Paste
 break
  case "Paste and Match Style"
 put the clipBoardData["text"] into the selection
 break
  case "Clear"
 Clear
 break
  case "Preferences"
 go cd "Preferences"
 break
   end switch
end menuPick

By pasting Unformatted Text, the pasted text will take on the style of the text 
at the selection point.

clipBoardData in the Dictionary explains more.

Have fun.

Paul



> On May 28, 2020, at 07:04, Charles Szasz via use-livecode 
>  wrote:
> 
> Both Apple's Pages and Microsoft’s Word software have key commands for 
> pasting text into an existing document to match the current formatting 
> (font). How do you script to accomplish this when copying text to the 
> clipboard in a button so the user does not have to use keyboard commands?
> 
> Sent from my iPad
> ___
> 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: Small and strange problem

2020-05-14 Thread Paul Hibbert via use-livecode
Hi Graham,

Thank you for the update. Sorry to hear about the flood, I know from personal 
experience what that’s like so I really wish you and your family well, and that 
you can get your home and life back in to normal very soon..

Paul

> On May 14, 2020, at 03:17, Graham Samuel via use-livecode 
>  wrote:
> 
> Hi Paul
> 
> Sorry for the delay in replying but my house has just been inundated (it 
> happened on Monday and we are still clearing up! Worst flood in more than 40 
> years in my French village). Anyway, the bug is registered as 22730. The 
> problem is acknowledged - as I said in my submission, I’m not claiming my 
> coding is correct, I’m just trying to show that the IDE doesn’t behave 
> consistently in this instance.
> 
> Graham
> 
>> On 11 May 2020, at 23:18, Paul Hibbert via use-livecode 
>>  wrote:
>> 
>> Good point Ben, looks like that was my mistake. I don’t remember where I 
>> learned to use "if tError then”, but what I forgot was that it should have 
>> been testing for a false condition, so “if not tError then” does show the 
>> error when one occurs and skips when no error occurs.
>> 
>> Fixing this returns the following error when tMins contains a non numeric 
>> character;
>> An Error Occurred; 375,5,1
>> 239,5,1
>> 465,5,1
>> tMins = 31′
>> 
>> These are the corresponding LC Error Codes;
>> 375  Operators /: error in left operand
>> 239  Operators (): error in right operand
>> 465  put: error in expression
>> 
>> So it seems the value passed to tMins may contain invalid character(s) as 
>> Graham suspects. However, this doesn’t explain why the original script 
>> should behave differently using the debugger and not.
>> 
>> @Graham, can you post the Bug Report Number please?
>> 
>> Paul
>> 
>> 
>>> On May 11, 2020, at 09:11, Ben Rubinstein via use-livecode 
>>>  wrote:
>>> 
>>> And re this part:
>>> 
>>>>> Interestingly this
>>>>> 
>>>>> on mouseUp pMouseButton
>>>>> try
>>>>>   put (tMins/60) into tMins
>>>>> catch tError
>>>>>   if tError then answer "An Error Occurred;"  && tError & return & "tMins 
>>>>> =" && tMins
>>>>> end try
>>>>> end mouseUp
>>>>> 
>>>>> does NOT through an error or a catch error message
>>> 
>>> You're not seeing that there was an error thrown because 'tError' would be 
>>> set to the error message; the code above is testing for it being true, 
>>> before deciding to display the message. But it won't be true it, it will be 
>>> an expression of the error. If you removed "if tError then", so always 
>>> execute the answer statement in the catch section, you should see the error 
>>> message.
>>> 
>>> HTH,
>>> 
>>> Ben
>>> 
>>> 
>>> On 11/05/2020 15:31, Rick Harrison via use-livecode wrote:
>>>> Hi Andy,
>>>> Yes, tMins has to have a value or the statement makes no sense because LC 
>>>> has no
>>>> context for what you are trying to do.  LC doesn’t know if tMins is a 
>>>> string or something else.
>>>> Rick
>>>>> On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> I seem to have my posts dropped at the moment hence this,
>>>>> 
>>>>> I'm seeing the same error
>>>>> 
>>>>> with
>>>>> 
>>>>> on mouseUp pMouseButton
>>>>> put (tMins/60) into tMins
>>>>> answer tMins
>>>>> end mouseUp
>>>>> 
>>>>> button "Button": execution error at line 2 (Operators /: error in left 
>>>>> operand), char 1
>>>>> 
>>>>> Interestingly this
>>>>> 
>>>>> on mouseUp pMouseButton
>>>>> try
>>>>>  put (tMins/60) into tMins
>>>>> catch tError
>>>>>  if tError then answer "An Error Occurred;"  && tError & return & "tMins 
>>>>> =" && tMins
>>>>> end try
>>>>> end mouseUp
>>>>> 
>>>>> does NOT through an error or a catch error message
>>>>> 
>>>>> 
>>>>> If however tMins is initialized then all works as expected
>>>>> 
>>>>> on mouseUp pMouseButton
>>>>> put 20 into tMins
>>>>> put (tMins/60) into tMins
>>>>> answer tMins
>>>>> end mouseUp
>>>>> 
>>>>> ???
>>> 
>>> ___
>>> 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: Small and strange problem

2020-05-11 Thread Paul Hibbert via use-livecode
Good point Ben, looks like that was my mistake. I don’t remember where I 
learned to use "if tError then”, but what I forgot was that it should have been 
testing for a false condition, so “if not tError then” does show the error when 
one occurs and skips when no error occurs.

Fixing this returns the following error when tMins contains a non numeric 
character;
An Error Occurred; 375,5,1
239,5,1
465,5,1
tMins = 31′

These are the corresponding LC Error Codes;
375 Operators /: error in left operand
239 Operators (): error in right operand
465 put: error in expression

So it seems the value passed to tMins may contain invalid character(s) as 
Graham suspects. However, this doesn’t explain why the original script should 
behave differently using the debugger and not.

@Graham, can you post the Bug Report Number please?

Paul


> On May 11, 2020, at 09:11, Ben Rubinstein via use-livecode 
>  wrote:
> 
> And re this part:
> 
> >> Interestingly this
> >>
> >> on mouseUp pMouseButton
> >>   try
> >> put (tMins/60) into tMins
> >>   catch tError
> >> if tError then answer "An Error Occurred;"  && tError & return & 
> >> "tMins =" && tMins
> >>   end try
> >> end mouseUp
> >>
> >> does NOT through an error or a catch error message
> 
> You're not seeing that there was an error thrown because 'tError' would be 
> set to the error message; the code above is testing for it being true, before 
> deciding to display the message. But it won't be true it, it will be an 
> expression of the error. If you removed "if tError then", so always execute 
> the answer statement in the catch section, you should see the error message.
> 
> HTH,
> 
> Ben
> 
> 
> On 11/05/2020 15:31, Rick Harrison via use-livecode wrote:
>> Hi Andy,
>> Yes, tMins has to have a value or the statement makes no sense because LC 
>> has no
>> context for what you are trying to do.  LC doesn’t know if tMins is a string 
>> or something else.
>> Rick
>>> On May 11, 2020, at 4:24 AM, AndyP via use-livecode 
>>>  wrote:
>>> 
>>> I seem to have my posts dropped at the moment hence this,
>>> 
>>> I'm seeing the same error
>>> 
>>> with
>>> 
>>> on mouseUp pMouseButton
>>>  put (tMins/60) into tMins
>>>  answer tMins
>>> end mouseUp
>>> 
>>> button "Button": execution error at line 2 (Operators /: error in left 
>>> operand), char 1
>>> 
>>> Interestingly this
>>> 
>>> on mouseUp pMouseButton
>>>  try
>>>put (tMins/60) into tMins
>>>  catch tError
>>>if tError then answer "An Error Occurred;"  && tError & return & "tMins 
>>> =" && tMins
>>>  end try
>>> end mouseUp
>>> 
>>> does NOT through an error or a catch error message
>>> 
>>> 
>>> If however tMins is initialized then all works as expected
>>> 
>>> on mouseUp pMouseButton
>>>  put 20 into tMins
>>>  put (tMins/60) into tMins
>>>  answer tMins
>>> end mouseUp
>>> 
>>> ???
> 
> ___
> 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: Small and strange problem

2020-05-10 Thread Paul Hibbert via use-livecode
No replies so far, so I had a few minutes spare and tried to recreate this 
problem, but couldn’t. No matter what I put into tMins first, even an empty 
variable still returned 0, so my suggestion would be to wrap the script in a 
try - catch to see what’s going on with the left operand (tMins) during the 
equation, something like:

   try
  put (tMins/60) into tMins
   catch tError
  if tError then answer "An Error Occurred;"  && tError & return & "tMins 
=" && tMins
   end try

I tried in both versions of LC that you mentioned and saw no problem. 

Maybe somebody else will have a better idea.

Paul

> On May 9, 2020, at 07:05, Graham Samuel via use-livecode 
>  wrote:
> 
> I’m using LC 9.6.0 dp4 and 9.5.1 - this issue is seen in both versions.
> 
> I have a script with a very simple statement:
>  put (tMins/60) into tMins
> 
> tMins contains a number, and as expected I get a numeric result, for example 
> if tMins is 31, I get 0.516667
> 
> but ONLY when I step through the script in the IDE. If I let the script run, 
> the IDE reports an error:
> 
>> Execution error (operators /: error in left operand, char 1
> 
> 
> Either there’s an error or there isn’t. What can be wrong? I suppose as usual 
> it’s me, but I am foxed.
> 
> Graham
> ___
> 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: I need some DataGrid performance help

2020-05-05 Thread Paul Hibbert via use-livecode
I’ve no idea if this could help or even if this may cause worse problems with a 
DG, so just a thought, but have you tested with Lock Screen, Lock Messages 
and/or Lock Updates while the repeat is processing?

Failing that, I would try disabling each command in turn to find out if just 
one of them is causing the worst problem.

Paul

> On May 5, 2020, at 13:38, Paul Dupuis via use-livecode 
>  wrote:
> 
> I have a datagid operation that should be fast that is taking a long time and 
> I don't understand why.
> 
> I use a datagrid to display a table of data as part of an analysis. The 
> columns are file names and the rows are selected phrases found in those 
> files. The first column is the list of phrases (162 in this example). The 
> remaining columns are all the file name (254 in this example). So each cell 
> (2 to 254) represents a count of the number of times the phrase (in column 1 
> of the row) was found the the file that column represents.
> 
> I have the following code:
> 
>   set the dgColumnWidth[tRowColumnName]  of grp "rwMatrixObj_DataGrid" to 
> 200
>   set the dgColumnAlignment[tRowColumnName]  of grp "rwMatrixObj_DataGrid" to 
> "left"
>   set the dgColumnSortType[tRowColumnName]   of grp "rwMatrixObj_DataGrid" to 
> "text"
>   set the dgColumnIsEditable[tRowColumnName] of grp "rwMatrixObj_DataGrid" to 
> false
>   repeat with i=2 to the number of lines in tColumnNames
> put line i of tColumnNames into tColumnName
> set the dgColumnTooltip[tColumnName]of grp "rwMatrixObj_DataGrid" to 
> tColumnName
> set the dgColumnWidth[tColumnName]  of grp "rwMatrixObj_DataGrid" to 
> 75
> set the dgColumnAlignment[tColumnName]  of grp "rwMatrixObj_DataGrid" to 
> "right"
> set the dgColumnSortType[tColumnName]   of grp "rwMatrixObj_DataGrid" to 
> "numeric"
> set the dgColumnSortDirection[tColumnName] of grp "rwMatrixObj_DataGrid" 
> to "descending"
> set the dgColumnIsEditable[tColumnName] of grp "rwMatrixObj_DataGrid" to 
> false
>   end repeat
> 
> The first time this executes it takes just under 3 minutes for this size of 
> data (254 columns). However, the second and each successive time in the same 
> session it takes just under 30 minutes!
> 
> Any idea why it would take so long?
> 
> Thoughts on how to speed it up?
> 
> I realize that I could use: 'set the dgProp["column widths"] of grp  to 
> ' as a single set action vs a loop where I am 
> using 'set the dgColumnWidth[tColumnName] of grp  to '.
> 
> However, there are only Datagid properties so set attributes for ALL columns 
> for alignments, visibility, widths, and labels. Therefore, I have to use a 
> loop anyway to set the tooltip, sorttype, sortdirection, end editability
> 
> The column names (in the variable tColumnNames) are file names. Some are long 
> (longest is 113 characters) and some contain assorted punctuation. I wonder 
> is the column NAMES should be somehting plain ASCII and short and the column 
> LABELS contain the file names?
> 
> This is all in LiveCode 9.5.1 on Windows. Timing is approximately the same in 
> a Standalone or the IDE.
> 
> Anyway, if anyone has a good idea of what is taking this 30 minutes, ideas 
> would be very welcome!
> 
> ___
> 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: Is it possible to get the clicked cell for a table field, if the table is empty?

2020-05-02 Thread Paul Hibbert via use-livecode
Mike Bonner posted this back on the 14th February 2020…

Found an interesting behavior.. I was trying to set up a custom control
that keeps track of the current row and column and put the script in the
group, but rawkeyup or rawkeydown messages never reach the group.  I'm
wondering if its because the message is sent to the figmentary popup field
rather than the table field, and that the popup is not part of the group.
But "the target" refers to the table field itself, so i'm not sure thats
whats happening.  Either way.. The following script works when put into a
card or stack, NOT group, and not in the table field itself.  Kinda freaky
that the message is sent, just not to where I expect, despite "the target"
still pointing back at the table field.

on mouseup
  getline
  pass mouseup
end mouseup
on rawkeyup
  getline
  pass rawkeyup
end rawkeyup

command getline
  if the short name of the focusedobject contains "revCell-" then
  put the short name of the focusedobject into tName
  replace "revCell-" with empty in tname
  set the cCol of the target to item 1 of tName
  set the cRow of the target to item 2 of tName
  end if
end getline

I just tried a quick test and tName has the cell row and column.

Paul

> On May 1, 2020, at 22:21, William Prothero via use-livecode 
>  wrote:
> 
> Folks:
> I have an app that requires that I be able to get the cell row and column 
> when I click on the cell. I know a dataGrid can do this, but is it possible 
> with a table field? I know I can get the clicked line, but what about the 
> cell, when the table is empty.
> 
> I use, to get the line (from the lessons), but it only returns the line 
> number: 
> on mouseUp
> 
> put the clickline into msg
> 
> put return & value (the clickline) after msg
> 
> set the itemdelimiter to tab
> 
> put return & item 1 of value (the clickline) && item 2 of value (the 
> clickline) after msg
> 
> end mouseUp
> 
> Tnx for any suggestions.
> Bill
> 
> William A. Prothero
> https://earthlearningsolutions.org
> 
>> On May 1, 2020, at 5:49 PM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Hi all. 
>> 
>> I’m gonna say that script only stacks cannot have behaviors eh? Reason is, 
>> I’d like to move my nested data grid behavior to a script only stack, but it 
>> occurs to me this might break the datagrid, since it’s next level behavior 
>> is the old data grid behavior button (not sure why that’s still there) then 
>> the actual script only datagrid library. 
>> 
>> Bob S
>> 
>> ___
>> 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: What is a real?

2020-04-25 Thread Paul Hibbert via use-livecode
I was too, but then noticed that it’s a type of a value, look up the 
Description of the “is strictly” operator in the LC Dictionary and it explains 
there.

Paul

> On Apr 25, 2020, at 10:44, dunbarx--- via use-livecode 
>  wrote:
> 
> I am a little confused. I do not sea "real" as a valid LC word, unless the 
> dictionary entry for "real number". in the  "synonyms", needs a comma after 
> the word "real" in the string "real number".
> Craig
> 
> 
> -Original Message-
> From: Mark Waddingham via use-livecode 
> To: How to use LiveCode 
> Cc: Mark Waddingham 
> Sent: Sat, Apr 25, 2020 1:14 pm
> Subject: Re: What is a real?
> 
> The ‘is strictly’ operators allow you to detect what the actual internal 
> storage type of a value is. Some things generate numbers which are stored as 
> int32s but most will store them as doubles - arithmetic operators included.
> 
> I don’t know what the docs say about ‘is strictly an integer’ but the 
> operators themselves are definitely doing as they should so the docs might 
> need some refinement :)
> 
> Mark
> 
> P.S. The ‘is strictly’ operators were not really added for general use as 
> they are tied to internal mechanisms. They were added to help with doing 
> faithful export of values (lcVCS way back IIRC).
> 
> Sent from my iPhone
> 
>> On 25 Apr 2020, at 17:44, Brian Milby via use-livecode 
>>  wrote:
>> 
>> In your initial example, they are all strings.  1.1+0 would be strictly a 
>> real.  What is troubling is that I’m seeing that 1+200 is not strictly an 
>> integer yet the docs say it should be.
>> 
>> Thanks,
>> Brian
>>> On Apr 25, 2020, 12:06 PM -0400, Mark Wieder via use-livecode 
>>> , wrote:
 On 4/25/20 7:40 AM, Bob Sneidar via use-livecode wrote:
 Apparently nothing is a real. Neither is anything strictly a real.
 
 put 1 is strictly a real — false
 put 1.1 is strictly a real — false
 put 1.1 is a real — compilation error
>>> 
>>> If it helps any (hint: it doesn't) it's the currency of Brazil.
>>> You're welcome.
>>> 
>>> --
>>> Mark Wieder
>>> ahsoftw...@gmail.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
>> ___
>> 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: Hide stack change focus not supported 64bit

2020-03-30 Thread Paul Hibbert via use-livecode
Have you looked at the Launch command?

launch [documentPath with] applicationPath

Documentation:

Description
Use the launch command to start an application for the user to use.

When the launch command executes, the application being launched comes to the 
foreground. When the user quits, LiveCode comes to the foreground.

If no documentPath is specified, the following two statements are equivalent:

launch application
open process application for neither


Or maybe, Launch document or Launch URL

Paul


> On Mar 29, 2020, at 14:17, Bill Vlahos via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> 
> I have a stack that needs to hide itself so a different window (other 
> application) is now the frontmost window so my application can use 
> AppleScript keystroke command to enter information into the other window.
> 
> When I issue the command hide this stack my application window disappears but 
> doesn’t lose focus. The target application that was behind my floating window 
> doesn’t become the frontmost application.
> 
> The documentation in 9.5.1 says that hide stack is not supported in 64bit. 
> What is the alternative for MacOS X 64bit to temporarily hide my application?
> 
> Thank you,
> Bill Vlahos
> ___
> 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



Paul
p...@livecode.org

macOS Mojave 10.14




___
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: launch & quit

2019-10-13 Thread Paul Hibbert via use-livecode
I’ve used quit before on Mac with no problems, so I tried a few tests and it 
still seems to work fine for me (even with your mismatch variable 
tError/tErrormEssage).

I tried both with and without generating a deliberate error and it quit 
straight away, so I’d guess there may be something else causing the delay.

One thing I did notice was that when testing in the IDE the app being launched 
is brought to the front, but in a standalone the app being launched stayed in 
the background until I changed the quit command to:

   send “quit" to me in 10 ticks

This seems to give the app time to launch and come to the front, but the time 
seems to be be dependant on the size of the app, I tested with another 
standalone, and Apple Preview.

Tested in LC9.0.5 & LC9.5.0 - same results.

Hope you track down the issue.

Paul

> On Oct 12, 2019, at 13:28, Paul Dupuis via use-livecode 
>  wrote:
> 
> I have a stand alone with a card with a button with a mouseUp handler
> 
> on mouseUp
> 
>   -- some stuff
> 
>   -- tApplication variable contains a path to another standalone for OSX or 
> Window depending upon what platform() this standalon is running on
> 
>   launch tApplication
>   put the result into tError
>   if tError is not empty then
> answer error tErrormEssage
>   end if
>   quit
> end mouseUp
> 
> On Windows, the designated application launches promptly and my app quits 
> immediately.
> 
> On OSX, the designated application launches promptly and my app waits way too 
> long (a minute or two) before quitting.
> 
> Standalone built for OSX and Windows on Windows under LC905
> 
> Anyone have any experience like this? Any ideas on what to do to get the OSX 
> version to quit when told to quit?
> 
> ___
> 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: $1,000 Bounty For LiveCode Bug 20240

2019-06-19 Thread Paul Hibbert via use-livecode


> On 19 Jun 2019, at 01:26, Simon Knight via use-livecode 
>  wrote:
> 
> 3.  Go to edit menu and click 'undo' :  the dragged text is deleted - ouch!

I’ve seen this too, but then soon realised that clicking ‘undo’ a second time 
did restore the text in its original position. Seems the ‘Drag’ and ‘Drop’ are 
treated as two separate actions.

Paul
___
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: Seeking confirmation of a bug...

2019-05-17 Thread Paul Hibbert via use-livecode
On May 16, 2019, at 07:32, Klaus major-k via use-livecode 
 wrote:
> ...
>> From the dictionary about "anser file ... with type..."
>> ...
>> If more than one type is specified, a drop-down list containing the tags 
>> will be displayed allowing the user to select which types of files to 
>> display. (This list is always displayed on Windows systems).
> 
> maybe the dictionary should read: "This list is ONLY displayed on Windows 
> systems”?

I may be a bit late to this discussion, but I’ve recently been working on a 
small app that works with Movie files and the following syntax works fine on 
macOS Mojave 10.14.4 with LC 9.0.4 Stable and does show a drop down choice list…

answer file "Play Video file..." with type "mp4 File|mp4" or type "m4v 
File|m4v" or type "Movie File|mov" as sheet 

Selecting a file type in the drop down menu does isolate the appropriate files 
and greys out all others.

However, if I use the syntax discussed, I don’t see the drop down choice menu, 
but other than that, it does work with all three file types being available for 
selection…
answer file "Play Video file..." with type "mp4 File,m4v File,Movie 
File|mp4,m4v,mov" as sheet

Paul


___
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: Confirm Bug in Button - iconGravity and margins

2019-04-07 Thread Paul Hibbert via use-livecode
Not seeing this behaviour here on Mac.

Paul

macOS Mojave 10.14.4




> On Apr 3, 2019, at 19:56, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Can anyone confirm? 
> 
> 9.0.4 RC2
> 
> set the iconGravity of Button "openGlobalNav" to bottom 
> 
> 
> set the iconGravity of Button "openGlobalNav" to top. 
>   # sets it to the BOTTOM
> 
> Set the margin to "10" and it actually to -10 -- icon falls 10 pixels below 
> the rect of the bottom)
> 
> These were with SVG icons: import as control --> image --> choose an svg icon 
> from disk.
> 
> BR
> 
> 
> 
> 
> 
> 
> 
> 
> ___
> 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: screenRect and screenLoc weirdness

2019-01-10 Thread Paul Hibbert via use-livecode
Interesting! - it does appear to work, but that combination is not in the 
dictionary under “topLeft” as far as I can see, and “topLeft” is missing from 
the list of properties shown under the “effective” description.

Paul

> On Jan 10, 2019, at 17:03, Brian Milby via use-livecode 
>  wrote:
> 
> “effective topLeft”

___
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: Refactoring is your friend / moving from 6.x to 9.x

2019-01-02 Thread Paul Hibbert via use-livecode
Malte,

I think the info you were probably looking for is buried within the dictionary 
entry for the “lockScreen” Property, maybe this should be referenced a little 
better in the dictionary entries for “lock screen” and “unlock screen”, see 
below:

LiveCode keeps count of how many times the screen has been locked. You must 
balance each unlock with a lock; if you lock the screen twice and then unlock 
it once, the screen remains locked. For example, the following pair of handlers 
draws everything while the display is still locked:

on mouseUp
lock screen-- first lock
drawStuff  -- gets locked again and unlocked in drawStuff
show image "Sprite"
unlock screen  -- now unlocked - 2 locks balanced by 2 unlocks
end mouseUp

on drawStuff
lock screen-- screen now locked twice
show field "Notify"
unlock screen  -- not unlocked yet - locked twice, unlocked once
end drawStuff

Paul

> On Dec 30, 2018, at 13:55, Malte Pfaff-Brill via use-livecode 
>  wrote:
> 
> Hey Mark,
> 
> At least it is behaviour that changed between engine releases. :-)
> Thinking of a counter here is a good way to describe the behaviour, however, 
> it is not what is written in the dictionary.
> 
> 
> "unlock screen
> 
> Sets the lockScreen property to false, updating the screen and displaying any 
> changes made since the screen was locked.“
> 
> If unlock screen sets a property, the expectation would be to take effect as 
> soon as one unlock screen is issued, as a property can only have one state. 
> Nesting is not described in the dictionary. Not that I can not live with the 
> change, that is not my point 
> ___
> 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: Position the Label/Name of a Button

2018-12-04 Thread Paul Hibbert via use-livecode


> On Dec 4, 2018, at 13:36, Richmond via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
>  especially as that can easily be faked by using an image as a button.


But if you do need text for any reason, you can fudge it by putting returns 
before the text label to move it down, or after to move it up, and of course as 
already pointed out, use textAlign for Left, Centre or right.

Tested on a Mac (IDE & SA) only, no idea if this works on Win or Linux, not 
expected to work on Mobile and I doubt that it works with HTML5.

Paul

https://www.dropbox.com/s/2apq5km628oa43q/Buttons.png?dl=0 



___
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: where can I learn about macOS app Help menu Search menu item?

2018-11-17 Thread Paul Hibbert via use-livecode
AFAIK the “Search” feature in the Help menu is mainly for searching Menu items, 
try it while you are in Mail and search for “Accounts”, then each menu item 
that contains “Accounts” will appear at the top of the list with more generic 
Apple “Accounts” related subjects below. As you mouse over each item in the top 
part of the list, the Menu is opened and the item is highlighted.

From what I’ve seen, it works the same with any LC app, so I don’t think you 
need to do anything special other than create a Menu for your app. I don’t know 
of any way to populate it with any different information, but there maybe.

Paul

> On 17 Nov 2018, at 19:11, kee nethery via use-livecode 
>  wrote:
> 
> Building a macOS app and in the Help menu, the top menu item is “Search” with 
> a search field. How do I populate the data that gets searched so that answers 
> to questions about the app can live there? Trying to search for “search” and 
> “Menu” is not useful.
> 
> Thanks,
> 
> Kee Nethery
> ___
> 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: [ANN] Release 9.0.2 RC-1

2018-11-09 Thread Paul Hibbert via use-livecode
Thank you for testing and letting us know, I was just about to upgrade my Xcode 
too, so you saved me wasting another 5GB download, I really appreciate that, as 
it saves my limited monthly bandwidth.

I’ll go get Xcode 10.0 now. :)

Paul

> On Nov 9, 2018, at 11:42, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Fantastic job! I looked at the 80 bug fixes, amazing
> 
> I am already on Mohaje (10.14) and the latest Xcode in the App store is 10.1
> 
> Just to fun (from the release note, it would should not work) tried
> stalling Xcode under Preferences/Mobile  and, right, it did not work.
> Got the old invalid SDK message
> 
> The chosen folder in not a valid iOS SDK
> The Selected Xcode must have an iOS SDK
> among
> 8.2
> 9.2
> 10.2
> 11.2
> 12.0
> 
> So I went back and chose the Xcode 9.4 I was using with 9.0.1 (stable)
> 
> And got the same message.
> 
> Oh well, I will release  Android first...
> 
> then I will go off  to dig up Xcode 10 from Apple downloads
> 
> Anything else we need to know?
> 
> BR
> 
> 
> 
> 
> 
> 
> 
> 
> On 11/9/18 7:01 AM, Mark Wieder via use-livecode wrote:
>> On 11/9/18 2:02 AM, panagiotis merakos via use-livecode wrote:
>>> Dear list members,
>>> 
>>> We are pleased to announce the release of LiveCode 9.0.2 RC-1.
>>> 
>>> 
> 
> 
> ___
> 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



Paul
p...@livecode.org

Mac OS Sierra 10.12.1



___
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: tabbed windows in Mac - as setProp

2018-10-27 Thread Paul Hibbert via use-livecode
The menu item “View > Show Tab Bar” does show up occasionally, there does seem 
to be a trick to getting it to show up if it’s not there right now. 

I find that switching apps will sometimes return the menu item occasionally, 
but I seem to be able to force it to show up by switching to an app that does 
have tabs, such as Mail, then click on the LC window that is showing a Tab Bar 
(to switch back to LC), now click and hold on the “Development” Menu then slide 
across to the “View” menu, now you have one opportunity to turn off the 
offending Tab bar before it magically disappears again.

Hope I explained well enough and it works for you, good luck.

Paul

> On Oct 25, 2018, at 20:49, Neville Smythe via use-livecode 
>  wrote:
> 
> Well it seems the feature is “tabbed” windows. It is a feature of High 
> Sierra. However for non-Apple apps it has to be implemented by the third 
> party, and in this case I think the LC implementation is faulty.  I can add 
> windows to the tabs, but not remove the last tab.There is supposed to be a 
> menu item in the Windows menu to turn the feature on and off, but it’s not 
> there. I can’t turn it off and I have no idea how it got turned on, 
> presumably a combination of option keys while the cat was walking across the 
> keyboard. Yesterday upon the stair I met a man who wasn’t there … I wish, I 
> wish he’d go away.
> ___
> 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: Open a Plugin via Script

2018-10-12 Thread Paul Hibbert via use-livecode
If this is just for your own Dev use then the installed plugins should be in 2 
locations, on Mac inside the App bundle;
e.g. /Applications/LiveCode Indy 9.0.1.app/Contents/Tools/Plugins

I’d guess a similar location in Widows inside the App folder.

The user installed plugins should be in the "My LiveCode” folder inside your 
“Documents” folder or wherever you set the Extensions Folder under Preferences. 
I’m sure you know all this anyway, but if you need to build this info 
programatically you could hook into the revIDE scripts…

#Place in the Script of a Menu Button 
local sMenu,sPlugins

on mouseEnter // Build the menu
   put revIDEPlugins() into sPlugins // Returns an array of installed Plugins
   put the keys of sPlugins into sMenu
   sort sMenu
   set the text of me to sMenu
end mouseEnter

on menuPick pItemName // Just so we can choose one plugin
   open stack sPlugins[pItemName]["path"]
end menuPick

I’m sure you can adapt the above. :)

Paul

> On Oct 12, 2018, at 11:18, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> You would think all the plugin stacks would be "known" by the IDE, but when I 
> attempt to open a plugin by name, either short name or the actual file name 
> (without the path) Livecode cannot find it. There is no SpecialFolderPath 
> option for the plugins folder. (Maybe there should be??) So I cannot 
> programmatically discern where the plugins are. 
> 
> You will ask, "Why do you need that? Just open it from the developers menu!" 
> Well I have my own Developers Menu, with just the stuff I use all the time, 
> and I don't necessarily want to switch to pointer mode to get to it, then 
> switch back again. It's not a big deal, but I'd like to make that work if I 
> can. 
> 
> Bob S
> 
> 
> ___
> 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



Paul
p...@livecode.org

Mac OS Sierra 10.12.1




___
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: Livecode Share

2018-05-02 Thread Paul Hibbert via use-livecode
I’ve had this problem in the past and I’m sure I used the password reset to fix 
it (within the LC share option), but I’m away from my Mac until late tomorrow, 
so I can’t test right now. I’ll check as soon as I get home.

Paul

> On May 2, 2018, at 11:13 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> I'm trying to share a stack for the first time, but I'm having difficulty. I 
> tried the Share This Stack... option in the File menu, but it takes me to a 
> Login, and my Livecode Login doesn't seem to work for this. If I go right to 
> livecodesh...@runrev.com, there is no place to create a login! 
> 
> Bob S
> 
> 
> ___
> 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: Typesetting Fields

2018-04-24 Thread Paul Hibbert via use-livecode

> Where does livecode.wikia.comcome from?

I believe it was started by MaxV2, I think he hangs around in the forums mainly 
under the handle MaxV. He’s done a great job with the Wikia.

Paul





___
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: Typesetting Fields

2018-04-24 Thread Paul Hibbert via use-livecode
Another useful reference that may help…

http://livecode.wikia.com/wiki/StyledText 


Paul

> On Apr 24, 2018, at 12:29 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> 
> What I would do is set some text in a field to some different styles, then 
> get the styledText of the field and examine the array. 
> 
>Bob S
> 
> That is also my plan. 
> 
> ___
> 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: Has Anyone Got A Directory "Walker" Available

2018-04-19 Thread Paul Hibbert via use-livecode

> On 19 Apr 2018, at 11:20, Sannyasin Brahmanathaswami via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Never mind…
> 
> I found this in a toolbox. Sent by some ago, by a LiveCode deva 


That looks very much like the code supplied under the “Resources” menu, from 
Tutorials>General>Files and Folders.

I’ve used it on a few projects n the past and it has worked pretty well for me.

Paul
___
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: Blurring field contents

2018-03-29 Thread Paul Hibbert via use-livecode
That tutorial is a bit outdated now that there is a “blur” command, introduced 
in LC 8.0, it’s quicker and easier to use.

Paul

> On Mar 29, 2018, at 8:35 AM, David V Glasgow via use-livecode 
>  wrote:
> 
> I want to give users options for capturing anonymised cards, and wondered 
> about blurring text - maybe by overlaying a graphic of the text and blurring 
> that?  
> 
> There is an LC tutorial about blurring images 
> , 
> but it seems complex for simply blurring names and addresses in a couple of 
> fields.
> 
> Any suggestions?
> 
> 
> Best Wishes,
> David Glasgow
> 
> 
> 
> ___
> 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: Stupid Question re LC9

2018-03-02 Thread Paul Hibbert via use-livecode
In the messageBox try:

set the rect of stack "revNewScriptEditor 1" to "100,100,800,600"

then:

set the loc button "Resizer" of stack "revNewScriptEditor 1" to (the width of 
card 1 of stack "revNewScriptEditor 1"/2),(the height of card 1 of stack 
"revNewScriptEditor 1" - 100)

Beware of email line wraps, these should both be single lines.

This should bring the resize button into view, it just appears as two lines, 
move this and the debug panes should follow.

Paul


> On 2 Mar 2018, at 13:10, William Prothero via use-livecode 
>  wrote:
> 
> Thought I had it, using: 
> "set the rect of window "revNewScriptEditor 1" to 100,100,200,200
> in the message box, but none of the variables and their values show up.
> Is there a control key command to toggle back to the normal display?
> Bill
> 
>> On Mar 2, 2018, at 1:01 PM, William Prothero via use-livecode 
>>  wrote:
>> 
>> Folks:
>> I’ve been away from Livecode for the past 4 months and am doing a very small 
>> project in the latest LC9 DP11 and when I put in a breakpoint, when it 
>> activates, I only get a list of the system handlers in the debug window. 
>> These things are usually at the bottom of the window, but it is way off the 
>> bottom of my screen. I’ve tried to set the rect in the message box, to no 
>> avail.
>> 
>> I know there must be some kind of toggle to get the debug window sized, but 
>> …..
>> 
>> Sorry for the newby-like question, but things have changed quite a bit in 
>> the last several months.
>> 
>> Best,
>> Bill
>> 
>> 
>> 
>> William A. Prothero
>> http://earthlearningsolution.org/
>> 
>> ___
>> 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: LiveCode Widget Factory

2018-02-22 Thread Paul Hibbert via use-livecode
Not sure this is feasible yet, I’m still in the early research stage, but I’ve 
just seen a point where one of the iOS apps that I built for my own personal 
use could be made much more useful if it could communicate with Apple Watch, 
it’s basically for quickly and easily recording times of certain events, so not 
very complex.

Could a widget be used for communicating with Apple Watch?

I appreciate the watch app would probably need to be built with Xcode or Swift, 
but if a LC app could communicate with it, that would be awesome and definitely 
worth paying for.

Paul

> On Feb 22, 2018, at 3:38 AM, Todd Fabacher via use-livecode 
>  wrote:
> 
> Thanks...But nobody gave 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: how to format text for copy-pasting as a spreadsheet table

2018-02-14 Thread Paul Hibbert via use-livecode
The best place to start is by analysing the clipBoard data, in this case, copy 
a small table from Pages and then look at the fullClipBoardData[“html”] in 
LiveCode to see how the table is represented as html.

You can then use this as a model to build a table in html and place it on the 
fullClipBoardData[“html”] for pasting into Pages. That’s exactly how I put 
together the sample posted in the forum.

By doing this I could see that to export a soft return in a cell you would need 
to use the HTML  command in place of the return within the cell.

As far as I can see, importing a table (with returns in a cell) info into 
LiveCode is much trickier, mainly because LiveCode doesn’t appear to support 
soft returns within a table cell, so the only way I can see to achieve this 
would probably involve a more complex workaround where each cell would have to 
be represented by a field object.

The part I don’t understand is how you would represent or create this data in 
LiveCode, do you have an example you could share?

Paul

> On Feb 14, 2018, at 4:02 AM, Jean-Jacques Wagner via use-livecode 
>  wrote:
> 
> Hi,
> primarely from live code to pages, but also from pages to live code
> 
> Thanks
> JJW
> 
> ___
> 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: how to format text for copy-pasting as a spreadsheet table

2018-02-14 Thread Paul Hibbert via use-livecode
Could you give a little more info…

Do you want to import from Pages into LiveCode or import from LiveCode into 
Pages?

Paul
Paul
p...@livecode.org

Mac OS Sierra 10.12.1



> On Feb 13, 2018, at 3:14 AM, Jean-Jacques Wagner via use-livecode 
>  wrote:
> 
> Hallo,
> I did it in pages and its works. I had an other problem with the soft-return, 
> it is to import text with lines in the same cells. 
> 
> Can somebody tell me, how to do this. I tried with several chars, also 16 
> bits chars and never succeed.
> 
> Tanks
> 
> JJW
> ___
> 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: how to format text for copy-pasting as a spreadsheet table

2018-02-08 Thread Paul Hibbert via use-livecode
Nicolas, please don’t give up just yet, I don’t think this is too difficult. 
I’ve posted a sample in the user forum [ 
http://forums.livecode.com/viewtopic.php?f=7&t=30584 
 ] that I think may work 
for what you describe.

The example I tried uses HTML to paste into a word type document and it works 
fine here, but I’m on a Mac so you will need to test carefully.

Please don’t be offended that I posted it in the beginners section, that was 
just because I felt it may be useful to others, and exposing new LC users to 
this type of action may help someone else too.

Paul

> On 8 Feb 2018, at 15:11, Nicolas Cueto via use-livecode 
>  wrote:
> 
> 
> I guess I should just give up...
> 
> Thanks anyway.
> 
> --
> Nicolas Cueto
___
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: "clear" a command?

2018-01-26 Thread Paul Hibbert via use-livecode
Because “clear” is also a synonym of “delete”. :-)

Paul



> On Jan 26, 2018, at 3:41 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi friends,
> 
> I just saw a code snippet in the german LC forum,
> did not believe it would work, tested it and in fact it DID?
> 
> Here the line in question:
> ...
> clear the last word in field 1
> ...
> That actually deletes the last word of a field!? Holy Moses!
> 
> According to the docs "clear" is just one of the many INK blendmodes.
> I'm completely puzzled! 
> 
> Any comment appreciated. :-)
> 
> 
> Best
> 
> Klaus
> --
> Klaus Major
> http://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> 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: What Env Variable set when saving standalone?

2018-01-25 Thread Paul Hibbert via use-livecode
A couple more ideas:

in the Stack script…

on savingStandalone
   processLogin "false"
   pass savingStandalone
end savingStandalone

command processLogin pLogin
   if pLogin = "false" then exit processLogin
   modal stack "Login"
end processLogin

I tested this, but I’m not 100% sure it would be successful in your case, it 
seemed to work OK here.

Or simply holding the alt key down while making the standalone with:

if not the altKey is down then modal stack “login” # within the appropriate 
handler of course

I tried this on a simple stack and the alt key doesn’t seem to interfere with 
the build process, but you would need to test with your setup.

Paul


> On Jan 25, 2018, at 3:31 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Trouble is I DO want to open the login stack modally in development, because 
> it pulls setup information for each user from the Login database, such as 
> custom settings (like local file paths, recent customers list, access level 
> etc). The only time I do NOT want to open that stack is when I am saving as 
> standalone. 
> 
> It's not killing me to set the stack mode to top level each time, it's just 
> irritating. 
> 
> Bob S
> 
> 
>> On Jan 25, 2018, at 13:57 , J. Landman Gay via use-livecode 
>>  wrote:
>> 
>> You could try it a different way. Save/keep the login stack as toplevel all 
>> the time, then in the handler that opens the login stack:
>> 
>> if the environment is not "development" then modal "login"
>> else go stack "login"
> 
> 
> ___
> 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: LC Toolbar

2018-01-24 Thread Paul Hibbert via use-livecode
LiveCode isn’t the only app to leave windows visible, so I’ve become used to 
typing Cmd-Alt-H if I switch to another app or the finder and there’s something 
in the way that doesn’t belong to the app in front.

 Cmd-Alt-H is a system wide short-cut to “Hide Others”, so it should work in 
most apps and normally shows under the app menu.

Paul

> On Jan 24, 2018, at 12:09 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I get the same thing, but it hasn't bothered me. If LC is frontmost and you 
> click on the desktop, the toolbar remains as you describe. But if you click 
> on the Finder icon in the dock, or use Cmd-tab to cycle to another app, the 
> toolbar is moved behind the frontmost app. Since I use Cmd-tab a lot, I've 
> hardly noticed.
> 
> Basically any command the brings an app completely to the front will remove 
> the toolbar from view. If you use OS X's ability to intersperse app windows, 
> then the toolbar remains since it's a window like any other.
> 
> On 1/24/18 1:43 PM, Marty Knapp via use-livecode wrote:
>> But it isn't like this in LC 6.6.5 (didn't use anything in between). If I'm 
>> in the Finder the top LC toolbar obscures anything behind it on the desktop 
>> and I am unable to access folders and files I have there. Maybe I haven't 
>> explained myself well. Here's a screenshot of the top of my screen while LC 
>> is launched but Finder is at the front:
>> 
>> This is happening on both my iMac and MacbookPro. If it's a feature, can I 
>> change it? If it's a bug I'll file a report. I'm just surprised nobody else 
>> is seeing this or finding it annoying. I shouldn't have to quit LC to get to 
>> folders at the top of my screen. For now I've set my "View" to "Toolbar 
>> Text" only (no icons) - that narrows it enough that I can access stuff at 
>> the top of my screen.
>> Marty
>>> On Tue, Jan 23, 2018 at 11:21 PM, J. Landman Gay via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 On 1/23/18 6:34 PM, Marty Knapp via use-livecode wrote:
 
> So I just installed LC 8.1.8 on my Mac and the toolbar always displays
> whether or not LC is the active app. Is this a "feature?" I tried 
> disabling
> all plugins, etc. What am I missing? Thanks.
> 
 Well, it's a separate document window so if you bring one window of
 another app to the front the LC toolbar will still show. The same thing
 happens with any OS X app. I can't remember now if the toolbar used to be a
 palette, it would disappear if so.
 
 -- 
 Jacqueline Landman Gay | jac...@hyperactivesw.com
 HyperActive Software   | http://www.hyperactivesw.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
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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


___
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: gradient selectors

2018-01-17 Thread Paul Hibbert via use-livecode
Both fill and stroke gradients work fine on Mac High Sierra, no delays that I 
can see and definitely no hang, so it may be a Linux related bug.

Anybody tested Windows?

Paul


> On Jan 17, 2018, at 6:30 PM, Mark Wieder via use-livecode 
>  wrote:
> 
> Before I log a bug report on this, can anyone confirm that the gradient 
> selectors are working in LC9? Launching either of the selectors from the PI I 
> get a long hang time and no visual feedback. I did manage to get something 
> out of the fill gradient selector once, but the stroke gradient selector does 
> nothing. Even its controls are nonresponsive.
> 
> The hang time is particularly annoying since it hangs my whole desktop. Not 
> sure if this is just me or just linux or if it's systemic.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.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

___
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: Anyone else got two-monitor issues with LC9 on Mac?

2018-01-14 Thread Paul Hibbert via use-livecode
Just to add to the mix, I have been using a two monitor system for many years, 
I now have an iMac (Retina 4K, 21.5-inch, 2017) connected to an Eizo ColorEdge 
CG 241W, the iMac is 4096 x 2304 and the Eizo is 1920 x 1200, both driven by 
the same Radeon Pro 560 4 GB card. Both monitors are set to default scaling and 
I do normally keep the top edges aligned with the menubar on the iMac screen.

I didn’t see too many problems until I upgraded the iMac from a 2009 model. 
With the new iMac, initially I tried using 2 adaptors to connect the 2nd 
monitor, going from USB-C (Thunderbolt) to Display-Port and then Display-Port 
to DVI, not surprisingly that didn’t work too well. Now I have an after-market 
USB-C to DVI adapter and it has improved no end, looking through the reviews on 
Amazon it seems the quality of the adapter can make a difference. AFAIK Apple 
don’t produce/sell a USB-C to DVI adapter.

I have seen problems with bad alignment of LC stacks if the tops of the screens 
are not aligned in the Display Prefs and I had all sorts of minor problems with 
many different apps if I moved the menu bar to the Eizo or didn’t align the 
tops of the displays, to the point where I almost gave up using a second 
monitor.

Now I keep the tops of the displays aligned and the system MenuBar and LC 
toolbar/toolbox on the iMac and I tend to keep the stack windows on the iMac 
(although not always), I use the Eizo mainly for the Script Editor and 
Dictionary along with the Project Browser and I haven’t seen any major problems 
lately. Occasionally the cursor just disappears, but comes back if I move it to 
the iMac Display or manage to hit the dock at the bottom of the screen, that’s 
not just in LC though.

Problems are definitely not limited to LiveCode, some apps will not work well 
if I attempt to use the second monitor, so I suspect there are some underlying 
OS issues,  possibly from mixing the two different types of display. One of the 
worst apps is Flux 7, it’s almost unusable without some major adjustments to 
the app windows.

After seeing Mark’s last response in this thread I tried a few tests with the 
display arrangements and switching the MenuBar around, everything was working 
as expected until I arranged the bottom of both displays and then tried to 
re-arrange so the tops of the displays aligned (approx the 7th arrangement), 
then the LC revMenuBar ended up in the middle of the iMac display and I 
couldn’t see any response from clicking on the stack, LC toolbox/toolbar or any 
open palette. As soon as I used the message box to reset the position of the 
revMenuBar everything started working again. Then I re-started LC, the 
positions were screwed up again, so I trashed the prefs and all is fine again.

My thought are; from my experience this isn’t just a LC issue, the quality/type 
of adapter may help, keeping the Mac MenuBar on the Mac seems to be more stable 
and it doesn’t seem to affect the way most apps work AFAICS, keeping the tops 
of the Displays aligned in the Prefs pane also helps especially in LC, some 
apps just don’t support dual/multiple monitors well. My final observation is 
switching the display options around with LC open can really screw up it's 
prefs!

Paul


___
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: Problem pasting from Livecode to Mac Mail

2018-01-10 Thread Paul Hibbert via use-livecode
This works for me with LC9.0.0(dp11) on MacOS High Sierra 10.13.2:

   lock the clipBoard
   put the clipboardData["text"] into tClip
   set the clipBoardData to empty
-- OSX
   set the rawClipboardData["public.utf8-plain-text"] \
 to textEncode(tClip, "UTF-8" )
   unlock the clipBoard
   -- Now Go Paste in Apple Mail

For an in-depth explanation check the “rawClipboardData" in the dictionary.

Hope this helps.

Paul


> On Jan 10, 2018, at 7:20 AM, Richard Burkett via use-livecode 
>  wrote:
> 
> Thanks for the suggestion, Jacqueline, but it didn’t change anything. Anyone 
> else have a script-based solution to make sure LiveCode pastes only plain 
> text? ASCII, Native, MacRoman - none of those text encodings work. 
> Even putting only this line in my script results in the same thing:
> set the clipboarddata to ( "blah" & lf & "blah" & lf & "blah" & cr & "blah" & 
> cr & "blah" & return & "blah" )
> 
> What’s different about text set in the clipboard in LiveCode from other text 
> copied from other Mac apps?
> 
> Richard Burkett
> richard.burk...@sbcglobal.net
> 
>> On 1/9/18 12:09 PM, Richard Burkett via use-livecode wrote:
>>> Does anyone have a solution to this problem: I set the clipboard in 
>>> LiveCode to the text of a field or variable that has returns after each 
>>> line. When I paste that into Mac Mail, the text appears double-spaced as if 
>>> it has two returns, but clearly there is just one (or a combination of CR 
>>> and LF?). I?ve tried all the keys for setting the clipboard and also 
>>> writing a script to delete line feeds, or CR characters, but nothing works. 
>>> It?s either no returns, or what appears to be double-spaced returns.
>>> 
>>> If I paste the text first into Text Edit, then copy it, and paste into Mac 
>>> Mail it?s fine - single line spacing. What?s LiveCode adding to each line 
>>> that causes Mac Mail to show the pasted text as double spaced? Is there a 
>>> way to filter/remove that?
>> 
>> I don't have a good way to test this, but try:
>> 
>> set the clipboardData to textEncode(the clipboardData,"native")
>> 
>> 
>> -- 
>> Jacqueline Landman Gay | jac...@hyperactivesw.com 
>> 
>> HyperActive Software   | http://www.hyperactivesw.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


___
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: Problem pasting from Livecode to Mac Mail

2018-01-09 Thread Paul Hibbert via use-livecode
I use a small utility called PopClip, I wouldn’t be without it (although it 
does have some issues with LC on occasions), but it does allow you to choose to 
paste plain text if you wish along with lots of other useful copy/paste 
options. Saves me from some frustration.

It’s available on the App store. More info from pilotmoon.com if that helps.

Paul

> On Jan 9, 2018, at 11:55 AM, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 1/9/18 12:09 PM, Richard Burkett via use-livecode wrote:
>> Does anyone have a solution to this problem: I set the clipboard in LiveCode 
>> to the text of a field or variable that has returns after each line. When I 
>> paste that into Mac Mail, the text appears double-spaced as if it has two 
>> returns, but clearly there is just one (or a combination of CR and LF?). 
>> I’ve tried all the keys for setting the clipboard and also writing a script 
>> to delete line feeds, or CR characters, but nothing works. It’s either no 
>> returns, or what appears to be double-spaced returns.
>> If I paste the text first into Text Edit, then copy it, and paste into Mac 
>> Mail it’s fine - single line spacing. What’s LiveCode adding to each line 
>> that causes Mac Mail to show the pasted text as double spaced? Is there a 
>> way to filter/remove that?
> 
> I don't have a good way to test this, but try:
> 
> set the clipboardData to textEncode(the clipboardData,"native")
> 
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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


___
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: native iOS button question

2018-01-04 Thread 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.

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
> kl...@major-k.de
> 
> 
> ___
> 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: Print to PDF

2018-01-03 Thread Paul Hibbert via use-livecode
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@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@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: Simulator woes

2017-12-27 Thread Paul Hibbert via use-livecode
Devin,

I did just see the same error when launching the simulator for the first time 
(this session), but then I restarted the simulator device and all worked as 
expected, but it was a long laborious process displaying multiple messages.

One trick I’ve used in the past still worked OK. When the simulator does 
finally open, add it’s icon to the dock, now when working on a mobile apps, 
launch the simulator from the dock first, when it does open fully any tests 
sent to the simulator from LC are opened much quicker

LC 9.0.0 (dp11)
Xcode 9.2
Mac OS Sierra 10.13.2

Paul




> On Dec 27, 2017, at 11:27 AM, Devin Asay via use-livecode 
>  wrote:
> 
> Hi all,
> 
> I’m heading into my annual foray into teaching mobile development, and so 
> testing running stacks in the simulator. For the life of me, I’m unable to 
> get a stack to show up in the simulator, where I’ve had little trouble in the 
> past. Has something changed?
> 
> When I try to test a stack in the simulator I get the “taking a long time to 
> launch” message several times. The simulator does launch. Eventually I see 
> the message “Unable to start simulation: Simulator session timed out.” This 
> happens whether or not the simulator is launched when I hit the Test button 
> in LiveCode.
> 
> I’ve tried several different versions of LC and Xcode. All the same result. 
> Right now I’m on:
> 
> Mac OS 10.12.6
> LiveCode 9.0.0 DP 11
> Xcode 9.2
> 
> Is this a new problem that others are seeing? I’m not finding anything in the 
> forums, and have a vague memory of a discussion here about this topic. Any 
> help greatly appreciated.
> 
> Devin
> 
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> 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: MergPop error on iOS 11.2 & LC 8.1.8

2017-12-10 Thread Paul Hibbert via use-livecode
Thank you for the quick response Monte, the fix works well!

Paul

> On 10 Dec 2017, at 13:36, Monte Goulding via use-livecode 
>  wrote:
> 
> http://quality.livecode.com/show_bug.cgi?id=20759 
> 
> 
>> On 11 Dec 2017, at 8:29 am, Monte Goulding via use-livecode 
>>  wrote:
>> 
>> Hi Folks
>> 
>> It turns out this crash is caused by the need for a new plist entry 
>> `NSPhotoLibraryAddUsageDescription`.
>> 
>> Cheers
>> 
>> Monte
>> ___
>> 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: MergPop error on iOS 11.2 & LC 8.1.8

2017-12-09 Thread Paul Hibbert via use-livecode
Monte is on the LC team now, so you can post a bug report here: 
http://quality.livecode.com <http://quality.livecode.com/>

Your login should be the same as the LC Store/site.

Paul

> On 9 Dec 2017, at 10:37, William de Smet via use-livecode 
>  wrote:
> 
> Hi Jacqueline and Paul,
> 
> I had the same thing with MergPop with iOS 7 and then MergPop needed an
> update which Monte released the next day.
> Thanks for checking Paul.
> 
> Where do I file a bug report?
> 
> 
> 
> greetings,
> 
> William
> 
> 
> 
> 2017-12-09 18:44 GMT+01:00 J. Landman Gay via use-livecode <
> use-livecode@lists.runrev.com>:
> 
>> If only one selection causes the crash, the problem is more likely to be
>> the handler it calls than the external itself. I'd look at the actions that
>> occur during the "save image" handler.
>> 
>> --
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
>> 
>> 
>> 
>> 
>> On December 9, 2017 2:41:19 AM William de Smet via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>> Hi Paul,
>>> 
>>> Like I said MergPop works fine in my app except the fact that the app
>>> quits after choosing 'Save Image' from the  popover sheet.
>>> Can you confirm this?
>>> 
>>> It's a brand new iPad (2 days old) with no other apps installed.
>>> 
>>> Greetings,
>>> 
>>> William
>>> 
>>> Op 9 dec. 2017 om 03:26 heeft Paul Hibbert via use-livecode <
>>>> use-livecode@lists.runrev.com> het volgende geschreven:
>>>> 
>>>> William,
>>>> 
>>>> Just did a quick test and to make this work I had to go to Standalone
>>>> Application Settings > General and choose “Select inclusions for the
>>>> standalone application”, then under Standalone Application Settings >
>>>> Inclusions scroll down and make sure “MergPop” is selected along with any
>>>> other inclusions necessary.
>>>> 
>>>> It seems MergPop is not being found when allowing LC to search for the
>>>> required inclusions. This may be a bug, but I can’t find anything on LCQC
>>>> for it right now, although I’m sure I remember it being discussed on this
>>>> list previously (that’s how I knew what the fix was), but I don’t remember
>>>> the conclusion.
>>>> 
>>>> FYI, I checked this by adding a catch tError command within the try -
>>>> end try handler then used answer tError, it told me that LC couldn’t find
>>>> the handler “mergPopActivity”, so it confirmed that the library was
>>>> missing, fixing that made it work.
>>>> 
>>>> Paul
>>>> 
>>>> On 8 Dec 2017, at 12:00, William de Smet via use-livecode <
>>>>> use-livecode@lists.runrev.com> wrote:
>>>>> 
>>>>> Hi there,
>>>>> 
>>>>> I am seeing an error on using MergPop with iOS 11.2 /LC 8.1.8 when
>>>>> saving a
>>>>> PNG with the 'Save Image' button on the popover sheet.
>>>>> It quits the app immediately.
>>>>> 'E-mail, Copy, Print, Save Files App' all work fine. Even Airdrop works
>>>>> fine.
>>>>> 
>>>>> I do this:
>>>>> 
>>>>> try
>>>>> put specialfolderpath("documents") & "/" & "cars.png" into tPath
>>>>> export snapshot from group "cars" to file tPath as PNG
>>>>> mergPopActivity "",tPath,"",""
>>>>> get the result
>>>>> end try
>>>>> --
>>>>> 
>>>>> Anyone else seeing this?
>>>>> Is there something I can change in my script?
>>>>> 
>>>>> 
>>>>> 
>>>>> greetings,
>>>>> 
>>>>> William
>>>>> ___
>>>>> 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

___
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: MergPop error on iOS 11.2 & LC 8.1.8

2017-12-09 Thread Paul Hibbert via use-livecode
Hi William,

I took another look and can confirm what you are seeing, at first I tried with 
“Save to Files” and that works OK, I didn’t see the “Save Image” button 
initially as it was off screen, however, when I did try the “Save Image” 
button, the app just silently quit just as you see. I think this needs a bug 
report.

I also tried this in the simulator with the log window open and no entries are 
passed to the log when the app quits, so no clues there.

I looked at Photos to see if the same menu appears there, but the options 
available are different and “Save Image” isn’t available in Photos, so there 
may be something Monte needs to adjust in the mergPop plugin to fix this.

@Jacque, there is no “Save image” handler, this is an option (button) in the 
iOS menu that is triggered by mergPopActivity.

Paul

> On 9 Dec 2017, at 00:39, William de Smet via use-livecode 
>  wrote:
> 
> Hi Paul,
> 
> Like I said MergPop works fine in my app except the fact that the app quits 
> after choosing 'Save Image' from the  popover sheet. 
> Can you confirm this?
> 
> It's a brand new iPad (2 days old) with no other apps installed. 
> 
> Greetings,
> 
> William
> 
>> Op 9 dec. 2017 om 03:26 heeft Paul Hibbert via use-livecode 
>>  het volgende geschreven:
>> 
>> William,
>> 
>> Just did a quick test and to make this work I had to go to Standalone 
>> Application Settings > General and choose “Select inclusions for the 
>> standalone application”, then under Standalone Application Settings > 
>> Inclusions scroll down and make sure “MergPop” is selected along with any 
>> other inclusions necessary.
>> 
>> It seems MergPop is not being found when allowing LC to search for the 
>> required inclusions. This may be a bug, but I can’t find anything on LCQC 
>> for it right now, although I’m sure I remember it being discussed on this 
>> list previously (that’s how I knew what the fix was), but I don’t remember 
>> the conclusion.
>> 
>> FYI, I checked this by adding a catch tError command within the try - end 
>> try handler then used answer tError, it told me that LC couldn’t find the 
>> handler “mergPopActivity”, so it confirmed that the library was missing, 
>> fixing that made it work.
>> 
>> Paul
>> 
>>> On 8 Dec 2017, at 12:00, William de Smet via use-livecode 
>>>  wrote:
>>> 
>>> Hi there,
>>> 
>>> I am seeing an error on using MergPop with iOS 11.2 /LC 8.1.8 when saving a
>>> PNG with the 'Save Image' button on the popover sheet.
>>> It quits the app immediately.
>>> 'E-mail, Copy, Print, Save Files App' all work fine. Even Airdrop works
>>> fine.
>>> 
>>> I do this:
>>> 
>>> try
>>> put specialfolderpath("documents") & "/" & "cars.png" into tPath
>>> export snapshot from group "cars" to file tPath as PNG
>>> mergPopActivity "",tPath,"",""
>>> get the result
>>> end try
>>> --
>>> 
>>> Anyone else seeing this?
>>> Is there something I can change in my script?
>>> 
>>> 
>>> 
>>> greetings,
>>> 
>>> William
>>> ___
>>> 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: MergPop error on iOS 11.2 & LC 8.1.8

2017-12-08 Thread Paul Hibbert via use-livecode
William,

Just did a quick test and to make this work I had to go to Standalone 
Application Settings > General and choose “Select inclusions for the standalone 
application”, then under Standalone Application Settings > Inclusions scroll 
down and make sure “MergPop” is selected along with any other inclusions 
necessary.

It seems MergPop is not being found when allowing LC to search for the required 
inclusions. This may be a bug, but I can’t find anything on LCQC for it right 
now, although I’m sure I remember it being discussed on this list previously 
(that’s how I knew what the fix was), but I don’t remember the conclusion.

FYI, I checked this by adding a catch tError command within the try - end try 
handler then used answer tError, it told me that LC couldn’t find the handler 
“mergPopActivity”, so it confirmed that the library was missing, fixing that 
made it work.

Paul

> On 8 Dec 2017, at 12:00, William de Smet via use-livecode 
>  wrote:
> 
> Hi there,
> 
> I am seeing an error on using MergPop with iOS 11.2 /LC 8.1.8 when saving a
> PNG with the 'Save Image' button on the popover sheet.
> It quits the app immediately.
> 'E-mail, Copy, Print, Save Files App' all work fine. Even Airdrop works
> fine.
> 
> I do this:
> 
> try
> put specialfolderpath("documents") & "/" & "cars.png" into tPath
> export snapshot from group "cars" to file tPath as PNG
> mergPopActivity "",tPath,"",""
> get the result
> end try
> --
> 
> Anyone else seeing this?
> Is there something I can change in my script?
> 
> 
> 
> greetings,
> 
> William
> ___
> 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: Q re multilingual mobile apps

2017-12-01 Thread Paul Hibbert via use-livecode
According to the dictionary, you should be able to use mobileCurrentLocale(), 
but I don’t know what the specific results would be, as the dictionary example 
states “en_US” whereas the equivalent result shown in the settings on iOS is 
“English (U.S.)”, so some careful investigations may be necessary.

Paul

> On 1 Dec 2017, at 09:22, Richard Gaskin via use-livecode 
>  wrote:
> 
> Interesting question in the forums that has me stumped:
> 
> If you have an app where you've worked out multilingual support, what 
> function can we call to determine the device's current language setting?
> 
> http://forums.livecode.com/viewtopic.php?f=7&t=30081
> 
> -- 
> 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

___
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: IDE breaks down over time

2017-11-28 Thread Paul Hibbert via use-livecode
Re PB:

> 1. there's no refresh button
> 2. it doesn't auto-refresh
> 3. it empties its contents at odd moments

4. it screws up it’s own view from time to time making it impossible to see 
which control is linked which group

These are part of the reason I set about making a plugin to add some shortcuts 
to the IDE menus, now I can just use the shortcut Shift-Cmd-B twice and it will 
close then re-open the PB. Probably not ideal, but it works for me.

It’s here if anybody wants it: 
http://livecodeshare.runrev.com/stack/813/LC-Menu-Shortcuts - It’s not perfect, 
but it works if you are careful with the shortcuts that you choose. BEWARE - 
I've only tested on Mac, so I don’t know how well it will work with 
Windows/Linux, it may need some tweaking.

If any of this is useful for a 'hacking the ide' multi-part project then I 
would be happy to contribute this to the project.

I’m sure it wouldn’t be too difficult to add a menu item and shortcut to the 
Tools menu just to force the Project Browser to refresh, but I haven’t delved 
into the PB scripts to see how feasible that would be, or what would be 
required.

I know Mark Waddingham is against using a refresh command/button/menu 
item/whatever, and I can understand that long term, it would be way better to 
have the PB behaving correctly all (or at least most) of the time, but in the 
meantime we still need to work with it, preferably without too much 
frustration. I did find it frustrating, but now that I can force it to refresh 
relatively easily and quickly it has become much more useful, to me at least. 

Paul

> On 28 Nov 2017, at 17:47, Mike Kerner via use-livecode 
>  wrote:
> 
> There are a slew of PB QR's.  That was one that I was suggesting we work on
> for LCG as a 'hacking the ide' multi-part project.
> 
> On Tue, Nov 28, 2017 at 7:35 PM, Monte Goulding via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> It’s likely you are encountering some execution errors in the IDE scripts.
>> Try setting gREVDevelopment to true and see if you get any details to
>> report. We know there are a number of issues with the project browser
>> keeping track of objects which is why I recently wrote an object repository
>> library in LCB. We haven’t had a chance to update the PB to use it yet
>> though.
>> 
>> Cheers
>> 
>> Monte
>> 
>>> On 29 Nov 2017, at 7:19 am, Sannyasin Brahmanathaswami via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> I am building new UI… not a drop of code.. it's all about drawing
>> controls, grouping, setting rects and RGB values etc.forground background
>> colors, setting alpha etc.
>>> 
>>> after about 30 minutes in 9.0.0-dp-9  the IDE seems to get very
>> confused. (OS X)
>>> 
>>> If I work in the project browser, or  revApplicationOverview…either
>> things start happening like:
>>> 
>>> 1) if in property inspector: clicking on the layer up down… does nothing
>> layer is fixed on the current number.
>>> 2) I can actually click on the object and "send backward" but in one
>> case the object was deleted by this operation.
>>> 3) the PI become increasingly non-responsive: click on the cross to edit
>> location width height etc… nothing happens, the switch to the panel for
>> dimensions and location does happen.
>>> 4) then if we relayer some control in the PB, clicking on an object
>> selects a different control on the card than the highlighted on the list.
>>> 5) close the PB switch to the old AB… and things are now also failing
>> here as well.
>>> 4) suddenly no longer able to save or open the message box…
>>> 5) finally reach a point here closing the PI and then right clickin gto
>> open it again the whole property inspector opens, but is completely non
>> responsive. 4
>>> 
>>> It's as if some set of vars that contain pointers to objects lose track
>> of what object they are connected to or the selectedObject or target is lost
>>> 
>>> Hopefully I can save, close the stack, reboot. then things get better.
>> Sometimes can't save, have to shut down, lose a lot work… well, not any
>> more… I save every time I make a minute change now.
>>> 
>>> Is this better in 9- dp 10? or the latest versions of 8.*  I switch to 9
>> for the mobile debugging, but am not really using that at the moment.
>>> 
>>> Brahmanathaswami
>>> 
>>> ___
>>> 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
>> 
> 
> 
> 
> -- 
> 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 an

Re: Black Friday mac app bundle

2017-11-21 Thread Paul Hibbert via use-livecode
If you are just looking for Flux, this may be a better deal…

https://bundlehunt.com 

Paul

> On 21 Nov 2017, at 12:36, Mark Wieder via use-livecode 
>  wrote:
> 
> This looks like a very good deal. I'm springing for it even though I don't 
> have a need for all the apps. I've been working with Bootstrap lately and had 
> my eye on Flux 7 anyway.
> 
> Oh... and 15% off even that with code GIFTSHOP15
> 
> https://store.boingboing.net/sales/the-legendary-black-friday-mac-bundle-ft-pdf-expert?rid=2815219
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.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

___
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: submenu

2017-11-19 Thread Paul Hibbert via use-livecode
I think this behaviour is to do with the bug 18316 (link in previous email).

If you locate the button in the project menu and look at the property inspector 
> text, you will see the tab indents that create the submenu items.

e.g. 
https://www.dropbox.com/s/59afsj55qgk65vm/Menu%20Screen%20Shot%203.jpg?dl=0 
<https://www.dropbox.com/s/59afsj55qgk65vm/Menu%20Screen%20Shot%203.jpg?dl=0>

Paul

> On 19 Nov 2017, at 10:17, Yves COPPE via use-livecode 
>  wrote:
> 
> Hello,
> 
> When I move the menu (B) just after another menu (A) and want to make Menu 
> (B) a submenu of menu (A), this icon you describe is disabled !
> 
> 
> Greetings.
> 
>> Le 19 nov. 2017 à 18:51, Paul Hibbert via use-livecode 
>>  a écrit :
>> 
>> In the Menu Builder, underneath the [Delete Item] button, there are two 
>> icons. The left one is to “Make the submenu item into a menu item” and the 
>> right one will “Make the selected menu item into a submenu item".
>> 
>> On a side note, while checking this out and refreshing my memory of the menu 
>> builder, I noticed that the submenu items disappear from the list if you 
>> close and re-open the Menu Builder, however, the items don’t disappear from 
>> the button’s text in the PI, so they are intact still there. This bug means 
>> you only get one shot at setting up the submenu items in the Menu Builder, 
>> after that you would need to do any further editing of this menu in the 
>> button’s PI by adding or subtracting tabs in the button’s text.
>> 
>> For more info checkout the "Creating Cascading Menus” section on P182 of the 
>> user guide.
>> 
>> It seems this odd behaviour started with LC8.0 (dp3), there is a bug report 
>> Bug 18316 <http://quality.livecode.com/show_bug.cgi?id=18316>
>> 
>> Paul
>> 
>>> On 19 Nov 2017, at 03:29, Yves COPPE via use-livecode 
>>>  wrote:
>>> 
>>> Hello,
>>> 
>>> on macOS 10.13.1 and LiveCode 8.1.7
>>> 
>>> In the Menu Builder, I’ve made different menu items
>>> How can I create an submenu item of a menu item ?
>>> 
>>> Thanks.
>>> 
>>> 
>>> Greetings.
>>> 
>>> Yves COPPE
>>> yvesco...@mac.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
>> 
>> ___
>> 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: submenu

2017-11-19 Thread Paul Hibbert via use-livecode
In the Menu Builder, underneath the [Delete Item] button, there are two icons. 
The left one is to “Make the submenu item into a menu item” and the right one 
will “Make the selected menu item into a submenu item".

On a side note, while checking this out and refreshing my memory of the menu 
builder, I noticed that the submenu items disappear from the list if you close 
and re-open the Menu Builder, however, the items don’t disappear from the 
button’s text in the PI, so they are intact still there. This bug means you 
only get one shot at setting up the submenu items in the Menu Builder, after 
that you would need to do any further editing of this menu in the button’s PI 
by adding or subtracting tabs in the button’s text.

For more info checkout the "Creating Cascading Menus” section on P182 of the 
user guide.

It seems this odd behaviour started with LC8.0 (dp3), there is a bug report Bug 
18316 

Paul

> On 19 Nov 2017, at 03:29, Yves COPPE via use-livecode 
>  wrote:
> 
> Hello,
> 
> on macOS 10.13.1 and LiveCode 8.1.7
> 
> In the Menu Builder, I’ve made different menu items
> How can I create an submenu item of a menu item ?
> 
> Thanks.
> 
> 
> Greetings.
> 
> Yves COPPE
> yvesco...@mac.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

___
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: Image Offset in Frame

2017-11-15 Thread Paul Hibbert via use-livecode
For a simple rectangular crop you can just group the image and set the group 
bounds to the desired frame area, make sure you lock the location of the group 
and image, but ultimately I think the best person to answer your question would 
be Scott Rossi, so I’ll hand over to him…

http://tactilemedia.com/blog/2015/11/04/livecode-basics-masking-objects/

Paul

> On 15 Nov 2017, at 20:37, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> His is probably covered somewhere, but I can't find it.
> 
> In CSS we can position in image in frame with an offset like -20,-20
> 
> In most layout programs you can move the image around inside the frame.
> 
> How can we do that with an image in LiveCode?
> 
> I can use crop, but this is permanent
> 
> BR
> 
> ___
> 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: Does exporting a snapshot from a rect work on mobile?

2017-08-30 Thread Paul Hibbert via use-livecode
I just ran a quick test and it works OK for me using LC8.1.6 on MacOS Sierra 
10.12.6, build for iOS10 and tested on iPhone 5s running iOS10.3.3

HTH

Paul


> On Aug 30, 2017, at 7:00 PM, Jonathan Lynch via use-livecode 
>  wrote:
> 
> I am getting all black in the image, but I checked and the rect is the 
> correct rect.
> 
> Sent from my iPhone
> ___
> 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: Bad Crash on Attempt to Group Radio Buttons

2017-08-28 Thread Paul Hibbert via use-livecode
On Aug 28, 2017, at 7:07 AM, Randy Hengst via use-livecode 
 wrote:
> 
> I would find it very handy if when the cantSelect is true, you could still 
> drag to select objects that are above the control with cantSelect true… 
> 
> In other words, the ability to select the other controls with click and drag 
> when the initial click is within the rect of the control (usually a grc for 
> me) that has cantSelect set to true.
> 
> It certainly is possible to select the controls above the control with 
> cantSelect true… but only if the initial click is outside that rect.
> 
> I hope all of that makes sense.
> 

AFAIK you can achieve this if you also set the disabled of the control to true.

Paul
___
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: Ink pullDown menu

2017-08-11 Thread Paul Hibbert via use-livecode
The fontNames is a built-in function, but there’s no built-in function for ink 
names AFAIK, however, that doesn’t stop you form creating a custom function, 
something like this should work for an option menu button (edit as appropriate):

on mouseEnter
   if word 1 of the selectedObject = "image" then
  put inkNames("img") into me
   else
  put inkNames() into me
   end if
end mouseEnter

function inkNames pChoice
   if pChoice = "img" then
  return "blendPlus" & cr & \
"blendMultiply" & cr & \
"blendScreen" & cr & \
"blendOverlay" & cr & \
"blendDarken" & cr & \
"blendLighten" & cr & \
"blendDodge" & cr & \
"blendBurn" & cr & \
"blendHardLight" & cr & \
"blendSoftLight" & cr & \
"blendDifference" & cr & \
"blendExclusion"
   else
  return "blendClear" & cr & \
"blendSrc" & cr & \
"blendDst" & cr & \
"blendSrcOver" & cr & \
"blendDstOver" & cr & \
"blendSrcIn" & cr & \
"blendDstIn" & cr & \
"blendSrcOut" & cr & \
"blendDstOut" & cr & \
"blendSrcAtop" & cr & \
"blendDstAtop" & cr & \
"blendXor"
   end if
end inkNames

Paul


> On Aug 11, 2017, at 9:39 AM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> I can have a pullDown menu with this sort of script:
> 
> put the fontNames into me
> 
> how can I do the smae sort of thing for Ink?
> 
> e.g. (pseudocode): put the inkNames into me
> 
> Richmond.
> ___
> 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: how to get the value of a custom property if the name of the cProperty is in a variable?

2017-08-02 Thread Paul Hibbert via use-livecode
> 
> let´s say a card has a custom property name cMyProp.
> 
> The variable tMyVar contains the word “cMyProp”
> 
> How do i get the value of the custom property using the variable tMyVar?

Using the “do” command, a quick test and this works OK:

on mouseUp
put "cMyProp" into tMyVar

do "put the" && tMyVar && "of this card into fld 1"

end mouseUp


Paul
___
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: Livecode on iPod

2017-07-15 Thread Paul Hibbert via use-livecode


> On Jul 15, 2017, at 7:20 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> the SA builder does not show "iPod" under iOS.

It does for me! :)

I see three options;
iPod, iPhone and iPad
iPod and iPhone
iPad

Paul
___
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: [ANN] Release 8.1.6 RC-1

2017-07-11 Thread Paul Hibbert via use-livecode
Configurable sounds like a great idea to me too. I’d like to see a more defined 
break from the regular handlers if that’s possible.

Also there is a Typo - PasteKey in the Field script is missing the “P” - it 
just states asteKey, I wondered what that was! :)

Paul


> On Jul 11, 2017, at 8:01 PM, J. Landman Gay via use-livecode 
>  wrote:
> 
> I'd vote for this, a configurable option would make everyone happy.
> 
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> 
> 
> On July 11, 2017 5:38:43 PM Alex Tweedly via use-livecode 
>  wrote:
> 
>> 
>> 
>> On 11/07/2017 23:07, Kevin Miller via use-livecode wrote:
>>> Is it something perhaps you could get used to?
>>> 
>>> We are working hard to attract new users to the platform. This has come up
>>> again and again in user testing. This evening we tested this new handler
>>> list on new users for the first time. It went over very well.
>> So keep it.
>>   Make it on by default.
>>   Make it configurable so others can hide it if they want.
>> 
>> Alex.
>> 
>> 
>> ___
>> 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: [ANN] Release 8.1.5

2017-07-10 Thread Paul Hibbert via use-livecode
I just saw the Link Arm error, but the dialogue also suggested updating the 
path to the Xcode tools, I did this with [ sudo xcode-select -r ] in terminal 
and all works correctly now. This is with Xcode 8.3 installed in the default 
Applications folder. I haven’t tried updating Xcode to 8.3.3 just yet though!

Paul




> On Jul 10, 2017, at 10:32 AM, Mike Kerner via use-livecode 
>  wrote:
> 
> I did clear the PP's.  I'll try downloading an older xcode to see if that
> helps, since right now I'm stopped.
> 
> On Mon, Jul 10, 2017 at 1:20 PM, panagiotis merakos via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> @MIke I guess that Xcode8.3.3 is the one in /Applications/Xcode.app? BTW I
>> would suggest to have separate folders for each Xcode version, to avoid
>> problems where the Xcode version is updated automatically (the one
>> in /Applications/Xcode.app), but LC not yet supports this Xcode version. I
>> have a folder "Xcode" with subfolders "Xcode_8_2_1", "Xcode_8_3_3" etc, and
>> each one of the has the respective "Xcode.app" binary.
>> 
>> Regarding the other issue you mentioned, I have not seen it, but I would
>> recommend clearing any old provisioning profiles so as the dropdown does
>> not get too large. The provisioning profiles live in
>> /Users//Library/MobileDevice/Provisioning Profiles/
>> You could clear the contents of this folder, and then download only the
>> valid provisioning profiles directly from the Apple Dev Centre (and not
>> from Xcode preferences). Then double click on the profile you downloaded,
>> and Xcode will place it in /Users//Library/
>> MobileDevice/Provisioning
>> Profiles/
>> 
>> Now, about the codesign issue itself, I will have a look at the bug report
>> later this week.
>> 
>> @Richmond
>> Why moderately exciting, and not super exciting? :)
>> 
>> Best,
>> Panos
>> --
>> 
>> On Mon, Jul 10, 2017 at 6:07 PM, Mike Kerner via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> 10.12.5
>>> 8.3.3
>>> /Applications/Xcode.app/Contents/Developer
>>> 
>>> I've also run into another weird thing with this version of xcode.
>>> Thinking that I had a cert or provisioning profile problem, I went in to
>>> prefs and pulled up the certs.  Every time I do that, xcode creates a new
>>> one - both developer and distribution.
>>> 
>>> On Mon, Jul 10, 2017 at 1:02 PM, panagiotis merakos via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
 hmm, I have not seen that before. Which Sierra version are you using? I
>>> am
 on Sierra 10.12.4.
 
 Are you using Xcode 8.3.3?
 
 What is the terminal output if you type "xcode-select -p"?
 
 On Mon, Jul 10, 2017 at 5:46 PM, Mike Kerner via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
> I was able to get the build to get further by switching the ios
>> version
 to
> the latest one (10.3), but now I'm getting a codesigning failed,
> segmentation fault 11 error.  Bug 20030.
> ___
> 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
 
>>> 
>>> 
>>> 
>>> --
>>> 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@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
>> 
> 
> 
> 
> -- 
> 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@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 ur

Re: PrintPaperRectangle

2017-07-04 Thread Paul Hibbert via use-livecode
i came to the same conclusion, thank you for reporting it.

Paul

> On Jul 4, 2017, at 9:08 AM, Ben Rubinstein via use-livecode 
>  wrote:
> 
> By synchronicity, I start writing a very similar message a few days ago.
> 
> I stopped writing the email when I'd typed the words "is there another print 
> property I should be using?" and as is often the case when I draft a 
> despairing message to the use- list, this prompted me to look a bit harder 
> and find the answer.
> 
> My problem, at least, was solved by finding the printPaperSize, which 
> correctly returns (for A4 at 100%) "595,842" - a reasonable approximation for 
> A4 paper converted to inches at 72dpi.
> 
>> Can anyone shed some light on this please.
> 
> Simple answer: it's a bug. At some point the printPaperRectangle has been 
> nobbled to be exactly the same as the printRectangle. I've reported this as
> http://quality.livecode.com/show_bug.cgi?id=19997
> 
> In the meantime, the printPaperSize is your friend, provided the page setup 
> is at default scale and orientation: in this case, the printPaperRectangle 
> should be the same as printPaperSize with two zeros.
> 
> However if you're not at default scale/orientation, you're a bit out of luck. 
> You can reasonably infer orientation from the printRectangle, but there's not 
> a reliable way to figure out the true scaled paper size from the combination 
> of printRectangle and printPaperSize (which is why we need 
> printPaperRectangle).
> 
> Ben
> 
> 
> On 30/06/2017 19:17, Terence Heaford via use-livecode wrote:
>> LC 8.1.4, MacOS 10.12.5
>> Print Paper Rectangle returns 8,8,834,587 for A4 Landscape.
>> This does not seem to match the description in the dictionary?
>> "The printPaperRectangle property contains four comma-separated integers and 
>> is in points.
>> The default value reflects the default values of the printPaperSize and 
>> printPaperOrientation.
>> The four numbers represent the left, top, right and bottom of the rectangle 
>> being printed to.
>> The rectangle is relative to the top-left of the page, and the left and top 
>> will currently always be 0.”
>> Can anyone shed some light on this please.
>> Thanks
>> Terry
>> ___
>> 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



Paul
p...@livecode.org

Mac OS Sierra 10.12.1



___
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: Capturing screen into image

2017-07-01 Thread Paul Hibbert via use-livecode
Terry,

If your concern is that the area of the card doesn’t print exactly as you see 
it on screen, it looks to me like the printMargins are set at the default 72 
all round.

Try setting the printMargins to 0
set the printMargins to "0,0,0,0"


Paul



Paul
p...@livecode.org

Mac OS Sierra 10.12.1



> On Jul 1, 2017, at 1:55 PM, Terence Heaford via use-livecode 
>  wrote:
> 
> Hi,
> 
> Thanks for your suggestion but I am afraid it’s not working here:
> 
> I have prepared a short movie on dropbox so you can see what happens when I 
> print it and then open as PDF in MacOS Preview.
> 
> Not sure at all what is going wrong. Could it be something to do with the 
> scaling in the amCharts example?
> 
> Dropbox Link:  https://www.dropbox.com/s/1ijbw12v0176kgm/test.mov?dl=0
> 
> Thanks
> 
> Terry
> 
> 
>> On 1 Jul 2017, at 18:26, hh via use-livecode  
>> wrote:
>> 
>> This works here.
>> 
>> on mouseUp
>> local ii="myImage", bb="Browser"
>> if there is no img ii then create img ii
>> put globalLoc(the topLeft of widget bb) into TL
>> put globalLoc(the botRight of widget bb) into BR
>> export snapshot from rect (TL,BR) to img ii as PNG
>> hide widget bb -- avoid artefacts from browser update
>> print card from (the topLeft of img ii) to (the botRight of img ii)
>> show widget bb
>> end mouseUp
>> 
>> 
>> ___
>> 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: 8.1.4 Export snapshot

2017-06-28 Thread Paul Hibbert via use-livecode
Hi Panos,

I’ve just come to the same conclusion, when I checked the LC app bundle, the 
test files were in there. A search in the Mac Finder doesn’t reveal files 
inside the app bundle, so this is where I went wrong until the penny dropped!

Setting the default folder first does remedy the problem of knowing where the 
files end up if you don’t specify a file path.

This is an example of, why reading the notes in the dictionary more thoroughly 
could relieve some frustration! :)

Paul


> On Jun 28, 2017, at 12:31 PM, panagiotis merakos via use-livecode 
>  wrote:
> 
> Hi all,
> 
> I have tried in LC 8.1.5 RC-2:
> 
> export snapshot from Field 1 to file "File1.png" as PNG
> 
> This works as expected, and creates a "File1.png" in **the defaultFolder**
> (in my case in /Applications/LiveCode Indy 8.1.5 (rc 2).app)
> 
> @Paul
> Can you "put the defaultFolder", and check if there is a file "abc.png" in
> it?
> 
> @Richmond
> Every bug report on a supported platform (including Mac OS 10.7.8, in LC
> 8.x) "goes down well" in Edinburgh :)
> 
> Best,
> Panos
> --
> 
> 
> On Wed, Jun 28, 2017 at 7:26 PM, Richmond Mathewson via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> 
>> 
>> On 6/28/17 7:45 pm, Paul Hibbert via use-livecode wrote:
>> 
>>> This looks like it may be a bug on Mac OS, or just a difference in the
>>> way the OS works.
>>> 
>>> I see the same problem using LC 8.1.5(rc1) on Mac OS Sierra 10.12.4, but
>>> if I give the file a more complete path (which I would normally do), then
>>> it does work:
>>> 
>>> export snapshot from group "abc" to file 
>>> "/Users/paulhibbert/Desktop/abc.png"
>>> as PNG
>>> 
>>> However, I would have expected an error or at least something in the
>>> result with your example, but they were both empty when I tried:
>>> 
>>> on mouseUp
>>> 
>>>   try
>>> 
>>>  export snapshot from group "abc" to file "abc.png" as PNG
>>> 
>>>   catch tError
>>> 
>>>   end try
>>> 
>>> put "The Result:" & the result && "Error:" & tError
>>> 
>>> end mouseUp
>>> 
>>> Are you going to file a bug report?
>>> 
>> 
>> No, I don't think I can as I'm not entirely sure how well Mac OS 10.7.8
>> will go down in Edinburgh.
>> 
>> Richmond.
>> 
>> 
>> 
>>> Paul
>>> 
>>> 
>>> On Jun 28, 2017, at 1:58 AM, Richmond Mathewson via use-livecode <
>>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> Mac OS 10.7.8
>>>> 
>>>> in LC 7.1.4 if I type this sort of thing into the Message box:
>>>> 
>>>> export snapshot from group "abc" to file "abc.png" as PNG
>>>> 
>>>> it exports a snapshot of my group!
>>>> 
>>>> But that doesn't work in 8.1.4.
>>>> 
>>>> Richmond.
>>>> ___
>>>> 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



Paul
p...@livecode.org

Mac OS Sierra 10.12.1



___
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: 8.1.4 Export snapshot

2017-06-28 Thread Paul Hibbert via use-livecode
This looks like it may be a bug on Mac OS, or just a difference in the way the 
OS works.

I see the same problem using LC 8.1.5(rc1) on Mac OS Sierra 10.12.4, but if I 
give the file a more complete path (which I would normally do), then it does 
work:

export snapshot from group "abc" to file "/Users/paulhibbert/Desktop/abc.png" 
as PNG

However, I would have expected an error or at least something in the result 
with your example, but they were both empty when I tried:

on mouseUp

   try

  export snapshot from group "abc" to file "abc.png" as PNG

   catch tError

   end try

put "The Result:" & the result && "Error:" & tError

end mouseUp

Are you going to file a bug report?

Paul


> On Jun 28, 2017, at 1:58 AM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> Mac OS 10.7.8
> 
> in LC 7.1.4 if I type this sort of thing into the Message box:
> 
> export snapshot from group "abc" to file "abc.png" as PNG
> 
> it exports a snapshot of my group!
> 
> But that doesn't work in 8.1.4.
> 
> Richmond.
> ___
> 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: Preference for Keeping Saved Empty Button Scripts Empty

2017-06-19 Thread Paul Hibbert via use-livecode
On Jun 19, 2017, at 8:19 AM, Sannyasin Brahmanathaswami via use-livecode 
 wrote:
> 
> so, does it make sense to request a feature enhancement to add a preference 
> to *not* insert any handler in buttons/widgets, whose scripts are empty if 
> inadvertently opened?  there would need to be a way to differentiate between 
> one newly created vs one that was previously instantiated, whose script had 
> been emptied and saved

But, if you simply close the control’s script after inspecting it without 
‘saving’ it, then the control has no script, so there’s no need to try to save 
an empty script.
The control only has an empty mouseUp handler if you save it that way.

To prove it try this:

Create a button by dragging one off the tool palette or from the Object Menu
in the message box, type; put the script of the last button
> The message box result is empty

Now open the script editor for the button and save the default script
in the message box, type; put the script of the last button
> The control's script will show in the message box result

HTH

Paul
___
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: Scrollbars in 8.1.3

2017-05-06 Thread Paul Hibbert via use-livecode
In LC 7.1.4 you can set the orientation property in the inspector panel under 
Basic Properties, but not in LC 8.1.3 for some reason, the option menu is 
greyed out which suggests it could be a bug to me, however, the dictionary 
states:

Use the orientation property <> to find out whether a scrollbar <> is 
horizontal or vertical.

If the scrollbar's height <> is greater than or equal to its width <>, the 
scrollbar <> is vertical. If the width <> is greater than the height <>, the 
scrollbar <> is horizontal.

To change a scrollbar's orientation, change its width <> and height <> 
properties <>.

The dictionary for LC7 or 8 doesn’t say you can set this property, and if you 
try using the message box it tells you that it can’t set this property. So I 
guess you will have to set the orientation by setting the size to suit in LC 
8.1.3.

I don’t see why the option should be greyed out though.

Paul

Paul
p...@livecode.org

Mac OS Sierra 10.12.1



> On May 6, 2017, at 1:28 PM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> I don't know.
> 
> I just set up a vertical scrollbar in an LC 7.1.4 stack, saved it and opened 
> it up in 8.1.3.
> 
> Richmond.
> 
> On 5/6/17 6:51 pm, Paul Hibbert via use-livecode wrote:
>> How are you trying to set the scrollbar to vertical?
>> 
>> Setting or dragging the SB rect to the desired dimensions should 
>> automatically change it’s orientation as soon as it's width is less than 
>> it's heigh, is this not working?
>> 
>> Paul
>> 
>> 
>>> On May 6, 2017, at 6:42 AM, Richmond Mathewson via use-livecode 
>>>  wrote:
>>> 
>>> I seem quite unable to set a scrollbar to
>>> be vertical in LC 8.1.3 (Mac OS 10.7.5).
>>> 
>>> Richmond.
>>> ___
>>> 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: Scrollbars in 8.1.3

2017-05-06 Thread Paul Hibbert via use-livecode
How are you trying to set the scrollbar to vertical?

Setting or dragging the SB rect to the desired dimensions should automatically 
change it’s orientation as soon as it's width is less than it's heigh, is this 
not working?

Paul


> On May 6, 2017, at 6:42 AM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> I seem quite unable to set a scrollbar to
> be vertical in LC 8.1.3 (Mac OS 10.7.5).
> 
> Richmond.
> ___
> 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: xCode ??? version

2017-05-03 Thread Paul Hibbert via use-livecode
I’ve seen this warning in Xcode when connecting my iPhone 5s after updating it, 
but copying my LC app on to the phone still works and the app runs OK, just 
can’t use the simulator.

Anyway, just try it, preferably without overwriting any currently working app, 
and it should be fine. 

Paul

Paul
p...@livecode.org

Mac OS Sierra 10.12.1



> On May 3, 2017, at 11:13 AM, William Prothero via use-livecode 
>  wrote:
> 
> Note: I see, from the release notes that the highest iOS version supported is 
> 10.2.
> Hopefully this will change. Next update? I use my app and depend on it, so 
> i’m keenly interested in having it on my iPhone, I probably should have 
> waited to update the iOS system, but…… silly me.
> Best,
> Bill P
> 
>> On May 3, 2017, at 11:07 AM, William Prothero via use-livecode 
>>  wrote:
>> 
>> When I load the app into the Simulator, with xCode 8.2.1, then go to the 
>> menu “Hardware/Manage Devices” menu, I get the message that says:
>> “Could not locate device support files. The iPhone 6 is running iOS 10.3.1, 
>> which may not be supported by this version of Xcode.”
>> 
>> So, it looks to me like Livecode 8.1.4(rc1) does not support iOS 10.3.1, the 
>> latest version.
>> 
>> Does this seem reasonable.
>> Xcode versions 8.3 is not supported by the latest livecode releases.
>> Can I hope that this will be fixed soon?
>> Bill P
>> 
>>> On May 3, 2017, at 12:10 AM, Dave Kilroy via use-livecode 
>>>  wrote:
>>> 
>>> tldr - don’t use Xcode 8.3 yet, you can still build for iOS 10.3
>>> 
>>> 
>>> 
>>> Bill the Release Notes are a good place to check such issues. The following 
>>> is an extract for release notes for LiveCode 8.1.4(rc1)
>>> 
>>> iOS
>>> 
>>> iOS deployment is possible when running LiveCode IDE on a Mac, and provided 
>>> Xcode is installed and has been set in LiveCode Preferences (in the Mobile 
>>> Support pane).
>>> 
>>> 
>>> 3
>>> 
>>> LiveCode 8.1.4-rc-1 Release Notes 4/4/17
>>> 
>>> Currently, the supported versions of Xcode are:
>>> 
>>> Xcode 4.6 on MacOS X 10.7
>>> Xcode 5.1 on MacOS X 10.8
>>> Xcode 6.2 on MacOS X 10.9
>>> Xcode 6.2 and 7.2 on Mac OS X 10.10 Xcode 8.2 on MacOS X 10.11
>>> 
>>> Xcode 8.2 on MacOS 10.12
>>> 
>>> It is also possible to set other versions of Xcode, to allow testing on a 
>>> wider range of iOS simulators. For instance, on OS X 10.10 (Yosemite), you 
>>> can add Xcode 5.1 in the Mobile Support preferences, to let you test your 
>>> stack on the iOS Simulator 7.1.
>>> 
>>> We currently support deployment for the following versions of iOS:
>>> 
>>> 6.1 [simulator] 7.1 [simulator] 8.2 [simulator] 9.2
>>> 
>>> 10.2 
>>> ___
>>> 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: Bug in the inspector palette

2017-04-17 Thread Paul Hibbert via use-livecode
I can confirm your findings, also affects LC8.1.4 (rc 1).

Paul

MacOS Sierra 10.12.4

> On 17 Apr 2017, at 02:08, Tore Nilsen via use-livecode 
>  wrote:
> 
> I have come across what must be a bug in the IDE, in the inspector palette to 
> be precise. I have a script where I set some text properties of the 
> templateField on the fly, like font, size and color. These settings also 
> affect the objects of the “Basic" pane in the inspector, changing the 
> properties of fields and buttons. Switching from the “Basic” pane to any 
> other pane and back again fixes the problem. If the font size is set to a 
> very high value, the “Basic” pane becomes useless, as only parts of the text 
> of the label fields will be shown, and the text of the buttons “disappears”. 
> The whole layout of the pane gets distorted. Has anyone else come across this 
> problem? It appears both in LC 8.1.3 and LC 9 (dp5) on a Mac with macOS 
> 10.12.4.
> 
> Regards 
> Tore Nilsen
> ___
> 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: Browser widget on linux

2017-04-13 Thread Paul Hibbert via use-livecode

> On 13 Apr 2017, at 10:17, hh via use-livecode  
> wrote:
> 
> Hi Pano,
> thank you very much for coming in.
> 
> Please correct the typo in the first link.
> I got "16848 is not a valid bug number" and don't know
> which report you mean.

hh, maybe try again, it is the correct number, there may have been a glitch 
when you tried, it just worked fine for me.

> We all know you do a real good job to collect (and even
> remove at once some of) and categorize the bugs in a
> very complicated  structure.
> Let me use this opportunity to thank you for that.

I’ll second that. It can’t be an easy job, especially with all of the platforms 
involved, that’s just one of the reasons we all need some patience and 
confidence!

Paul
___
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: Browser widget on linux

2017-04-13 Thread Paul Hibbert via use-livecode
Looking at Bugzilla, I’m hoping it will soon be time for the Browser widget to 
be given some attention, and not just on Linux, there seems to be over 30 
active bugs. The bug I submitted over 10 months ago was for a crash on Mac OS 
(Bug 17928 ), but I gather 
(and appreciate) the team have been way too busy to address this and the other 
outstanding bugs, so I’m just sitting and waiting patiently with my projects on 
hold as there’s no easy workaround for this bug.

On the plus side, when they do rebuild the browser widget, there's lots of 
useful info in there for the team to deliver a more stable and more useable 
browser widget, I personally hope it’s not too long before that happens.

Paul

> On 13 Apr 2017, at 09:19, Richard Gaskin via use-livecode 
>  wrote:
> 
> Thanks for the background info.
> 
> Can you share the bug report ID's so I can follow those in Bugzilla?
> 
> -- 
> Richard Gaskin
> 
> hh wrote:
> Richard G. wrote (in the 'vertical-text'-thread):
> On disk the Linux build of CEF takes up 135 MBs, and like any
> browser I would imagine it more than doubles RAM requirements
> for an app using it.
 hh wrote:
 I would even give a full Gigabyte of RAM if this could make the
 browser widget work on linux ...
>>> Richard G. wrote:
>>> had pretty good luck on Ubuntu 14.04 64-bit - what's your setup?
>> 
>> Richard, I moved this to a new thread, fitting more the subject. Hope
>> it is OK for you. Thanks that you came in.
>> 
>> After your report I was full of hope that the three years old ubuntu
>> 14.04.5 and LC 8.1.3 or 8.1.4-rc1 would yield a fully functional
>> browser widget. Installed in a fresh setup Ubuntu 14.04.5 and fresh
>> LC 8.1.3/8.1.4-rc1/9.0.0.-dp6 (all 'for this user only').
>> 
>> Running 8.1.3-64bit it is better than the others tested below in that
>> it _randomly_ works correct and doesn't show bug 3 below (yes, bugs 1
>> 2 too). If not working it instead creates several additional processes
>> libbrowser-cefp.
>> And it  creates with every startup fresh preferences, declaring the old
>> one as corrupt. Running 8.1.3 on Ubuntu 14.04.5-32bit is the same as
>> described below.
>> 
>> Within the last two weeks I tested the following, on real hardware
>> (additionally some on on virtualBox):
>> *Latest LTS* of Ubuntu (also Xubuntu, Lubuntu, Mint), Debian, Fedora.
>> 
>> In sum 10 trials (6 on 64bit, 4 on 32bit). All OSes are running without
>> problems. LC 8.1.3, 8.1.4-rc1, 9.0.0-dp6 runs and works using LC Script.
>> 
>> ** But I had _NO_SUCCESS_ in these 10 trials with a browser widget.
>> ** I wonder if anybody ever tested the _full_ functionality of the
>> ** browser widget on a newer LTS linux flavour.
>> 
>> Full functionality means that you can *do* javascript in the browser.
>> You can't even come into a state to test that: These severe 'bugs'
>> are common to _all_ my trials (incl. on Ubuntu 16.04.2):
>> 
>> Bug 1: Open a new stack, drag a browser widget symbol from "Tools".
>> The widget portion of "Tools" disappears. Mostly LC hangs after that,
>> you need the system monitor or a terminal to kill it.
>> 
>> Bug 2: Open a new stack, create a browser widget by LC-menu or script.
>> Try to open the property inspector. No reaction.
>> Try to quit LC. The "something-dialog" burns onto your screen. LC hangs
>> after that ... (as above).
>> 
>> Bug 3: Open a stack with an included widget that runs on Mac and Win on
>> all systems that run LC 8/9 (for example: "Browser widget on linux
>> or "Sample stacks/Browser widget image manipulator" or "Sample stacks/
>> LCImageToolbox89").
>> At latest after the second load LC hangs, you need the system monitor
>> or a terminal to kill it and it's "something-dialog".
>> 
>> I'm deeply disappointed about these extreme results, especially because
>> we know  that several members of the core team also use linux on their
>> own machines.
> 
> 
> ___
> 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: OT (?): Bookmarking GPS coords

2017-04-12 Thread Paul Hibbert via use-livecode
Alex, I used this lesson [ 
http://lessons.livecode.com/m/4069/l/30379-how-do-i-get-the-location-and-use-the-digital-compass
 ] as the basis for a GPS location in one of my iOS apps, if it helps I could 
save the relevant card to a new stack and send you a copy, I’m pretty sure it 
would work on Android too, I just haven’t tested that.

It wouldn’t be difficult to adapt it for your needs.

Paul

> On 12 Apr 2017, at 16:45, Alex Tweedly via use-livecode 
>  wrote:
> 
> 
> 
> On 11/04/2017 01:40, jonathandly...@gmail.com wrote:
>> Rather than travel physically, could you just move in the map, and program 
>> it to record your click locations in a map?
>> 
>> 
> Indeed. Earlier I talked about a 'desktop app' and a 'mobile app'. The 
> 'desktop app' is exactly what you describe  - it shows you a map, lets you 
> position a marker and then only one click is needed to associate that 
> marker's position with the current selected named address.
> 
> But (esp. out here in the boonies :-), the map is sometimes lacking enough 
> detail to allow accurate positioning by anyone who is not a map enthusiast, 
> so I see a need for the mobile / GPS app in addition.
> 
> Thanks
> Alex.
> 
> ___
> 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: how to print only a part of a card?

2017-04-12 Thread Paul Hibbert via use-livecode
Tiemo,

There’s nothing wrong with your logic, this all works fine on a Mac, LC8.1.4 
(rc1), but from an earlier post I gather you are on Win 10 so this looks like 
there's a bug in the works, maybe a Linux user could test also.

Have you tried any other versions of LC?

HTH

Paul

> On 12 Apr 2017, at 06:40, Tiemo Hollmann TB via use-livecode 
>  wrote:
> 
> Hello,
> 
> probably I don't see the obvious or my math is slightly rusty. I am trying
> to print only a section of a card, e.g. a rectangle, but I always only get a
> (left and bottom) clipped rectangle being printed. Only when printing the
> whole card I get the full rectangle. I am running out of paper from my
> multiple tests :)
> 
> Here is what I tried:
> 
> 
> 
> on mouseUp
> 
>   # create a stack, size: 348,527
> 
> # create a button with this script
> 
>   # create a rectangle, size: 297,421
> 
>   -- set the printpapersize to 595,842 # optional test # A4
> 
>   -- set the printmargins to 40,57,40,57 # optional test
> 
>   -- set the printscale to .5 # optional test
> 
> 
> 
>   open printing with dialog
> 
>   if the result is not "cancel" then
> 
>  put the left of grc "rectangle" into item 1 of tLeftTop
> 
>  put the top of grc "rectangle" into item 2 of tLeftTop
> 
>  put the right of grc "rectangle" into item 1 of tRightBottom
> 
>  put the bottom of grc "rectangle" into item 2 of tRightBottom
> 
> 
> 
>  print this card from tLeftTop to tRightBottom
> 
>  -- print this card from tLeftTop to tRightBottom into 149,210,635, #
> optional test
> 
>  -- print this card from tLeftTop to tRightBottom into 40,57,337,478  #
> optional test  # margins+ rectangle
> 
> -- print this card # this is for me the only chance to get the whole
> rectangle printed
> 
>   end if
> 
>   close printing
> 
> end mouseUp
> 
> 
> 
> Does anybody see the error in my logic?
> 
> Tiemo
> 
> 
> 
> 
> 
> ___
> 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: OS X Firewall triggering on launch

2017-04-10 Thread Paul Hibbert via use-livecode
Just checked my Firewall settings and there’s no entry for LC, but I’m not 
seeing any trigger, I’ve used LC 9.0 (dp6) quite a few times since install and 
no problem so-far!

Mac OS Sierra 10.12.4

Paul

 
> On 10 Apr 2017, at 23:21, J. Landman Gay via use-livecode 
>  wrote:
> 
> LC 9.0dp6 triggers the OS X firewall every time I launch it. I know I can set 
> the firewall to accept LC so it won't warn me, but I'm wondering what LC is 
> doing that makes that happen. I suspect it has something to do with remote 
> debugging. Does anyone know?
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.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


___
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: spotting a mouseclick in the transparent area of an image

2017-04-02 Thread Paul Hibbert via use-livecode
Ben, if you could edit the PNGs to add a 1% tone to the transparent areas 
(maybe with a batch process) this allows LC to accept the clicks within the 
image area.

The advantage of this is you could have a 1 % tone inside the area you need be 
active and completely transparent where you don’t want clicks to be active for 
example a circular button. The 1% tone should be indistinguishable from the 
transparent area and will still show the background through.

Paul


> On Mar 30, 2017, at 10:52 AM, Ben Rubinstein via use-livecode 
>  wrote:
> 
> I have a group containing a grid of square images.
> 
> Some of the images are gifs, some are pngs, and some of the latter have an 
> alpha channel with some transparent bits.
> 
> The images are all used as buttons, to control something else - the images in 
> essence are labels or icons for the buttons. The images have 3d borders to 
> make them look more button-like.
> 
> The problem is that the if the user happens to click in the transparent area 
> of an image, the target of the mouseup isn't the image but the card. But the 
> image is a button, so I want to catch mouseup anywhere in this square image.
> 
> I thought that I might be able to use 'the mousecontrol', when the target was 
> the card, to find out which image the mouse was in when; but this too takes 
> account of the transparency of the image.
> 
> I can see this is a really useful feature - but in this case I want the 
> opposite! Is there a flag somewhere, or another easy way to achieve this?
> 
> The non-easy ways I'm aware of are:
>   - hide all the images and replace them with buttons referencing the 
> images
>   - re-compositing the images to flatten the alpha channel
>   - iterating through all the images - there are many, in a scrolling 
> group - testing for the mouseloc within the rect of each
> 
> 
> Is there anything simpler than this, to treat an image as opaque for the 
> purposes of hit-testing?
> 
> TIA
> 
> Ben
> 
> 
> 
> ___
> 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: Extra Title Bar in All Stacks

2017-03-26 Thread Paul Hibbert via use-livecode
Ah! that’s the bit I forgot to mention, I think it is a system wide shortcut 
(it works in some other apps), I have seen it appear in the LC View menu, but 
not always for some odd reason. If you hit cmd-shift-t with the menu open it 
immediately selects Toolbar-Text, so I wonder if this is clashing somehow.

Paul

> On 26 Mar 2017, at 19:04, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> OK… see this:
> 
> http://quality.livecode.com/show_bug.cgi?id=19276
> 
> the problem was, (not documented anywhere that I can find.) I must have hit 
> cmd-shift-t inadvertently… I'm not seeing this in the Mac short cuts… so I 
> guess it is a LC short cut?  
> 
> once you hit that inadvertently, then thereafter stacks open with two title 
> bars. Hit this combo again and they go away, quit livecode and they are still 
> gone. 
> 
> Mysterious. One wonders where the 'memory" of this setting resides, if not in 
> the OS shortcuts and not in LC settings..
> 
> roblem solved for now.
> 
> 
> 
> 
> 
> On 3/26/17, 3:21 PM, "use-livecode on behalf of Sannyasin Brahmanathaswami 
> via use-livecode"  use-livecode@lists.runrev.com> wrote:
> 
>Now, that's obscure
> 
>I was in "In Full screen Only"
> 
>I set to sys prefs → dock → tabs→ "Manually"
> 
>But second tab title bar still appears on resizeable LC windows. even 
> after rebooting LC
> 
> 
> 
>Paul Hibbert via use-livecode"  behalf of use-livecode@lists.runrev.com> wrote:
> 
>Look at the fifth item down the window and you’ll see:
> 
>   Prefer tabs when opening documents: Always | In Full Screen Only | 
> Manually
> 
>If you set this to “Always” you will see the Tab Bars appear in 
> resizable LC windows.
>If it’s set to "In Full Screen Only”, then the tabs will appear if you 
> create a new stack while your current stack or window is open in full screen 
> mode.
>If it’s set to “Manually” then the Tab bars don’t normally appear.
> 
>These settings are obviously local to your machine, so I doubt it 
> would (easily) be successful to try developing an app that relies on this, so 
> to me it makes most sense to leave it set to “Manually”, but no doubt someone 
> could take advantage of this if they are willing to put in the extra effort 
> needed, but don’t take my word for that!
> 
> 
> 
> ___
> 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: Extra Title Bar in All Stacks

2017-03-26 Thread Paul Hibbert via use-livecode
This came up a while ago, and Colin Holgate pointed out that it comes from a 
System Preference setting for the Dock (go figure!).

Go to the Apple Menu, open System Preferences and choose the Dock icon.

Look at the fifth item down the window and you’ll see:

   Prefer tabs when opening documents: Always | In Full Screen Only | Manually

If you set this to “Always” you will see the Tab Bars appear in resizable LC 
windows.
If it’s set to "In Full Screen Only”, then the tabs will appear if you create a 
new stack while your current stack or window is open in full screen mode.
If it’s set to “Manually” then the Tab bars don’t normally appear.

These settings are obviously local to your machine, so I doubt it would 
(easily) be successful to try developing an app that relies on this, so to me 
it makes most sense to leave it set to “Manually”, but no doubt someone could 
take advantage of this if they are willing to put in the extra effort needed, 
but don’t take my word for that!

Paul

> On 25 Mar 2017, at 19:00, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> confirmed.
> 
> Create new stack (leave it untitled) 
> 
> … I am getting a second "tab bar"  under the *real* title bar of the new stack
> 
> Create second new stack
> 
> Hmmm,  yes, fascinating, I can drag the title bar slowly onto the first stack 
> and let go
> 
> Now I have
>   Untitled 2  # top of window
> 
> untitled 1 *  | Untitled 2 *  # two tabs
> 
> -- Nothing in the view menu relatedt to tabs.
> -- turn off resizeable in untitled 2 and the stack "jumps" out to a new 
> window.
> 
> OK, none of my stacks in this project need to be resizeable I can live with 
> it, but 
> a) why would it appear suddently and 
> b) why doesn't it go away after delete settings?
> 
> Is there another place where the engine is writing prefs or settings that we 
> don't know about?  It wasn't happening yesterday, in stacks that *were* 
> resizeable. Something I did today triggered this new behavior.
> 
> BR
> 
> On 3/25/17, 3:45 PM, "use-livecode on behalf of Colin Holgate via 
> use-livecode"  use-livecode@lists.runrev.com> wrote:
> 
>It’s a standard Sierra feature that LiveCode doesn’t fully support yet. 
> The View menu is supposed to have a Show Tab Bar menu item, which would hide 
> the tab bar part of the window. The option is there sometimes, so if you’re 
> lucky enough to see it you can deselect it.
> 
>If the tab bar is showing you can drag one stack’s tab bar to another 
> stack’s tab bar to dock them together. There should also be a + button in the 
> tab bar too, which in LiveCode I suppose would start a new stack as a tab.
> 
>Stacks that are docked together are effectively the same card size, so if 
> LiveCode does do better support it should be possible to start a new stack as 
> a tab, and at the card side of the existing stack, without you having to say 
> what size stack you want.
> 
> 
>> On Mar 25, 2017, at 6:20 PM, Sannyasin Brahmanathaswami via use-livecode 
>>  wrote:
>> 
>> Something bizarre started happening this afternoon
>> 
>> Mac OSx 10.12.3 Sierra
>> LC 9DP5
>> 
>> Stack are opening with a second title bar underneath the *real* title bar.
>> 
>> see http://wiki.hindu.org/uploads/extra-title-var.jpg
>> 
>> I deleted my settings, removed all plug-ins, deleted settings again, 
>> rebooted… stack still appear with a second title bar.
>> 
>> any clues to what is wrong?
>> 
>> BR
>> 
> 
> 
>___
>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: iOS SDK Question

2017-03-24 Thread Paul Hibbert via use-livecode

> On 23 Mar 2017, at 17:36, Glen Bojsza via use-livecode 
>  wrote:
> 
> Please let me know if I missed anything.


It looks like you are on the right path. Hope it goes well.

Paul
___
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: DragDrop makes windows unresponsive OS X

2017-03-24 Thread Paul Hibbert via use-livecode
Just tried a simple test on Mac OS Sierra / LC8.1.3 and it seems to work fine 
here. Is there anything else that could be interfering with the dragDrop?

Maybe the Message Watcher could give a clue as to what is happening.

Paul

> On 24 Mar 2017, at 08:00, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> Might just be me. I drag drop text onto a field with a dragdrop handler that 
> essentially puts the drag data ["text"] into itself. Doing so with 8.1.3 
> seems to cause the window to become unresponsive, that is none of the 
> controls work. I cannot click in fields, tab around, click buttons etc. 
> However if I navigate to another window, and then back again it becomes 
> responsive. Also, if I move the window with the title bar, it becomes 
> responsive again. Finally, if I exit to top at the end of the dragdrop 
> handler, THAT makes the window responsive. It's as though the dragdrop 
> message is still in effect in limbo somewhere. 
> 
> This seems to be a somewhat recent development. That is, I don't think it has 
> always been this way. Particularly in 8.0.x and prior, but I could not pin it 
> down to a minor version. 
> 
> Bob S
> 
> 
> 
> ___
> 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: iOS SDK Question

2017-03-23 Thread Paul Hibbert via use-livecode
AFAIK the iOS SDK comes with the particular flavour of Xcode and you need to 
have the correct version of Xcode to match the version of LC on your choice of 
OS, if you go to Help > Release Notes the version you need is listed under the 
iOS Platform Support section, about page 4 I think, or bookmark this link for 
future ref:

https://livecode.com/support/ask-a-question/what-iosxcode-version-matches-which-version-of-livecode/
 


According to this list, it appears that you need to use Xcode 7.3

Almost every time Xcode or LiveCode updates the connection breaks, so once you 
have a working combination it’s worth making sure you have a good back-up, 
especially considering Xcode is over 4.5GB. It also helps to turn off auto 
software updates and manage them manually.

Paul

> On 23 Mar 2017, at 13:20, Glen Bojsza via use-livecode 
>  wrote:
> 
> Hello,
> 
> I currently have Livecode Indy 8.0.1 and am running on OS X 10.11.5 (El
> Capitan) with Xcode Version 8.0 (8A218a).
> 
> When I go to generate a standalone I get the following error message:
> 
> *In order to perform device builds you need to have iOS 9.3 SDK configured.*
> *- iOS  9.3 comes with Xcode 7.3*
> 
> 
> How do I find what version of SDK I have and in Livecode Preferences what
> is the location I can add the entry for the SDK?
> 
> Years ago in Livecode 5 it seemed that Livecode knew all the SDK Versions
> available and the preferences reflected this?
> 
> regards,
> 
> Glen
> ___
> 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: align field scrolls

2017-03-05 Thread Paul Hibbert via use-livecode
I have a stack that does a similar thing, but with numbers and I just use the 
following script in the main field;

on scrollBarDrag pScroll
   set the vScroll of fld  “lineNumbers" to pScroll

end scrollBarDrag

Provided both fields have the same number of lines and the text properties are 
identical they should stay aligned correctly.

Or a simpler version would be;
set the vScroll of fld 2 to the vScroll of fld 1

Paul



> On Mar 5, 2017, at 6:00 PM, Nicolas Cueto via use-livecode 
>  wrote:
> 
> Hi.
> 
> The part I've got working...
> 
> Two clickable scrolling fields (fld1, fld2), same height and width. Click a
> fld1 line and fld2 SCROLLs and HILITEDLINEs to visually reveal a matching
> line. (fld1 is French text, fld2 is an English gloss.)
> 
> The part I would welcome your help with...
> 
> If, say, the hilited line on fld1 is kinda halfway down, how do I get the
> hilited line on fld2 to also be kinda halfway down?
> 
> Here's my scrolling-magic script:
> 
>  set the scroll of fld2 to (tMatchingLineNr - 1) * \
>the textHeight of fld2 - the textHeight of fld2
>  set the hilitedline of fld2 to tMatchingLineNr
> 
> Of course, this ends up with the hilited line of fld2 being at the top.
> How do I get it to scroll just that little bit more so that it aligns with
> the hilited line as seen in fld1?
> 
> 
> Thank you.
> 
> --
> Nicolas Cueto
> ___
> 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: Dragging widgets

2017-02-28 Thread Paul Hibbert via use-livecode
I would really love to see LC’s image handling improved, not just for SVG, 
although that would be a huge bonus, but for raster images too. I would happily 
put money into crowdfunding for this, provided the promises were kept of course.

Anyway, this is probably not the answer you are looking for, but one workaround 
until this problem is addressed, is to group your widget and then add your grab 
code to the group script.

It’s my understanding that widgets are not high on the priority list for bug 
fixes, so a workaround may be your only option if you need this anytime soon.

Paul

> On Feb 28, 2017, at 4:58 AM, Richmond Mathewson via use-livecode 
>  wrote:
> 
> So . . . can any one tell me how to effect a "grab" (which is the same 
> whether with a PNG image, a button
> or a graphic object) with a widget?

___
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: Call a function on another card

2017-02-23 Thread Paul Hibbert via use-livecode
> On Feb 23, 2017, at 12:32 PM, Peter Bogdanoff via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> put value("myFunction(hello, world)", group "myGroup" of card "myCard") into 
> tResult
> 
> I want to use a variable as a parameter instead of “hello, world” as in the 
> page example.

You could try:

put value(“myFunction(“ & myVar & ")", group "myGroup" of card "myCard") into 
tResult

Paul



___
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: MacOS Sierra - Tab Bar showing in Stack and IDE windows?

2017-02-20 Thread Paul Hibbert via use-livecode
Thank you James, I would never have thought Window Tab Prefs would be in Dock 
settings!

I’ll give it a try.

Paul

Paul
p...@livecode.org

Mac OS Sierra 10.12.1



> On Feb 20, 2017, at 4:46 AM, James Hale via use-livecode 
>  wrote:
> 
> So perhaps your Dock settings and the way you are using LC are triggering 
> this feature of Sierra.

___
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

  1   2   >