Re:

2019-06-03 Thread Knapp Martin via use-livecode
Are you setting the “ink” to something other than the standard srcCopy? I had 
some image weirdness that happened when I upgraded to Mojave, though I don’t 
remember which ink setting it was that caused it.

---
Marty Knapp


> On Jun 3, 2019, at 8:31 AM, Tom Bodine via use-livecode 
>  wrote:
> 
> Hi all.
> 
> I'm troubleshooting a rare image issue and hope you can help.
> 
> The issue is that some (not all) images used in a LC standalone app appear
> as black boxes.
> 
> Details:
> 
> * Only happens if user is on Mac Mojave.
> 
> * All pictures appeared normally for the users before upgrading to Mojave.
> After upgrading to Mojave, the black boxes appeared for certain pictures.
> (Other pictures in the same game work fine.)
> 
> * For one user, pictures that failed to render were all screenshots done on
> her Mac.
> 
> * For another user, failing pictures were all composite images from
> photographs. (He arranged one or more images on his screen and use Grab or
> Photoshop to capture them as a composite image.)
> 
> * The issue can happen with either jpg or png files.
> 
> * I am certain the picture paths are valid, because LC is finding them and
> sizing the image control's rect to the aspect ratio of the images.
> 
> * The app in use is a LC standalone built on Mac with LC 8.1.10.
> 
> * The app allows users to select images to add to a quiz. Images are stored
> in a media folder and loaded as needed into an image control for display.
> Only one image file is shown at a time. (This has worked reliably for many
> years.) The full path to the image file is provided to the image control.
> 
> Have you seen any similar issue or do you have a theory about what's going
> on?
> 
> Thanks,
> 
> Tom Bodine
> 
> P.S.: Apologies if this post appears more than once. My original listserve
> account wasn't working.
> ___
> 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: revMoveFolder on Windows

2019-01-25 Thread Knapp Martin via use-livecode
Well this turned out to be a default folder issue. So just before I move the 
folder, I set the default folder to something other than where the user stacks 
are stored and then the move works fine. It only seems to be an issue on 
Windows. Thanks to Ralph and Brian.

Marty

> On Jan 24, 2019, at 5:32 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> I've seen that with Excel with either the file or the folder(can't remember). 
> I opened a spreadsheet and closed it but the file/folder was still locked 
> until I closed Excel.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Brian Milby via use-livecode
> Sent: Thursday, January 24, 2019 8:22 PM
> To: How to use LiveCode
> Cc: Brian Milby
> Subject: RE: revMoveFolder on Windows
> 
> I think programs can lock a folder by having it set as the default folder (or 
> it could just be a side effect of them storing something there).  I’ve seen 
> it every once in a while in other programs, but can’t remember the last time. 
>  I have not tried to see if I could reproduce in LiveCode yet.  Ralph’s 
> suggestion sounds like a good thing to try.
> 
> Thanks,
> Brian
> On Jan 24, 2019, 7:05 PM -0600, Ralph DiMola via use-livecode 
> , wrote:
>> Beyond the obvious of having files open in the folder could it be that 
>> if you trying to move LC's current defaultfolder it causes a problem 
>> on Windows?
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
>> Behalf Of Knapp Martin via use-livecode
>> Sent: Thursday, January 24, 2019 7:21 PM
>> To: Use Livecode
>> Cc: Knapp Martin
>> Subject: revMoveFolder on Windows
>> 
>> I have an app that allows users to create documents and store then in 
>> a specified folder. Via a preference setting they can move the folder 
>> to a location of their choosing. I use revMoveFolder to do this. You 
>> can also move the folder where you want and then drag and drop it on 
>> the preference stack to establish the path to where it is.
>> 
>> This works fine on Mac but not on Windows - it fails. In fact when the 
>> app is open and I try to manually move the folder, Windows tells me 
>> "The action can't be completed because the folder is open in another 
>> program."
>> 
>> I understand that if a file was open by the app that this would come 
>> into play but how is a folder open to another program? Is there a way 
>> around this?
>> 
>> Marty
>> ___
>> 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: revMoveFolder on Windows

2019-01-25 Thread Knapp Martin via use-livecode
I made a simple test stack to move folders, saved as a standalone and it works 
fine - even moving the folder I’m trying to move in my real app. In my app 
where I’m having trouble (works fine on Mac but not on Windows) the result is 
returning “1” which isn’t really helpful!

Marty
> On Jan 24, 2019, at 5:32 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> I've seen that with Excel with either the file or the folder(can't remember). 
> I opened a spreadsheet and closed it but the file/folder was still locked 
> until I closed Excel.
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> -Original Message-
> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf 
> Of Brian Milby via use-livecode
> Sent: Thursday, January 24, 2019 8:22 PM
> To: How to use LiveCode
> Cc: Brian Milby
> Subject: RE: revMoveFolder on Windows
> 
> I think programs can lock a folder by having it set as the default folder (or 
> it could just be a side effect of them storing something there).  I’ve seen 
> it every once in a while in other programs, but can’t remember the last time. 
>  I have not tried to see if I could reproduce in LiveCode yet.  Ralph’s 
> suggestion sounds like a good thing to try.
> 
> Thanks,
> Brian
> On Jan 24, 2019, 7:05 PM -0600, Ralph DiMola via use-livecode 
> , wrote:
>> Beyond the obvious of having files open in the folder could it be that 
>> if you trying to move LC's current defaultfolder it causes a problem 
>> on Windows?
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdim...@evergreeninfo.net
>> 
>> 
>> -Original Message-
>> From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On 
>> Behalf Of Knapp Martin via use-livecode
>> Sent: Thursday, January 24, 2019 7:21 PM
>> To: Use Livecode
>> Cc: Knapp Martin
>> Subject: revMoveFolder on Windows
>> 
>> I have an app that allows users to create documents and store then in 
>> a specified folder. Via a preference setting they can move the folder 
>> to a location of their choosing. I use revMoveFolder to do this. You 
>> can also move the folder where you want and then drag and drop it on 
>> the preference stack to establish the path to where it is.
>> 
>> This works fine on Mac but not on Windows - it fails. In fact when the 
>> app is open and I try to manually move the folder, Windows tells me 
>> "The action can't be completed because the folder is open in another 
>> program."
>> 
>> I understand that if a file was open by the app that this would come 
>> into play but how is a folder open to another program? Is there a way 
>> around this?
>> 
>> Marty
>> ___
>> 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

revMoveFolder on Windows

2019-01-24 Thread Knapp Martin via use-livecode
I have an app that allows users to create documents and store then in a 
specified folder. Via a preference setting they can move the folder to a 
location of their choosing. I use revMoveFolder to do this. You can also move 
the folder where you want and then drag and drop it on the preference stack to 
establish the path to where it is.

This works fine on Mac but not on Windows - it fails. In fact when the app is 
open and I try to manually move the folder, Windows tells me "The action can't 
be completed because the folder is open in another program."

I understand that if a file was open by the app that this would come into play 
but how is a folder open to another program? Is there a way around this?

Marty
___
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-15 Thread Knapp Martin via use-livecode
Hi Monte,
This happens for me in a fresh instance in the IDE (LC 9.0.2 on Mac). Again, I 
have a 2nd larger monitor with the bottoms aligned, placing the top of the 2nd 
monitor higher than the main monitor. Then just type into the message box 
"Answer hello" and the dialog positions itself almost completely off screen.

I just had another customer contact me this morning complaining of the same 
issue. He's a laptop user with a 2nd large display aligned at the bottom, 
placing the top higher than the main monitor. When I had him align the tops it 
behaves fine.

Screenshots of my test:
http://martyknapp.on-rev.com/answer.html

Marty

> On Jan 14, 2019, at 7:00 PM, Monte Goulding via use-livecode 
>  wrote:
> 
> Hi Marty
> 
> I’m just wondering if you are using the standard IDE ask and answer dialog or 
> a custom one? If you are working on a very old stack then MetaCard used to 
> copy the ask and answer dialog into the stackFile as a substack. You should 
> be able to see them in the project browser under your mainstack. If that’s 
> the case then perhaps try deleting those.
> 
> Cheers
> 
> Monte
> 
>> On 15 Jan 2019, at 11:58 am, Knapp Martin via use-livecode 
>>  wrote:
>> 
>> Does that work for you Paul - it doesn’t for me. I’m having to do this:
>> 
>> send CenterAnswerOnScreen to me in 1 tick
>> answer “Blah blah blah”
>> 
>> on CenterAnswerOnScreen
>>  set the loc of stack "answer dialog" to the screenLoc
>> end CenterAnswerOnScreen
>> 
>> I have a couple of customers with small-screened laptops who use large 
>> secondary monitors aligned at the bottom. Thus the top of the secondary 
>> monitor is quite a bit above the main laptop monitor. Ask and Answer dialogs 
>> are so far off you can only see about the bottom 1/8 of an inch of the 
>> window and are thus unusable.


___
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-14 Thread Knapp Martin via use-livecode
> set the loc of stack "Ask Dialog" to screenLoc()
> ask "What color is you favorite?”

Does that work for you Paul - it doesn’t for me. I’m having to do this:

send CenterAnswerOnScreen to me in 1 tick
answer “Blah blah blah”

on CenterAnswerOnScreen
   set the loc of stack "answer dialog" to the screenLoc
end CenterAnswerOnScreen

I have a couple of customers with small-screened laptops who use large 
secondary monitors aligned at the bottom. Thus the top of the secondary monitor 
is quite a bit above the main laptop monitor. Ask and Answer dialogs are so far 
off you can only see about the bottom 1/8 of an inch of the window and are thus 
unusable.

Marty

> On Jan 14, 2019, at 2:25 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 1/10/2019 11:02 PM, Knapp Martin via use-livecode wrote:
>> OK, I’m making progress here. But I’m finding that ask and answer dialogs 
>> are opening off-screen. How are their positions determined?
>> 
>> Marty
>> 
> 
> See https://quality.livecode.com/show_bug.cgi?id=4309
> 
> A very old enhancement request that would be a nice addition. SuperCard has a 
> 'at' syntax, so you could say:
> 
> Ask "What color is your favorite?" at screenLoc()
> 
> Now you have to do something like
> 
> set the loc of stack "Ask Dialog" to screenLoc()
> ask "What color is you favorite?"
> 
> The actual stack names are "Ask Dialog" and "Answer Dialog" whether invoked 
> from the IDE or a Standalone.
> 
> 
> ___
> 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 Knapp Martin via use-livecode
OK, I’m making progress here. But I’m finding that ask and answer dialogs are 
opening off-screen. How are their positions determined?

Marty

> On Jan 10, 2019, at 6:44 PM, Brian Milby via use-livecode 
>  wrote:
> 
> I do see one issue with the “effective” dictionary entry though.  Normally 
> you are not able to set effective properties, but for stack rect properties 
> it is permitted.
> 
> topLeft and topRight also need a clarifying statement to indicate that 
> multiple monitors could cause the main screen topLeft to not be 0,0.
> 
> Thanks,
> Brian
> On Jan 10, 2019, 8:08 PM -0600, Paul Hibbert via use-livecode 
> , wrote:
>> 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
> ___
> 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 Knapp Martin via use-livecode
I will give those a spin - thanks Monte.

Marty
> On Jan 10, 2019, at 4:39 PM, Monte Goulding via use-livecode 
>  wrote:
> 
> 
> 
>> On 11 Jan 2019, at 11:16 am, Knapp Martin via use-livecode 
>>  wrote:
>> 
>> I was merely using that as an example. In my app I too place a toolbar in 
>> the topLeft corner of the screen by setting the topLeft of the stack to 0,0. 
>> On a single screen setup it works fine. But I've just discovered that on a 
>> multi-monitor setup as I've described, the toolbar isn’t even visible it’s 
>> so far off. So in this case 0,0 is not the top left corner of the main 
>> monitor. How so I arrive at that point? How do I determine the actual middle 
>> of the screen? Since I don’t understand all the dynamics of how these things 
>> are being determined I have not been able to arrive at a work-around to 
>> place things where I’d like them on the screen.
> 
> — set the topLeft of a stack to the topLeft of its screen below the menubar:
> set the topLeft of stack “Foo” to item 1 to 2 of line (the screen of stack 
> “Foo”) of the effective working screenRects
> 
> — set the topLeft of a stack to the topLeft of the main screen below the 
> menubar
> set the topLeft of stack “Foo” to item 1 to 2 of the effective working 
> screenRect
> 
> — set the loc of a stack to the center of its screen
> local tLoc, tRect
> put line (the screen of stack “Foo”) of the screenRects into tRect
> put item 1 of tRect + (item 3 of tRect - item 1 of tRect) div 2, \
>  item 2 of tRect + (item 4 of tRect - item 2 of tRect) div 2 into tLoc
> set the loc of stack “Foo” to tLoc
> 
> — set the loc of a stack to the center of the main screen
> set the loc of stack “Foo” to the screenLoc
> 
> Hope these help! FWIW these should remain correct even if the general 
> consensus is that the desktop space should have an 0,0  origin for the main 
> screen.
> 
> 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

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Knapp Martin via use-livecode
I was merely using that as an example. In my app I too place a toolbar in the 
topLeft corner of the screen by setting the topLeft of the stack to 0,0. On a 
single screen setup it works fine. But I've just discovered that on a 
multi-monitor setup as I've described, the toolbar isn’t even visible it’s so 
far off. So in this case 0,0 is not the top left corner of the main monitor. 
How so I arrive at that point? How do I determine the actual middle of the 
screen? Since I don’t understand all the dynamics of how these things are being 
determined I have not been able to arrive at a work-around to place things 
where I’d like them on the screen.

Marty

> On Jan 10, 2019, at 3:56 PM, Monte Goulding via use-livecode 
>  wrote:
> 
> 
> 
>> On 11 Jan 2019, at 10:41 am, Knapp Martin via use-livecode 
>>  wrote:
>> 
>> When I open Livecode on my dual monitor setup where the top of the 2nd 
>> monitor is higher than my main monitor, both the Livecode toolbar and the 
>> script editor open partially off screen with their title bars inaccessible. 
>> I understand that I can type something into the message box to relocate 
>> them, but how is this not a bug??
> 
> I didn’t say that wasn’t a bug. That’s an IDE script issue. Most likely a 
> preferences issue. Have you tried resetting or trashing preferences?
> 
> 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

Re: screenRect and screenLoc weirdness

2019-01-10 Thread Knapp Martin via use-livecode
When I open Livecode on my dual monitor setup where the top of the 2nd monitor 
is higher than my main monitor, both the Livecode toolbar and the script editor 
open partially off screen with their title bars inaccessible. I understand that 
I can type something into the message box to relocate them, but how is this not 
a bug??

Marty

> On Jan 10, 2019, at 2:40 PM, Monte Goulding via use-livecode 
>  wrote:
> 
> Tom the issue here is that it is arguable that this is a bug. We have lots of 
> things to work on which we are sure about ;-)
> 
> To clarify what I mean. Which set of results is more correct?
> 
> Main screen rect: 0,280,1280,1080
> 2nd screen rect: 1280,0,3200,1080
> 
> Main screen rect: 0,0,1280,800
> 2nd screen rect: 1280,-280,3200,800
> 
> I think it would be convenient to have a screenLocs variant of screenLoc so 
> you can:
> 
> set the loc of this stack to line (the screen of this stack) of the screenLocs
> 
> But that’s another issue as it’s not complicated to write a function using 
> the screenRects
> 
> Cheers
> 
> Monte
> 
>> On 11 Jan 2019, at 9:29 am, Tom Glod via use-livecode 
>>  wrote:
>> 
>> i don't like how long a bug like this has been in the queue without being
>> fixed. I'm surprised it hasn't affected more people but i guess maybe
>> thats why its lower in the queue.
>> 
>> Sorry, but I don't know of any remedies for this.
>> 
>> On Thu, Jan 10, 2019 at 5:24 PM Knapp Martin via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Wow, that’s been around for a while. Anybody have a work-around seeing as
>>> how this is unlikely to be fixed? Seems like setting the loc of a window to
>>> the center of the screen would be an often used feature. I never noticed it
>>> because I don’t have a multi-monitor setup.
>>> 
>>> Marty
>>> 
>>>> On Jan 10, 2019, at 1:58 PM, Tom Glod via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>> Hi Marty, I saw this the other day...this is probably the bug you are
>>>> referencing.
>>>> 
>>>> https://quality.livecode.com/show_bug.cgi?id=19419
>>>> 
>>>> On Thu, Jan 10, 2019 at 3:25 PM Knapp Martin via use-livecode <
>>>> use-livecode@lists.runrev.com> wrote:
>>>> 
>>>>> So I just had a customer complain that windows were opening in odd
>>>>> locations with his multi-monitor setup: a MacBookPro with a Thunderbolt
>>>>> display. He has his displays arranged so that the bottoms were aligned
>>> with
>>>>> the 2nd display to the left of the MacBook.
>>>>> 
>>>>> So I hooked my laptop to my TV and discover some weirdness. I started
>>> with
>>>>> my displays aligned to the top and then got the screenRects and the
>>>>> screenLoc:
>>>>> 
>>>>> Main screen rect: 0,0,1280,800
>>>>> 2nd screen rect: 1280,0,3200,1080
>>>>> screenLoc: 640,400
>>>>> (all as expected)
>>>>> 
>>>>> Then I realigned the screens so that the bottoms were aligned:
>>>>> 
>>>>> Main screen rect: 0,280,1280,1080
>>>>> 2nd screen rect: 1280,0,3200,1080
>>>>> screenLoc: 640,680
>>>>> 
>>>>> Why would the arrangement of the screens effect the screenRect and
>>>>> screenLoc of the main monitor?
>>>>> 
>>>>> Marty
>>> 
>>> 
>>> ___
>>> 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: screenRect and screenLoc weirdness

2019-01-10 Thread Knapp Martin via use-livecode
Wow, that’s been around for a while. Anybody have a work-around seeing as how 
this is unlikely to be fixed? Seems like setting the loc of a window to the 
center of the screen would be an often used feature. I never noticed it because 
I don’t have a multi-monitor setup.

Marty

> On Jan 10, 2019, at 1:58 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hi Marty, I saw this the other day...this is probably the bug you are
> referencing.
> 
> https://quality.livecode.com/show_bug.cgi?id=19419
> 
> On Thu, Jan 10, 2019 at 3:25 PM Knapp Martin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> So I just had a customer complain that windows were opening in odd
>> locations with his multi-monitor setup: a MacBookPro with a Thunderbolt
>> display. He has his displays arranged so that the bottoms were aligned with
>> the 2nd display to the left of the MacBook.
>> 
>> So I hooked my laptop to my TV and discover some weirdness. I started with
>> my displays aligned to the top and then got the screenRects and the
>> screenLoc:
>> 
>> Main screen rect: 0,0,1280,800
>> 2nd screen rect: 1280,0,3200,1080
>> screenLoc: 640,400
>> (all as expected)
>> 
>> Then I realigned the screens so that the bottoms were aligned:
>> 
>> Main screen rect: 0,280,1280,1080
>> 2nd screen rect: 1280,0,3200,1080
>> screenLoc: 640,680
>> 
>> Why would the arrangement of the screens effect the screenRect and
>> screenLoc of the main monitor?
>> 
>> Marty


___
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

screenRect and screenLoc weirdness

2019-01-10 Thread Knapp Martin via use-livecode
So I just had a customer complain that windows were opening in odd locations 
with his multi-monitor setup: a MacBookPro with a Thunderbolt display. He has 
his displays arranged so that the bottoms were aligned with the 2nd display to 
the left of the MacBook.

So I hooked my laptop to my TV and discover some weirdness. I started with my 
displays aligned to the top and then got the screenRects and the screenLoc:

Main screen rect: 0,0,1280,800
2nd screen rect: 1280,0,3200,1080
screenLoc: 640,400
(all as expected)

Then I realigned the screens so that the bottoms were aligned:

Main screen rect: 0,280,1280,1080
2nd screen rect: 1280,0,3200,1080
screenLoc: 640,680

Why would the arrangement of the screens effect the screenRect and screenLoc of 
the main monitor?

Marty
___
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: Signing macOS application

2018-12-29 Thread Knapp Martin via use-livecode
I believe that DropDMG just signs the installer and does not sign the app. You 
might take a look at AppWrapper3 or dive into Trevor’s Levure framework - it 
works with DropDMG to sign both the app and the disk image.

Marty

> On Dec 29, 2018, at 12:20 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Hi,
> 
> I’m using DropDMG to sign my macOS installer. Users are having trouble 
> opening it—Gatekeeper seems to not recognize my developer ID.
> 
> It is unclear to me what is going on. Does the application need to be signed 
> before I create the installer in DropDMG? And how do I do that? I had thought 
> that DropDMG took care of everything… Michael Tsai says "The app should 
> definitely be signed before creating the .dmg.”
> 
> https://c-command.com/forums/showthread.php/4103-Signing-app-to-prevent-Gatekeeper-block
>  
> 
> 
> I have these IDs:
>   Developer ID Installer
>   Developer ID Application
> 
> DropDMG shows in its preferences the 'Developer ID Application’ that is used 
> to sign the installer. That should be used and not 'Developer ID Installer’?
> 
> 
> Anyone have any guidance on this?
> 
> 
> And this all doesn’t have anything to do with Notarization? That’s another 
> step for the future?
> 
> Thanks for any help!
> 
> Peter Bogdanoff
> ArtsInteractive


___
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 OSX Code signing consultant...

2018-12-12 Thread Knapp Martin via use-livecode
In my experience, it’s easy to make a mess of your certificates from Apple. 
Then, if you’re like me, you finally get it set up but when you need to renew 
them a few years later you’ve forgotten what you did the last time to get it 
right (or is that just me?).

I’d like to give a plug here for Trevor’s “Levure” framework. It has the 
ability to code sign your Mac apps. You just need to give it your certificate 
name. I had used Trevor’s GLX framework for many years and was a little 
concerned about switching to Levure. While I did have to unlearn a few things 
(assumptions from my GLX experience) it was easier to make the switch than I 
though it would be. Now that I've been using it for a while I will say that 
it’s absolutely great. And Trevor is wonderful about answering question (in the 
forums). My favorite feature is the incorporation of the Sparkle framework to 
give your apps a very professional means of updating your apps. And while it’s 
configured to handle version control/script only stacks that is not necessary 
if, like me, you don’t need those features. Plus, there is no cost! A big thank 
you to Trevor.

Marty

> On Dec 12, 2018, at 8:26 AM, JJS via use-livecode 
>  wrote:
> 
> Google kows how to find some interesting topics about this too.
> 
> BTW i'm on mojave and it run with double clicking it, so i assumed it was not 
> really neccessary. But for the store you need it, same as for windows store 
> you need to sign it too.
> 
> 
> Maybe this can help some people too:
> 
> https://developer.apple.com/library/archive/documentation/Security/Conceptual/CodeSigningGuide/Introduction/Introduction.html
> 
> some nice links in this topic:
> 
> https://stackoverflow.com/questions/5341755/how-to-sign-mac-os-x-application
> 
> and
> 
> http://osxdaily.com/2016/03/14/verify-code-sign-apps-mac-os-x/
> 
> 
> Op 12-12-2018 om 05:29 schreef Tom Glod via use-livecode:
>> I would love to know if you accomplished your goal and what the price tag
>> ended up being, I'm interested in the same service...or at least be taught
>> how to do it.
>> 
>> Lots of tips in this thread as well, but I too would rather save the
>> research in the learning curve in this respect esp for mac.
>> 
>> Thanks,
>> 
>> Tom
>> 
>> On Tue, Dec 11, 2018 at 5:57 PM Pi Digital via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Hi Paul
>>> 
>>> I was unable to look properly at your email earlier as I was working on
>>> something else but noted the subject as something to follow up on. I’m
>>> sorry that no one else seemed to be of help. It is unusual as I was sure
>>> that someone would have offered.
>>> 
>>> If you are still in need I have some free time tomorrow. I am UK based but
>>> work all sorts of times into the very early hours. We can do a Skype or
>>> join.me screen share to walk you through it all. From experience it takes
>>> a good couple of hours if it’s gotten really messy but we should be able to
>>> getting you running again.
>>> 
>>> Let me know. My direct email is sean at pidigital dot co.uk
>>> 
>>> Sean Cole
>>> Pi Digital Prod Ltd
>>> 
 On 11 Dec 2018, at 21:18, Paul Dupuis via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
 I do appreciate the tips.
 
 However, the reason we want to PAY someone who knows this is to avoid
>>> the learning time. Also, we do not develop for iOS nor do we deploy to the
>>> Mac App store, so hopefully none of the lessons pertaining to those apply
>>> to us.
 As stated in my initial email, we develop in LC under Windows. We build
>>> standalones for OSX and Window. We want to PAY someone to help us set up
>>> code signing under El Capitan (10.11.x) and XCode 8.2.1. I can't imagine
>>> that for someone who knows what they are doing it would take more than a
>>> couple hours on an online meeting (screen sharing ) with us.
 I am astonished there are no takers among the LC community. How about
>>> LiveCode Professional Services?
 
> On 12/11/2018 1:53 PM, JJS via use-livecode wrote:
> Did you do these lessons on lessons.livecode.com ?
> 
> 
>>> http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios
> 
>>> http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile
> 
>>> http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store
> 
>>> http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer
> 
> 
> in a nutshell for iOs:
> 
> - create an account at the apple dev portal https://idmsa.apple.com
>>> either payed or unpayed
> - then open Xcode, create a new project , choose game (if i'm correct
>>> out of my head, i'm on windows now, have to reboot to check) but do as told
>>> in the lesson
> - then at the creation you need to add the com.mycompany.myappname and
>>> enter the credentials of your apple dev portal login
> - now a Provisioning 

Re: Seeking OSX Code signing consultant...

2018-12-11 Thread Knapp Martin via use-livecode
I agree Bob. But there really does need to be a basis of trust or you’re asking 
for trouble. I did that once and very much regretted it - downloaded a demo 
installer for an app I was interested in. What I got was a trojan horse that 
attempted to divert my internet connection in an ploy to send me to a PayPal 
phishing site. Fortunately I caught it in time and learned my lesson. Certainly 
code signing isn’t fool proof but it could be easier!

> On Dec 11, 2018, at 2:30 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Agreed, but for a local deployment, like the company I work for, I should 
> never be forced to sign my apps. That would be onerous in my opinion. 
> 
> Bob S
> 
> 
>> On Dec 11, 2018, at 14:26 , Knapp Martin via use-livecode 
>>  wrote:
>> 
>> I think on Sierra and older there was a 3rd option in the security section 
>> to choose from “Anywhere” but that is gone in High Sierra and Mojave. There 
>> is a trick to get around this, outlined here:
>> https://www.macworld.co.uk/how-to/mac-software/mac-app-unidentified-developer-3669596/
>> 
>> But you can’t really seriously (in my opinion) distribute apps this way. 
>> Code signing is a hassle but it’s only going to get worse.
> 
> ___
> 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: Seeking OSX Code signing consultant...

2018-12-11 Thread Knapp Martin via use-livecode
I think on Sierra and older there was a 3rd option in the security section to 
choose from “Anywhere” but that is gone in High Sierra and Mojave. There is a 
trick to get around this, outlined here:
https://www.macworld.co.uk/how-to/mac-software/mac-app-unidentified-developer-3669596/

But you can’t really seriously (in my opinion) distribute apps this way. Code 
signing is a hassle but it’s only going to get worse.

> On Dec 11, 2018, at 2:08 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Can't you do a one time approval for an unsigned app? Also, I think you can 
> turn that feature off in Security & Privacy. 
> 
>> On Dec 11, 2018, at 13:58 , Knapp Martin via use-livecode 
>>  wrote:
>> 
>> Maybe you can run unsigned apps downloaded on older Mac OSs but you cannot 
>> do it on either High Sierra or Mojave. The app has to be either from the 
>> "App Store" or from "Identified developers” (code signed). You can run an 
>> app you build on your own computer but to distribute and download they need 
>> to be code signed.
>> 
>> Marty
> 
> ___
> 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: Seeking OSX Code signing consultant...

2018-12-11 Thread Knapp Martin via use-livecode
Maybe you can run unsigned apps downloaded on older Mac OSs but you cannot do 
it on either High Sierra or Mojave. The app has to be either from the "App 
Store" or from "Identified developers” (code signed). You can run an app you 
build on your own computer but to distribute and download they need to be code 
signed.

Marty

> On Dec 11, 2018, at 12:51 PM, JJS via use-livecode 
>  wrote:
> 
> just made a quick test with the MacOsx standalone
> 
> i just runs
> 
> you don't need to code sign as far as i could see
> 
> 
> just try it, and if you don't have a MAC but have a fairly new PC then try to 
> create a multiboot with hackintosh look on tonymacx86.com on how to do it
> 
> 
> Op 11-12-2018 om 22:46 schreef JJS via use-livecode:
>> Is it then needed to code sign it? (i'm not really sure but)
>> 
>> Did you already try to run a macos standalone on a mac?
>> 
>> And you mean the signature where  is set?
>> 
>> I f i'm correct you can just run the standalone on mac.
>> 
>> I also develop on windows, but i think i jump to macos for the android and 
>> ios, because always the locs and sizes are shifted when first created on 
>> windows. And the i only have to do it once.
>> 
>> i have created a standalone for win, linux and macos. will test tomorrow and 
>> see how it reacts on mojave
>> 
>> 
>> Op 11-12-2018 om 22:18 schreef Paul Dupuis via use-livecode:
>>> I do appreciate the tips.
>>> 
>>> However, the reason we want to PAY someone who knows this is to avoid the 
>>> learning time. Also, we do not develop for iOS nor do we deploy to the Mac 
>>> App store, so hopefully none of the lessons pertaining to those apply to us.
>>> 
>>> As stated in my initial email, we develop in LC under Windows. We build 
>>> standalones for OSX and Window. We want to PAY someone to help us set up 
>>> code signing under El Capitan (10.11.x) and XCode 8.2.1. I can't imagine 
>>> that for someone who knows what they are doing it would take more than a 
>>> couple hours on an online meeting (screen sharing ) with us.
>>> 
>>> I am astonished there are no takers among the LC community. How about 
>>> LiveCode Professional Services?
>>> 
>>> 
>>> On 12/11/2018 1:53 PM, JJS via use-livecode wrote:
 Did you do these lessons on lessons.livecode.com ?
 
 http://lessons.livecode.com/m/4069/l/308242-how-do-i-create-a-development-profile-for-ios
  
 
 http://lessons.livecode.com/m/4069/l/1009412-how-to-create-a-free-ios-development-provisioning-profile
  
 
 http://lessons.livecode.com/m/4071/l/876834-signing-and-uploading-apps-to-the-mac-app-store
  
 
 http://lessons.livecode.com/m/2571/l/23275-how-do-i-become-an-ios-developer
  
 
 
 
 in a nutshell for iOs:
 
 - create an account at the apple dev portal https://idmsa.apple.com either 
 payed or unpayed
 
 - then open Xcode, create a new project , choose game (if i'm correct out 
 of my head, i'm on windows now, have to reboot to check) but do as told in 
 the lesson
 
 - then at the creation you need to add the com.mycompany.myappname and 
 enter the credentials of your apple dev portal login
 
 - now a Provisioning Profile is created by Xcode (for unpaid dev's this is 
 valid for 6 days)
 
 -save the project in xcode
 
 - then in Livecode in your app standalone settings you  need to choose the 
 correct Provisioning Profile
 
> 
> ANY takers?
> 
> $$$ for a little assistance for someone who's done this?
> 


___
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

Printing Crashes in LC 9

2018-11-20 Thread Knapp Martin via use-livecode



Anybody besides me having occasional crashes while printing in LC 9? I don't 
have a recipe but it happens every once in a while in both LC 9.0.1 and LC 
9.0.2 rc1. In the IDE and in a standalone (Mac). I have filed bug report 21473 
(first reported in August) and have added crash reports from 4 different 
incidents. Please add yours if you're experiencing this.

Marty
___
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: Datagrids and LC 9.0.2 rc1

2018-11-20 Thread Knapp Martin via use-livecode
It does it in the ide too. The data grid can display 10 lines of data at a time 
and with very small data sets it will work, although slugishly. I just created 
a stripped down stack that demonstrates the issue and with a few hundred lines 
it will open but only display 10 lines and that’s it. On a dataset of several 
thousand lines it won’t open (at least in the time frame I gave it). I have 
tried typing Command-period and have gotten it to sometimes open but no data 
displayed. It works fine in LC 9.0.1. Can I send the stack to someone privately?

Marty

> On Nov 20, 2018, at 1:38 PM, Monte Goulding via use-livecode 
>  wrote:
> 
> 
> 
>> On 21 Nov 2018, at 6:59 am, Knapp Martin via use-livecode 
>>  wrote:
>> 
>> Anybody having trouble with data grids in LC 9.0.2 rc1? I have a forms-based 
>> data grid that works fine under 9.0.1 but on 9.0.2 rc1, in a standalone when 
>> I try to open the stack with the data grid it locks up on both Mac and 
>> Windows. I can drag windows by the titlebar but everything else is 
>> unresponsive. When I rebuild under 9.0.1 all is fine. I can file a bug 
>> report but thought I’d see if anyone else is having a similar problem.
> 
> Yes please open a report. It sounds like the behaviors aren’t being included 
> in the standalone, however, I don’t think any work was done on anything that 
> would impact that between 9.0.1 and 9.0.2 rc 1.
> 
> 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

Datagrids and LC 9.0.2 rc1

2018-11-20 Thread Knapp Martin via use-livecode
Anybody having trouble with data grids in LC 9.0.2 rc1? I have a forms-based 
data grid that works fine under 9.0.1 but on 9.0.2 rc1, in a standalone when I 
try to open the stack with the data grid it locks up on both Mac and Windows. I 
can drag windows by the titlebar but everything else is unresponsive. When I 
rebuild under 9.0.1 all is fine. I can file a bug report but thought I’d see if 
anyone else is having a similar problem.

Marty
___
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: App Dead on iOS 12

2018-09-28 Thread Knapp Martin via use-livecode
Do you have the stack you’re printing in Windows with the formatForPrinting set 
to true?

Marty

> On Sep 28, 2018, at 11:58 AM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Under Windows I´ve noticed that the blank gaps between the black bars do not 
> have the same width, when they should have.
> This happens not always, but with some text sizes. 
> See my recording here  
> You will see that the some of the gaps change their “ratio”, so that 
> gaps,which should have the same width,  do not have the same width.
> When this “faulty” barcodes are printed they can be read by normal barcode 
> scanners, but not by high speed scanners which are used by shipment carriers.
> 
> This is the reason why we had to purchase a 3rd party barcode SDK for Windows 
>  to get our app approved by the shipment carrier Trans-o-Flex.
> 
> Under Mac OS X i do not see these wrong gaps.
> 
> 
> 
>> Am 28.09.2018 um 19:22 schrieb Mike Kerner via use-livecode 
>> :
>> 
>> fonts are rendered differently in 9 than in 8.  Character sizes are
>> different, which means that area sizes have to change.  We have had some
>> cases where icon fonts no longer render properly at all, and we've had to
>> fiddle to fix them.  The only issue with barcode font rendering that we've
>> seen is that we have to resize the areas.  What have you been seeing with
>> barcodes?
>> 
>> On Fri, Sep 28, 2018 at 10:36 AM Matthias Rebbe via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>> 
>>> Mike,
>>> as i am also facing some problems with fonts, here especially with barcode
>>> fonts, could you please give some more information about your font issues.
>>> 
>>> Regards,
>>> 
>>> Matthias Rebbe
>>> 
>>> 
 Am 28.09.2018 um 15:43 schrieb Mike Kerner via use-livecode <
>>> use-livecode@lists.runrev.com>:
 
 on the fonts?  Mark knows about it.  It's a feature.
 
 On Thu, Sep 27, 2018 at 7:11 PM Monte Goulding via use-livecode <
 use-livecode@lists.runrev.com> wrote:
 
> 
>> On 28 Sep 2018, at 7:03 am, Mike Kerner via use-livecode <
> use-livecode@lists.runrev.com> wrote:
>> 
>> No joy using 8.x.  9.x breaks fonts so we're stuck in 8 until we have
>> someone fix all the font issues with 9.
> 
> That sounds interesting. What’s the bug report number.
> 
> 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

Re: LiveCode 6.7.11 and OSX Mojave

2018-09-13 Thread Knapp Martin via use-livecode
Yes I recently discovered that Print to PDF (with LC 6.6.5) failed under High 
Sierra. So I pop a window that tells people how to use the built-in Mac feature 
to print to PDF as a stop-gap.

Where did you read that Mojave will support 32 bit apps? I would to like be 
able to point customers to a source on that - thanks!

> On Sep 13, 2018, at 9:02 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> Marty,
> 
> Thank you!
> 
> I read today that Mojave will still support 32 bit apps (with the
> current High Sierra warning message), so it sounds like I'll be okay
> until the next OSX after Mohave and I should have migrated by them. I
> already know somethings don't work. Print to PDF fails in High Sierra
> under 6.7.11 (okay in Sierra and below), so I expect that to fail in
> Mojave as well. Print to PDF works fine under LC9 under High Sierra, so
> another reason for me to get to 9. We just couldn't make it by the 24th,
> so I am glad it look like we have a little breathing room.
> 
> On 9/13/2018 11:50 AM, Knapp Martin via use-livecode wrote:
>> Hi Paul,
>> I have two apps built in LC 6.6.5 and in very *brief* testing they both seem 
>> to work fine with the latest Mojave beta.
>> 
>> I have been feverishly working on one of them trying to get it ready for 
>> Mojave in case they remove 32 bit capability but LC 9 has a couple of 
>> glitches for me - the drag and drop issue, where after a drag and drop the 
>> stack acts like there’s a sheet of glass over the top and won’t respond to 
>> mouse clicks until you remove the cursor from the rect of the stack and back 
>> in. I have filed a bug report 21474.
>> 
>> I’ve also had a few crashes in LC 9 when printing. Bug report also filed # 
>> 21473 on August 8th. That one is stressing me out since a key function of my 
>> app is printing.
>> 
>> I have not tried using LC itself on Mojave though.
>> 
>> Marty
>> 
>>> On Sep 13, 2018, at 8:30 AM, Paul Dupuis via use-livecode 
>>>  wrote:
>>> 
>>> I was delighted to see that Mojave will still support 32 bit apps. We
>>> have one app left still build under LC6.7.11 that will not be ready to
>>> run under LC9.x.x this month for the September 24th release.
>>> 
>>> A question for the community: Has anyone tested LC6.7.11 under Mojave? 
>>> I read the Carbon APIs will be removed, but I think I recall that by LC6
>>> LiveCode had already moved away from Carbon?
>>> 
>>> Any feedback as to LC6.7.11's ability to run under Mojave would be
>>> appreciated.
>>> 


___
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 6.7.11 and OSX Mojave

2018-09-13 Thread Knapp Martin via use-livecode
Hi Paul,
I have two apps built in LC 6.6.5 and in very *brief* testing they both seem to 
work fine with the latest Mojave beta.

I have been feverishly working on one of them trying to get it ready for Mojave 
in case they remove 32 bit capability but LC 9 has a couple of glitches for me 
- the drag and drop issue, where after a drag and drop the stack acts like 
there’s a sheet of glass over the top and won’t respond to mouse clicks until 
you remove the cursor from the rect of the stack and back in. I have filed a 
bug report 21474.

I’ve also had a few crashes in LC 9 when printing. Bug report also filed # 
21473 on August 8th. That one is stressing me out since a key function of my 
app is printing.

I have not tried using LC itself on Mojave though.

Marty

> On Sep 13, 2018, at 8:30 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> I was delighted to see that Mojave will still support 32 bit apps. We
> have one app left still build under LC6.7.11 that will not be ready to
> run under LC9.x.x this month for the September 24th release.
> 
> A question for the community: Has anyone tested LC6.7.11 under Mojave? 
> I read the Carbon APIs will be removed, but I think I recall that by LC6
> LiveCode had already moved away from Carbon?
> 
> Any feedback as to LC6.7.11's ability to run under Mojave would be
> appreciated.
> 


___
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: Answer & Ask dialogs in Windows Standalones

2018-09-12 Thread Knapp Martin via use-livecode
I’ve been trying it both ways and sometimes it “takes” and sometimes it doesn’t.

> On Sep 12, 2018, at 4:03 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> I let LC set the inclusions
> 
> 
> On 9/12/2018 6:31 PM, Knapp Martin via use-livecode wrote:
>> Are you selecting you own inclusions or letting LC take care of that? In my 
>> case I need to select my own.
>> 
>> Marty
>> 
>>> On Sep 12, 2018, at 3:28 PM, Matthias Rebbe via use-livecode 
>>>  wrote:
>>> 
>>> Hi,
>>> 
>>> i cannot confirm this here for  Windows 10 and LC Business. All is working 
>>> well.
>>> 
>>> I created a stack and added 2 buttons. One with a mouseup/answer and one 
>>> with a mousuep/ask script.
>>> 
>>> I set up the standalone settings to create the default Win/Mac/Linux and 
>>> also to create only a Windows app.
>>> 
>>> Both Windows standalones showed the correct behaviour and displayed the ask 
>>> and answer dialogs correctly.
>>> 
>>> I´ve created even a Windows app under MAC OS X and tried that under Windows 
>>> 10. That is also showing the correct behaviour.
>>> 
>>> 
>>> Regards,
>>> 
>>> Matthias
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>> Am 12.09.2018 um 23:01 schrieb Paul Dupuis via use-livecode 
>>>> :
>>>> 
>>>> I can conform this issue with 9.0.1 stable under Windows 8.1
>>>> 
>>>> Created a new stack in LC9.0.1 with a Quit button and a Question button
>>>> with the following script:
>>>> 
>>>> *on*mouseUp pMouseButton
>>>> 
>>>> *answer*"Do you want:"with"A"or"B"or"C"
>>>> 
>>>> *answer*"You selected:"& with"OK"
>>>> 
>>>> *end*mouseUp
>>>> 
>>>> And build a default Windows standalone.
>>>> 
>>>> The script behaves as expected in the IDE, generates nothing (no answer
>>>> dialogs) in the Standalone.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> On 9/12/2018 3:56 PM, Knapp Martin via use-livecode wrote:
>>>>> What's the story with Ask and Answer dialogs in Windows Standalones? I 
>>>>> can't get them to show up. In the Standalone settings, when selecting 
>>>>> your inclusions, they are pre-selected. In fact if you uncheck them, 
>>>>> close the settings window, save, then open the setting again, they are 
>>>>> selected again. I've tried to build standalones with them selected and 
>>>>> not selected but I can't tell if the setting is even sticking. But either 
>>>>> way I have no Answer dialogs.
>>>>> 
>>>>> Using LC 9.0.1 stable
>>>>> 
>>>>> Marty
>>>>> ___


___
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: Answer & Ask dialogs in Windows Standalones

2018-09-12 Thread Knapp Martin via use-livecode
Are you selecting you own inclusions or letting LC take care of that? In my 
case I need to select my own.

Marty

> On Sep 12, 2018, at 3:28 PM, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Hi,
> 
> i cannot confirm this here for  Windows 10 and LC Business. All is working 
> well.
> 
> I created a stack and added 2 buttons. One with a mouseup/answer and one with 
> a mousuep/ask script.
> 
> I set up the standalone settings to create the default Win/Mac/Linux and also 
> to create only a Windows app.
> 
> Both Windows standalones showed the correct behaviour and displayed the ask 
> and answer dialogs correctly.
> 
> I´ve created even a Windows app under MAC OS X and tried that under Windows 
> 10. That is also showing the correct behaviour.
> 
> 
> Regards,
> 
> Matthias
> 
> 
> 
> 
> 
> 
>> Am 12.09.2018 um 23:01 schrieb Paul Dupuis via use-livecode 
>> :
>> 
>> I can conform this issue with 9.0.1 stable under Windows 8.1
>> 
>> Created a new stack in LC9.0.1 with a Quit button and a Question button
>> with the following script:
>> 
>> *on*mouseUp pMouseButton
>> 
>> *answer*"Do you want:"with"A"or"B"or"C"
>> 
>> *answer*"You selected:"& with"OK"
>> 
>> *end*mouseUp
>> 
>> And build a default Windows standalone.
>> 
>> The script behaves as expected in the IDE, generates nothing (no answer
>> dialogs) in the Standalone.
>> 
>> 
>> 
>> 
>> 
>> 
>> On 9/12/2018 3:56 PM, Knapp Martin via use-livecode wrote:
>>> What's the story with Ask and Answer dialogs in Windows Standalones? I 
>>> can't get them to show up. In the Standalone settings, when selecting your 
>>> inclusions, they are pre-selected. In fact if you uncheck them, close the 
>>> settings window, save, then open the setting again, they are selected 
>>> again. I've tried to build standalones with them selected and not selected 
>>> but I can't tell if the setting is even sticking. But either way I have no 
>>> Answer dialogs.
>>> 
>>> Using LC 9.0.1 stable
>>> 
>>> Marty
>>> ___
>>> 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

Answer & Ask dialogs in Windows Standalones

2018-09-12 Thread Knapp Martin via use-livecode
What's the story with Ask and Answer dialogs in Windows Standalones? I can't 
get them to show up. In the Standalone settings, when selecting your 
inclusions, they are pre-selected. In fact if you uncheck them, close the 
settings window, save, then open the setting again, they are selected again. 
I've tried to build standalones with them selected and not selected but I can't 
tell if the setting is even sticking. But either way I have no Answer dialogs.

Using LC 9.0.1 stable

Marty
___
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: Stacks in Memory

2018-09-05 Thread Knapp Martin via use-livecode
Did you check revLoadedStacks()?

Marty

> On Sep 5, 2018, at 11:25 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hmmm... I have all three set on my mainstack and when I close it, the stack 
> and it's substacks are not in memory. However, stacks I started using are. 
> 
> Bob S
> 
> 
> 
>> On Sep 5, 2018, at 10:49 , Knapp Martin via use-livecode 
>>  wrote:
>> 
>> To answer my own question, although the Property Inspector will allow you to 
>> set both the destroyStack and cantDelete properties of a stack to true, 
>> cantDelete (when true) blocks destroyStack. I’d set cantDelete to true so 
>> that I wouldn’t accidentally delete a stack or sub stack. But generally, 
>> when I close a stack I want it removed from memory. So I’ve set cantDelete 
>> to false for now.
>> 
>>> On Sep 5, 2018, at 10:26 AM, Knapp Martin  wrote:
>>> 
>>> I have all my stacks configured with destroyStack and destroyWindow (gotta 
>>> love those names!) set to true. And yet after I close them, if I check the 
>>> revLoadedStacks() it shows that they and their subStacks are still loaded 
>>> in memory. What do I need to do to get them out of memory?? Using LC 9.0.1 
>>> (rc3). I don’t see “obliterateStacks” in the dictionary ;)
>>> 
>>> Marty
> 


___
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: Stacks in Memory

2018-09-05 Thread Knapp Martin via use-livecode
To answer my own question, although the Property Inspector will allow you to 
set both the destroyStack and cantDelete properties of a stack to true, 
cantDelete (when true) blocks destroyStack. I’d set cantDelete to true so that 
I wouldn’t accidentally delete a stack or sub stack. But generally, when I 
close a stack I want it removed from memory. So I’ve set cantDelete to false 
for now.

> On Sep 5, 2018, at 10:26 AM, Knapp Martin  wrote:
> 
> I have all my stacks configured with destroyStack and destroyWindow (gotta 
> love those names!) set to true. And yet after I close them, if I check the 
> revLoadedStacks() it shows that they and their subStacks are still loaded in 
> memory. What do I need to do to get them out of memory?? Using LC 9.0.1 
> (rc3). I don’t see “obliterateStacks” in the dictionary ;)
> 
> Marty


___
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

Stacks in Memory

2018-09-05 Thread Knapp Martin via use-livecode
I have all my stacks configured with destroyStack and destroyWindow (gotta love 
those names!) set to true. And yet after I close them, if I check the 
revLoadedStacks() it shows that they and their subStacks are still loaded in 
memory. What do I need to do to get them out of memory?? Using LC 9.0.1 (rc3). 
I don’t see “obliterateStacks” in the dictionary ;)

Marty
___
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: Datagrid substack question

2018-08-28 Thread Knapp Martin via use-livecode
Thanks zryip - I’ll give that a try!

Marty

> On Aug 28, 2018, at 12:31 AM, zryip theSlug via use-livecode 
>  wrote:
> 
> Marty,
> 
> You have to change the row template property of your datagrid to point it
> to the template group located in your renamed substack.
> 
> set the dgProps["row template"] of grp "myDatagrid" to the long id of grp
> "myGrpTemplate" of cd "myCardTemplate" of stack "myTemplateStack"
> 
> On Tue, Aug 28, 2018 at 2:40 AM Knapp Martin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I'm developing an app that has a half dozen template stacks that users can
>> edit. These each have a datagrid. I made a "master" template stack with the
>> common features and then cloned this stack and modified the clones for that
>> stack's specific features. But as the datagrid created a substack and each
>> has the same name in the individual stacks, I get the dreaded "a stack by
>> this name is already open" when I close one stack and open the next. I set
>> the "purge stack on close" to true but I still get the message occasionally
>> (which makes no sense). So I thought I would change the name of the
>> datagrid sub stack to a unique name in each stack but that breaks the
>> connection to the actual datagrid and causes errors. Any advice on what I
>> should do?
>> 
>> Marty


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Datagrid substack question

2018-08-27 Thread Knapp Martin via use-livecode
I'm developing an app that has a half dozen template stacks that users can 
edit. These each have a datagrid. I made a "master" template stack with the 
common features and then cloned this stack and modified the clones for that 
stack's specific features. But as the datagrid created a substack and each has 
the same name in the individual stacks, I get the dreaded "a stack by this name 
is already open" when I close one stack and open the next. I set the "purge 
stack on close" to true but I still get the message occasionally (which makes 
no sense). So I thought I would change the name of the datagrid sub stack to a 
unique name in each stack but that breaks the connection to the actual datagrid 
and causes errors. Any advice on what I should do?

Marty
___
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


Print Break

2018-08-25 Thread Knapp Martin via use-livecode
I'm migrating a project from LC 6.6.5 to LC 9. In the app I have a routine that 
prints a few cards per page then issues a "Print Break" command that has worked 
fine for years in LC 6 but in LC 9 I'm getting an execution error on it (print: 
card or stack must be open to print it). If I take the command out everything 
prints fine with no errors, though without page breaks where I need them.

Anybody know what I'm missing? 

Marty
___
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


Mojave beta & 32 bit LC

2018-08-25 Thread Knapp Martin via use-livecode
Very interesting - I just installed the latest developer beta for macOS Mojave 
(18A371a) and ran a couple of apps I build in LC 6.6.5 (32 bit) and in *very* 
brief tests they seem to work fine. I didn't even get the warning about them 
being 32 bit.

It was interesting that one of the apps that I distribute via a zipped disk 
image displays fine on my Retina screen but the other app uses an LC-based 
installer app and when run does not seem to recognize the Retina display - 
crunchy looking text and images. But if I just transfer a zipped version of the 
app to this Mac it *does* display fine - what's up with that?

Marty
___
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: scaleFactor

2018-08-16 Thread Knapp Martin via use-livecode
Thank you! Works great.

> On Aug 16, 2018, at 3:50 AM, Håkan Liljegren via use-livecode 
>  wrote:
> 
> As the screenrect is the same but virtually larger / smaller based on the 
> scaleFactor you need calculate the scale factor based on the current 
> scaleFactor and the new scaleFactor
> 
> Try this:
> on changeScaleFactor pNewScale
>put the scaleFactor of this stack into tScale
>put tScale / pNewScale into tFactor
>put the topLeft of this stack into tTL
>multiply item 1 of tTL by tFactor
>multiply item 2 of tTl by tFactor
>set the scaleFactor of this stack to pNewScale
>set the topLeft of this stack to tTL
> end changeScaleFactor
> 
> Of course you can substitute topLeft with something else if you want another 
> corner or the center to be the fix point.
> 
> :-Håkan
> On 16 Aug 2018, 01:11 +0200, Peter Bogdanoff via use-livecode 
> , wrote:
>> I too am using scaleFactor and ran into this issue of the difficulty of 
>> windows moving around and even off screen. It seems that when scaleFactor is 
>> invoked the entire screen is now virtual and calculations have to be made to 
>> position the window where you want it to be visually. Unfortunately, those 
>> exact calculations were beyond me at the time I implemented scaleFactor, so 
>> my windows do still move somewhat. But if someone else has a method/formula 
>> for window placement I too would be interested.
>> 
>> Peter Bogdanoff
>> ArtsInteractive
>> 
>> 
>>> On Aug 15, 2018, at 3:02 PM, Knapp Martin via use-livecode 
>>>  wrote:
>>> 
>>> I know that scaleFactor is not intended to be a "zoom view" feature for 
>>> desktop, but in lieu of actually having zoom views, I really need to use it 
>>> to allow the user to enlarge or reduce the window size for a Mac and 
>>> Windows app I’m working on. What I would like is for it to shrink or grow 
>>> from the topLeft point on the screen but I can't seem to figure out a way 
>>> to keep it from jumping around. I would like to have scaleFactors from .5 
>>> to 1.5. Anybody tackled this one?
>>> 
>>> Thanks,
>>> Marty


___
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

scaleFactor

2018-08-15 Thread Knapp Martin via use-livecode
I know that scaleFactor is not intended to be a "zoom view" feature for 
desktop, but in lieu of actually having zoom views, I really need to use it to 
allow the user to enlarge or reduce the window size for a Mac and Windows app 
I’m working on. What I would like is for it to shrink or grow from the topLeft 
point on the screen but I can't seem to figure out a way to keep it from 
jumping around. I would like to have scaleFactors from .5 to 1.5. Anybody 
tackled this one?

Thanks,
Marty
___
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: Drag Drop State of Affairs

2018-08-08 Thread Knapp Martin via use-livecode
I filed a bug report #21474 <https://quality.livecode.com/show_bug.cgi?id=21474>
---
Marty

> On Aug 7, 2018, at 2:47 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> No, and the topStack is the same before and after, which is the stack I am 
> drag/dropping onto. Curiously, I cannot think of a time when the first 
> drag/drop operation failed. It seems it's always on some subsequent drag/drop 
> operation to the same object, which is why I suspect some state that ought to 
> be clearing after the drop isn't. However, I cannot reproduce it every time. 
> It only happens every 3 or 4 times if I do the same operation over and over 
> again. Once it DOES happen though, it seems like I can get it to happen every 
> time, unless as I said I wait a while, then it clears for a bit. 
> 
> Odd, huh? 
> 
> Bob S
> 
> 
>> On Aug 7, 2018, at 13:46 , Knapp Martin via use-livecode 
>>  wrote:
>> 
>> Have you found a work around for this Bob? Or filed a bug report? For me the 
>> problem exists whether in the IDE or a standalone.
>> 
>> Marty
> 
> 
> ___
> 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


Crash log

2018-08-07 Thread Knapp Martin via use-livecode
What is the protocol for sending crash logs to Livecode? Do I just do a bug 
report or what? Just had a crash while printing in LC Business 9.0.1

Marty
___
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: Drag Drop State of Affairs

2018-08-07 Thread Knapp Martin via use-livecode
Have you found a work around for this Bob? Or filed a bug report? For me the 
problem exists whether in the IDE or a standalone.

Marty

> On Aug 3, 2018, at 3:20 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> No tamalies Jacque. With the stack unresponsive, I type "put the short name 
> of the defaultStack" into the message box and it's correct. 
> 
> Bob S
> 
> 
>> On Aug 3, 2018, at 14:56 , Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> I'll check that. I'll put the defaultStack before the operation and then 
>> after and see if it changes. 
>> 
>> 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


Re: Drag Drop State of Affairs

2018-08-03 Thread Knapp Martin via use-livecode
I’ve had the same issue. FWIW I’ve found that after a drag and drop, if I move 
my mouse into the LC toolbar and back (with no clicking) it returns to normal.
Marty

> On Aug 3, 2018, at 10:58 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> I've mentioned before that on a Mac current OS latest LC (and prior) I have 
> some drag/drop operations, where I will process text dropped onto a field. 
> The actual process works, but afterwards, the controls in the window will be 
> unresponsive, until I click the window title bar, after which all works as 
> normal again. 
> 
> It's not critical, but it is a nuisance especially I am constantly 
> drag/dropping data from installation requests into my app for the sake of 
> convenience and data consistency. It gets to the point where every drag/drop 
> operation has to be followd by a click on the title bar. 
> 
> I suppose I could simply click at the location of the title bar, but I'd 
> really like to know if there is a way to make sure that any drag/drop 
> operations are "flushed" so to speak. And since I am almost certain that LC 
> interacts with the OS to accomplish this, my suspicion is that the OS has not 
> received any "termination" for the drag/drop operation, and must time out at 
> some point. 
> 
> The reason I think this is because it seems that when I first begin 
> drag/dropping data, it works for a bit without the issue, but after a time I 
> get the loss of control issue, and from then on all drag drop operations 
> exhibit this "anomaly". But if I wait for a time, things seem to be restored 
> again for a bit. 
> 
> So I am hoping that maybe there is some system message that gets sent that 
> causes LC to "clean up" after a grag drop operation. 
> 
> 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

Re: Align baselines of 2 fields

2018-06-21 Thread Knapp Martin via use-livecode
Bernd,
I ran this at least 50 times and in the vast majority of cases the baselines 
align. In a few cases, as Bob noted, it was off by 1 pixel. But that will be OK 
for my use. I let users pick any font but sizes are limited from 8 to 20.

Thanks you guys. A very resourceful group, as usual!

Marty

> On Jun 21, 2018, at 11:00 AM, Niggemann, Bernd via use-livecode 
>  wrote:
> 
> Hi Marty, 
> 
> depending how liberal you are in letting users choose fonts and sizes you 
> might get "unexpected" results by aligning to field 1
> 
> 
> try this stress test
> 
> 
> -
> on mouseUp
>   lock screen
>   set the textfont of field 1 to any line of the fontNames
>   set the textfont of field 2 to any line of the fontNames
>   set the textSize of field 1 to random(20) + 10
>   set the textSize of field 2 to random(20) + 10
>  -- put the textFont of field 1 into field "Font1"
>  -- put the textFont of field 2 into field "Font2"
>   unlock screen
> end mouseUp
> -
> 
> then align via your script
> Your layout can start "moving"
> 
> Additionally not all fonts report proper ascents and descents
> 
> 
> 
> Kind regards
> Bernd
> 
>> Marty wrote:
>> This works for me, assuming you want to leave field 1 where it is and align 
>> field 2:
>> 
>> on alignFieldBaselines pField1, pField2
>> local tDescent1, tDescent2, tBot1, tBot2, tDiff1, tDiff2, tRef
>> local fFormattedBottom1, fFormattedBottom2
>> 
>> put item 4 of the formattedRect of line 1 of fld pField1 into 
>> fFormattedBottom1
>> put item 4 of the formattedRect of line 1 of fld pField2 into 
>> fFormattedBottom2
>> 
>> put item 4 of measureText(line 1 of fld pField1, fld pField1 ,"bounds") into 
>> tDescent1
>> put item 4 measureText(line 1 of fld pField2, fld pField2 ,"bounds") into 
>> tDescent2
>> 
>> put the bottom of fld pField1 into tBot1
>> put the bottom of fld pField2 into tBot2
>> 
>> put tBot1 - fFormattedBottom1 + tDescent1 into tDiff1
>> put tBot2 - fFormattedBottom2 + tDescent2 into tDiff2
>> 
>> put the bottom of fld pField1 -(tDiff1 - tDiff2) into tRef
>> 
>> set the bottom of fld pField2 to tRef   
>> end alignFieldBaselines
> 
> ___
> 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 baselines of 2 fields

2018-06-21 Thread Knapp Martin via use-livecode
This works for me, assuming you want to leave field 1 where it is and align 
field 2:

on alignFieldBaselines pField1, pField2
  local tDescent1, tDescent2, tBot1, tBot2, tDiff1, tDiff2, tRef
  local fFormattedBottom1, fFormattedBottom2

  put item 4 of the formattedRect of line 1 of fld pField1 into 
fFormattedBottom1
  put item 4 of the formattedRect of line 1 of fld pField2 into 
fFormattedBottom2

  put item 4 of measureText(line 1 of fld pField1, fld pField1 ,"bounds") into 
tDescent1
  put item 4 measureText(line 1 of fld pField2, fld pField2 ,"bounds") into 
tDescent2

  put the bottom of fld pField1 into tBot1
  put the bottom of fld pField2 into tBot2

  put tBot1 - fFormattedBottom1 + tDescent1 into tDiff1
  put tBot2 - fFormattedBottom2 + tDescent2 into tDiff2

  put the bottom of fld pField1 -(tDiff1 - tDiff2) into tRef

  set the bottom of fld pField2 to tRef   
end alignFieldBaselines
---
Marty

> On Jun 21, 2018, at 10:24 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> I modified as follows, but pField2 is one pixel high. Not sure why. 
> 
> Bob S
> 
> on alignFieldBaselines pField1, pField2
>   local tDescent1, tDescent2, tBot1, tBot2, tDiff1, tDiff2, tRef
>   local fFormattedBottom1, fFormattedBottom2
> 
>   -- put 120 into tRef
> 
>   put item 4 of the formattedRect of line 1 of pField1 into fFormattedBottom1
>   put item 4 of the formattedRect of line 1 of pField2 into fFormattedBottom2
> 
>   put item 4 of measureText(line 1 of pField1, pField1 ,"bounds") into 
> tDescent1
>   put item 4 measureText(line 1 of pField2, pField2 ,"bounds") into tDescent2
> 
>   put the bottom of pField1 into tBot1
>   put the bottom of pField2 into tBot2
> 
>   put tBot1 - fFormattedBottom1 + tDescent1 into tDiff1
>   put tBot2 - fFormattedBottom2 + tDescent2 into tDiff2
> 
>   -- set the bottom of pField1 to tRef + tDiff1
>   set the bottom of pField2 to tBot1 + tDiff2   
> end alignFieldBaselines
> 
> 
>> On Jun 21, 2018, at 10:09 , Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Or better yet: (should probably be submitted to the Master Library). Trouble 
>> with this is that it relocates both fields. It should probably only move 
>> pField2. 
>> 
>> on alignFieldBaselines pField1, pField2
>>  local tDescent1, tDescent2, tBot1, tBot2, tDiff1, tDiff2, tRef
>>  local fFormattedBottom1, fFormattedBottom2
>> 
>>  put 120 into tRef
>> 
>>  put item 4 of the formattedRect of line 1 of pField1 into fFormattedBottom1
>>  put item 4 of the formattedRect of line 1 of pField2 into fFormattedBottom2
>> 
>>  put item 4 of measureText(line 1 of pField1, pField1 ,"bounds") into 
>> tDescent1
>>  put item 4 measureText(line 1 of pField2, pField2 ,"bounds") into tDescent2
>> 
>>  put the bottom of pField1 into tBot1
>>  put the bottom of pField2 into tBot2
>> 
>>  put tBot1 - fFormattedBottom1 + tDescent1 into tDiff1
>>  put tBot2 - fFormattedBottom2 + tDescent2 into tDiff2
>> 
>>  set the bottom of pField1 to tRef + tDiff1
>>  set the bottom of pField2 to tRef + tDiff2   
>> end alignFieldBaselines
>> 
>> Bob S
>> 
>> 
>>> On Jun 21, 2018, at 04:37 , Niggemann, Bernd via use-livecode 
>>>  wrote:
>>> 
>>> Hi Mary,
>>> 
>>> I suppose you want to center those fields around a common horizontal 
>>> baseline.
>>> 
>>> You might try this if that is what you want. Should work with different 
>>> fonts and sizes.
>>> 
>>> Two fields, one button.
>>> 
>>> Kind regards
>>> Bernd
>>> 
>>> --
>>> on mouseUp
>>> local tDescent1, tDescent2, tBot1, tBot2, tDiff1, tDiff2, tRef
>>> local fFormattedBottom1, fFormattedBottom2
>>> 
>>> put 120 into tRef
>>> 
>>> put item 4 of the formattedRect of line 1 of field 1 into fFormattedBottom1
>>> put item 4 of the formattedRect of line 1 of field 2 into fFormattedBottom2
>>> 
>>> put item 4 of measureText(line 1 of field 1, field 1 ,"bounds") into 
>>> tDescent1
>>> put item 4 measureText(line 1 of field 2, field 2 ,"bounds") into tDescent2
>>> 
>>> put the bottom of field 1 into tBot1
>>> put the bottom of field 2 into tBot2
>>> 
>>> put tBot1 - fFormattedBottom1 + tDescent1 into tDiff1
>>> put tBot2 - fFormattedBottom2 + tDescent2 into tDiff2
>>> 
>>> set the bottom of field 1 to tRef + tDiff1
>>> set the bottom of field 2 to tRef + tDiff2
>>> 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: Align baselines of 2 fields

2018-06-21 Thread Knapp Martin via use-livecode
Thanks Craig and Bernd, I’ll tinker with this and see how it goes.

Marty

> On Jun 21, 2018, at 4:37 AM, Niggemann, Bernd via use-livecode 
>  wrote:
> 
> Hi Mary,
> 
> I suppose you want to center those fields around a common horizontal baseline.
> 
> You might try this if that is what you want. Should work with different fonts 
> and sizes.
> 
> Two fields, one button.
> 
> Kind regards
> Bernd
> 
> --
> on mouseUp
>   local tDescent1, tDescent2, tBot1, tBot2, tDiff1, tDiff2, tRef
>   local fFormattedBottom1, fFormattedBottom2
> 
>   put 120 into tRef
> 
>   put item 4 of the formattedRect of line 1 of field 1 into fFormattedBottom1
>   put item 4 of the formattedRect of line 1 of field 2 into fFormattedBottom2
> 
>   put item 4 of measureText(line 1 of field 1, field 1 ,"bounds") into 
> tDescent1
>   put item 4 measureText(line 1 of field 2, field 2 ,"bounds") into tDescent2
> 
>   put the bottom of field 1 into tBot1
>   put the bottom of field 2 into tBot2
> 
>   put tBot1 - fFormattedBottom1 + tDescent1 into tDiff1
>   put tBot2 - fFormattedBottom2 + tDescent2 into tDiff2
> 
>   set the bottom of field 1 to tRef + tDiff1
>   set the bottom of field 2 to tRef + tDiff2
> 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: Align baselines of 2 fields

2018-06-20 Thread Knapp Martin via use-livecode
The baseline of the text.

Marty

> On Jun 20, 2018, at 2:32 PM, dunbarxx via use-livecode 
>  wrote:
> 
> Hi.
> 
> Do you mean the bottom of the field control, or the baseline of the text?
> All are doable.
> 
> Craig Newman
> 
> 
> 
> --
> Sent from: 
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
> 
> ___
> 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: Sparkle macOS App Updater extension for LC 9 [First Pass]

2018-06-20 Thread Knapp Martin via use-livecode
Great to hear Trevor! Looking forward to diving into Levure and the Sparkle 
updater is very needed.

Marty

> On Jun 19, 2018, at 7:06 PM, Trevor DeVore via use-livecode 
>  wrote:
> 
> Hi all,
> 
> I've been doing quite a bit of work with the Foreign Function Interface
> (FFI) in LiveCode Builder (LCB) lately. As I make the shift to a 64-bit app
> on macOS I want to convert most of the custom externals I use to LCB. I
> think they will be easier to improve going forward.
> 
> Today I finished a first pass on wrapping the Sparkle updater framework for
> macOS applications. I've used Sparkle successfully for years as an external
> thanks to Monte and I plan on swapping that external out with this
> extension.
> 
> If anyone who is already familiar with using the Extension Builder is
> feeling brave and wants to play around with it here is the URL:
> 
> https://github.com/trevordevore/lc-sparkle
> 
> You would need to download the ZIP file from the Github site and then use
> the LC 9 Extension Builder to compile the .lcb file into an .lcm file that
> you can load. Make sure and keep the .lcm file alongside the "code" folder
> in the repo. That is where the Sparkle.framework file is.
> 
> If everything goes smoothly with this macOS version then I will venture
> into the Windows version of Sparkle and see if I can get that working.
> Ultimately I will be including this in an app_updater helper for Levure.
> 
> -- 
> Trevor DeVore
> ScreenSteps
> www.screensteps.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


Align baselines of 2 fields

2018-06-20 Thread Knapp Martin via use-livecode
I have a user customizable stack that has a label field, then just to the right 
of that a field with user content. The user is able to customize the font and 
size of both the label field and the content field individually. Both fields 
are just 1 line. Is there a way to calculate where the baselines of these 2 
fields are so that I can align them automatically (without user interaction)? 

Thanks,
Marty
___
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: FindBar Demo Stack

2018-05-02 Thread Knapp Martin via use-livecode
Thanks Bob, I’d be interested.

Marty

> On May 2, 2018, at 9:27 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Hi all. 
> 
> I've pieced together a very simple demo stack of my FindBar group if anyone 
> is interested. It comes with a 100 record sqlite database with a sites table 
> to query against. By editing a constant in the FindBar field, you control 
> which columns you want to do queries against. When the FindBar field is 
> entered for the first time, it saves the contents of the datagrid, so that 
> the cancel button in the FindBar group can restore the original data. 
> 
> Someone can turn this into a Widget if they like. I don't use widgets for the 
> simple reason that I do not want to have to recompile them every time I move 
> to a new version. When that eventually gets resolved, I think I will begin to 
> use them more. 
> 
> 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: Random Data Generator

2018-05-02 Thread Knapp Martin via use-livecode
Hi Bob,
I’ve used this web site:


Marty

> On May 2, 2018, at 8:22 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Ever had the need to generate random data for a database demonstration or 
> other things? 
> 
> https://www.generatedata.com/
> 
> 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: LC on Windows - slow for others or just me?

2018-05-01 Thread Knapp Martin via use-livecode
This makes me curious to know - what about apps built with LC 9 for Windows? 
Are they really sluggish too? Or is it just in the IDE?

Marty

> On May 1, 2018, at 10:43 AM, Ralph DiMola via use-livecode 
>  wrote:
> 
> I have not reported it. I wasn't sure that my setup (VMs/bloated Adobe
> Products...) was causing it. It's time to open a QCC report on this. Do you
> want to report it or should I?
> 
> 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


Re: LC PDF Viewer

2018-04-18 Thread Knapp Martin via use-livecode
They would not be fillable PDFs, but PDFs that had been created from the Mac 
print-to-PDF option in the print dialog.

> On Apr 18, 2018, at 1:28 PM, Bob Sneidar via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Are you trying to extract text from a searchable PDF, or are you trying to 
> extract data from a fillable one?
> 
> Bob S
> 
> 
> 
>> On Apr 18, 2018, at 13:14 , Paul Dupuis via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> On 4/18/2018 1:58 PM, Knapp Martin via use-livecode wrote:
>>> I'm just getting my feet wet with the PDF viewer. Anybody worked with that 
>>> and can help give me with a jump start? I find the dictionary not very 
>>> helpful. I learn a lot better from actual working examples. I didn't see 
>>> anything in the online examples.
>>> 
>>> Basically I want to be able to select a PDF and then extract the text from 
>>> it page by page.
>>> 
>>> Thanks,
>>> Marty
>>> ___
>>> 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
>>> 
>> I am not at the right computer at the moment, but i will send you a
>> sample stack a bit later when I am.
>> 


___
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 PDF Viewer

2018-04-18 Thread Knapp Martin via use-livecode
That would be great Paul, thanks.

Marty

> On Apr 18, 2018, at 1:14 PM, Paul Dupuis via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> On 4/18/2018 1:58 PM, Knapp Martin via use-livecode wrote:
>> I'm just getting my feet wet with the PDF viewer. Anybody worked with that 
>> and can help give me with a jump start? I find the dictionary not very 
>> helpful. I learn a lot better from actual working examples. I didn't see 
>> anything in the online examples.
>> 
>> Basically I want to be able to select a PDF and then extract the text from 
>> it page by page.
>> 
>> Thanks,
>> Marty
>> ___
>> 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
>> 
> I am not at the right computer at the moment, but i will send you a
> sample stack a bit later when I am.


___
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


LC PDF Viewer

2018-04-18 Thread Knapp Martin via use-livecode
I'm just getting my feet wet with the PDF viewer. Anybody worked with that and 
can help give me with a jump start? I find the dictionary not very helpful. I 
learn a lot better from actual working examples. I didn't see anything in the 
online examples.

Basically I want to be able to select a PDF and then extract the text from it 
page by page.

Thanks,
Marty
___
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


formatForPrinting

2018-04-06 Thread Knapp Martin via use-livecode
With regard to formatForPrinting for Windows, the dictionary says to set the 
property *before* you open the stack. I'm probably just being thick, but how do 
you set the property of a stack that is not open? Does this really mean to set 
it to true, save it, close it and then reopen it in order to print accurately? 
And then if the user wants to make a change to some text, they have to set it 
to false, save, close, reopen? Then to print a second time go through all of 
that again? That sounds like a horrible thing to put a user through. Why can’t 
you set it to true just before you print, then back to false afterward?

Can anybody provide some input on this?

Thanks,
Marty
___
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

Value & parentheses when doing math

2018-04-02 Thread Knapp Martin via use-livecode
I have a tab delimited list where item 4 is a number and I'm adding things up. 
What is considered best practice when doing this?

add item 4 of line x of tList to tRunningTotal
or
add (item 4 of line x of tList) to tRunningTotal
or
add value(item 4 of line x of tList) to tRunningTotal

Marty
___
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: Selection Handles

2018-03-29 Thread Knapp Martin via use-livecode
Thanks Mike. The app allows the user to be in standard LC edit mode to select 
any of the objects, either by clicking on them or dragging a selection 
rectangle around them. And I do have tools that allow the user to select 
multiple objects and then align, layer, make the same size etc. Perhaps I could 
implement a scheme where if the user selects only 1 line it then deselects and 
pops up my own selection handles, though that might be a bit ugly.

> On Mar 29, 2018, at 12:02 PM, Mike Bonner via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Since you already have code in place to use your homegrown selection
> handles, can you adjust things so that the line doesn't actually have to be
> "selected" to make changes? My guess is that the small button you
> implemented can be dragged, and then you do your magic and adjust length
> while constraining to horizontal or vertical.  I don't see why the line
> would actually have to be selected to do this.
> 
> On Thu, Mar 29, 2018 at 12:52 PM, Knapp Martin via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> I have an app that I'm migrating from LC 6.6.5 to 8.1.9. In it, a user
>> creates documents that may consist of lines, boxes, text areas and images
>> that they insert. There's been a big change between 6.6.5 and 8.1.9 in the
>> selection handles on objects. In 6.6.5, the selection handles on lines were
>> really tiny so I implanted a scheme - when the line is selected I overlay a
>> small button at each end that you drag to change the length and another in
>> the middle to grab the line to move. A side benefit of this is that no
>> matter how "wobbly" the user is in dragging my selection handles, I've
>> scripted it so the line stays perfectly horizontal/vertical.
>> 
>> In LC 8.1.9 the selection handles on lines are huge in comparison, and are
>> centered over the middle of the end point, making it trickier to align to
>> another object (a frequent thing in my app). While I can live with it
>> myself, for my customers I'm way less than thrilled. Often times there is
>> the need to create several short lines in close proximity to each other.
>> 
>> In 8.1.9 I can't use my own selection handles like I was as they end up
>> *behind* those of LC and must exist on a layer above everything else - a
>> change from 6.6.5.
>> 
>> So my question is, is there any way to change the selection handle
>> behavior - something even that is a hack? They're fine on everything else,
>> it's just on lines that it becomes an issue for me. I’m anticipating a “no”
>> but thought I’d ask!
>> 
>> Marty

___
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

Selection Handles

2018-03-29 Thread Knapp Martin via use-livecode
I have an app that I'm migrating from LC 6.6.5 to 8.1.9. In it, a user creates 
documents that may consist of lines, boxes, text areas and images that they 
insert. There's been a big change between 6.6.5 and 8.1.9 in the selection 
handles on objects. In 6.6.5, the selection handles on lines were really tiny 
so I implanted a scheme - when the line is selected I overlay a small button at 
each end that you drag to change the length and another in the middle to grab 
the line to move. A side benefit of this is that no matter how "wobbly" the 
user is in dragging my selection handles, I've scripted it so the line stays 
perfectly horizontal/vertical.

In LC 8.1.9 the selection handles on lines are huge in comparison, and are 
centered over the middle of the end point, making it trickier to align to 
another object (a frequent thing in my app). While I can live with it myself, 
for my customers I'm way less than thrilled. Often times there is the need to 
create several short lines in close proximity to each other.

In 8.1.9 I can't use my own selection handles like I was as they end up 
*behind* those of LC and must exist on a layer above everything else - a change 
from 6.6.5.

So my question is, is there any way to change the selection handle behavior - 
something even that is a hack? They're fine on everything else, it's just on 
lines that it becomes an issue for me. I’m anticipating a “no” but thought I’d 
ask!

Marty
___
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: OSX printing of images issue

2018-03-28 Thread Knapp Martin via use-livecode
I’m curious to know what you find. I’m about to embark on updating 2 apps from 
LC 6.6.5 to the latest in order to get ready for Apple requiring 64 bit. Both 
apps are heavily printing oriented, so I hope there is an answer here.
---
Marty


> On Mar 28, 2018, at 8:28 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> I have a print subsystem for my application that prints a particular set
> of data by laying our the page (sizing the card to the paper, allowing
> for margins, etc, where the content area of the page is a single image
> object. The resizeQuality is set to "best" and alwaysBuffer is true
> 
> When I print under Windows (8.x or 10) to a real printer or to PDF, the
> result appears as expected.
> 
> When I print under OSX (10.9.5 and up) some of the images are messed up:
> Some are squished to a vertical bar a few pixels wide. Some are the
> right size but are just a big rectangle of black and color stripes. Some
> print properly. This happens whether to Preview PDF or to a real printer.
> 
> This occurs under LC8.1.9 (and all the way back to at least LC 6.7.11)
> 
> I have stepped through my print system in the debugger and each page
> appears exactly as it should (correctly layed out with a good looking
> image) before the "print card" command.
> 
> Has anyone experienced this and have any ideas for a work-around or a fix?
> 

___
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: Checkmark for Mac & Windows

2018-03-24 Thread Knapp Martin via use-livecode
Yes I was thinking I could do that and it’s easy enough. Just seems odd that 
such a common character can’t be easily typed in Windows.

For Clarence:
set the imageSource of char 1 of line 1 of fld "SomeField” to 1234 —where 1234 
is the id of the image you want to use.

Marty

> On Mar 23, 2018, at 9:12 PM, Clarence Martin via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Phil, can you provide a sample script?
> 
> -Original Message-
> From: use-livecode <use-livecode-boun...@lists.runrev.com> On Behalf Of Phil 
> Davis via use-livecode
> Sent: Friday, March 23, 2018 7:20 PM
> To: Knapp Martin via use-livecode <use-livecode@lists.runrev.com>
> Cc: Phil Davis <rev...@pdslabs.net>
> Subject: Re: Checkmark for Mac & Windows
> 
> One idea:
> 
> - Create or find a checkmark image you like, that looks good within the 
> textHeight of your lists
> - Import it into your app
> - make sure each line of text begins with maybe 3 spaces
> - use the ID of the checkmark image as the imageSource of char 1 of each line
> - let your (now modified) script support the same toggle action it now 
> supports
> 
> HTH -
> Phil Davis
> 
> 
> On 3/23/18 6:22 PM, Knapp Martin via use-livecode wrote:
>> I generate lists on the fly with the first item of each line set with a 
>> checkmark. After I construct the list under script, I just insert it into a 
>> standard LC table field. The user can then toggle the checkmark of each line 
>> off or on with a click (a script in the field takes care of that).
>> 
>> On Mac it's just a matter of using the checkmark character (option-v) which 
>> I can type right into a script. But on Windows it does not display. I don't 
>> want to rely on a specific font in case the user does not have that 
>> installed. Is there really not an *simple* way to do this so that it works 
>> on both Mac and Windows? I’m redoing a currently Mac-only app so I can 
>> release for Windows too and don’t really want to re-work all this if there’s 
>> a simple solution that I’m missing.
>> 
>> Thanks,
>> 
>> Marty
>> ___
>> 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
> 
> --
> Phil Davis
> 
> 
> ___
> 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

Checkmark for Mac & Windows

2018-03-23 Thread Knapp Martin via use-livecode
I generate lists on the fly with the first item of each line set with a 
checkmark. After I construct the list under script, I just insert it into a 
standard LC table field. The user can then toggle the checkmark of each line 
off or on with a click (a script in the field takes care of that).

On Mac it's just a matter of using the checkmark character (option-v) which I 
can type right into a script. But on Windows it does not display. I don't want 
to rely on a specific font in case the user does not have that installed. Is 
there really not an *simple* way to do this so that it works on both Mac and 
Windows? I’m redoing a currently Mac-only app so I can release for Windows too 
and don’t really want to re-work all this if there’s a simple solution that I’m 
missing.

Thanks,

Marty
___
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: code signing cost

2018-03-14 Thread Knapp Martin via use-livecode
Coding signing certificates are priced on a per-year basis, not per app or 
signing instance. I get my Windows code signing certificates from kSoft - the 
certificates themselves are from Comodo and you can get anything from 1 to 5 
years (the more years, the cheaper per year) - at least that last time I 
purchased.

Marty

> On Mar 14, 2018, at 5:27 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hi guys,
> 
> Maybe my question is dumb, and maybe I'm too pessimistic but are you
> telling me LC drops $ on code signing every windows installer for their DP
> and RC releases too?
> 
> Is there some way of signing applications without that cost?
> ___
> 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: Font name weirdness

2018-03-01 Thread Knapp Martin via use-livecode
Never mind - I just realized that I’d loaded the fonts in my test stack in LC 
6.6.5, then opened the stack in LC 8.1.9. But it is weird that the same fonts 
in my system show up with different names between 6.6.5 and 8.1.9.

> I just discovered something weird with regards to font names. If I look at 
> the font names in the font menu of LC 8.1.9, in some cases they are different 
> names than what I get when I access the fontNames. For example, I have a font 
> family named "Vendome." From the fontNames function I get these:
> 
> VendomeTBol
> VendomeTMed
> VendomeTMedIta
> VendomeReg
> 
> When I try to apply those to text, nothing happens.
> 
> Then when I look at the font names in the LC font menu I see this instead;
> 
> Vendome T Bold
> Vendome T Medium
> Vendome T Medium Italic
> Vendome T Regular
> 
> And those apply just fine. I've been using LC 6.6.5 and have no problems 
> there. Anybody know what's up? The dictionary entry for fontNames makes no 
> mention of this…
> 
> Marty


___
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


Font name weirdness

2018-03-01 Thread Knapp Martin via use-livecode
I just discovered something weird with regards to font names. If I look at the 
font names in the font menu of LC 8.1.9, in some cases they are different names 
than what I get when I access the fontNames. For example, I have a font family 
named "Vendome." From the fontNames function I get these:

VendomeTBol
VendomeTMed
VendomeTMedIta
VendomeReg

When I try to apply those to text, nothing happens.

Then when I look at the font names in the LC font menu I see this instead;

Vendome T Bold
Vendome T Medium
Vendome T Medium Italic
Vendome T Regular

And those apply just fine. I've been using LC 6.6.5 and have no problems there. 
Anybody know what's up? The dictionary entry for fontNames makes no mention of 
this…

Marty
___
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


Rolling my own font menu

2018-03-01 Thread Knapp Martin via use-livecode
So I need to roll my own font menu for a project I'm working on. I'm using a 
simple stack that I open as a palette with a scrolling field which lists all 
the fonts. I open this font menu stack and the text stays selected in the field 
of the stack that I'm wanting to change the font of. But after I make my font 
selection and close the font stack, the text de-selects. So I'm storing the 
selectedChunk and re-selecting the text using that info, but of course you see 
the text de-select, then re-select. Is there a way to avoid this? Lock screen 
has no effect. Another way to deal with this?

Marty
___
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: Quit Command corrupts standalone (stack called by standalone splash)

2018-02-27 Thread Knapp Martin via use-livecode
What about using shutDownRequest? If you don’t pass it, it prevents the quit 
from happening.

Marty

> Let me improve this a bit.
> 
> 
> On 2/23/18 4:19 PM, Phil Davis via use-livecode wrote:
>> Roland,
>> 
>> I believe Tom is exactly right. I would restructure your two closing 
>> handlers like this:
>> 
>> 
>> local sMyFilename
>> 
>> on closeStack
>> put the filename of me into sMyFilename
>> saveMe
>> send "quitMe" in 1 second
>> end closeStack
> 
> on closeStack
> put the filename of me into sMyFilename
> send "quitMe" to me in 1 second
> saveMe
> end closeStack
> 
> 
> "quitMe" should be sent before 'saveMe' is executed, because the 'save' 
> command is blocking. It would prevent 'quitMe' from being sent until (in this 
> case) 1 second after 'saveMe' has finished.
> 
> Thanks -
> Phil
> 
>> 
>> 
>> command saveMe
>>lock cursor /* Tested with and without locking and showing cursor */
>>set the cursor to watch
>>save this stack /* auto save, takes a long time, between 10-30 secs */
>> end saveMe
>> 
>> 
>> command quitMe
>>if there is a file sMyFilename then
>>   unlock cursor
>>   lock messages
>>   quit
>>else
>>   send "quitMe" to me in 0.5 seconds -- or in your preferred time
>>end if
>> end quitMe
>> 
>> 
>> The above was not tested but it should solve the problem.
>> 
>> HTH -
>> Phil Davis
>> 
>> 
>> 
>> On 2/23/18 3:20 PM, tbodine via use-livecode wrote:
>>> Hi Roland.
>>> 
>>> The "~" file is the original  (uncorrupted, unsaved) version of your stack
>>> before LC executed your Save cmd. If you remove the "~" from the filename,
>>> you'll probably find you can open that. LC creates the "~" file at the start
>>> of the save operation and, if all goes well, removes that file when save is
>>> complete.
>>> 
>>> My guess is your problem is rooted in the lengthy save time in the quit
>>> routine. Here are a couple ideas of how you could deal with that:
>>> 
>>> 1) Do the save within a try/catch statement so you can deal with any error.
>>> 
>>> 2) If you are just saving some user data like prefs or fairly minor stuff,
>>> then why not save that into a separate substack outside of your main
>>> application stack? That should greatly shorten the time it takes to save.
>>> 
>>> Hope that helps.
>>> 
>>> Tom Bodine
>>> 
>>> 
>>> 
>>> -- 
>>> Sent from: 
>>> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>>> 
>>> ___
>>> 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
>>> 
>> 
> 
> -- 
> Phil Davis
> 
> 
> ___
> 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: Quit Command corrupts standalone (stack called by standalone splash)

2018-02-26 Thread Knapp Martin via use-livecode
Thanks for the in-depth reply. Are there known issues with saving LC stacks to 
Dropbox? I was thinking of Roland's issue with corruption and Phil's suggested 
fix of watching the file with the tilde character before allowing a quit to 
complete. I have an app where users create documents (stacks) and saving them 
to Dropbox is a built-in option. I have one customer who stores their stacks on 
a network server and a few times they've ended up with a corrupted stack. These 
stacks are 1-2 mb in size, so nothing huge, but they are of critical 
importance. I don’t know of anyone having trouble with Dropbox specifically, 
but if I can do something to make the process more robust, then that would be 
of great interest.

Marty

> Knapp Martin wrote:
> 
> > Richard, could you elaborate on the issues with Dropbox?
> 
> I first came across it in a search at Google for "dropbox sqlite", looking 
> for tips on making the most of that relationship.  What I found was a long 
> series of support forum and blog posts filled with horror stories of out of 
> sync or corrupted DB files.
> 
> Some merely lose a record.  Others lose the DB.  And so many have no problem 
> at all that it seems like something we should all be doing, until you look 
> into it far enough to find those who've lost records or the entire DB.
> 
> Of all the things I've read, this forum post covered more ground more 
> succinctly than most:
> 
> 
>   tl;dr: Dropbox fails the ACID test for databases.  So does its
>   competitor Box, which works the same way.  Use it for SQLite
>   databases only if your transfer time exceeds its synch time.
> 
>   
> 
>   Dropbox does not share files across the internet.  It copies
>   changed files from one computer to its server, then from that
>   server to all the other computers which have access to that
>   shared folder.
> 
>   Dropbox copies an entire file every time a part of it is updated.
>   If you have a 200GB database and delete one row, it needs to copy
>   the entire database file to all the other computers that can
>   access it.  While that works fine for small files, it will involve
>   a lot of traffic as your files grow in size.
> 
>   If two copies of the file are updated at the same time on different
>   computers, the changes made in one copy disappear.  Your
>   user-interface will ask you which one you want, but you may not
>   have enough knowledge to pick the 'best' one.
> 
>   If Dropbox decides to take a copy while SQLite is in the middle
>   of processing a transaction, you will temporarily have a copy of
>   the database with a partially-processed transaction on all the
>   computers which have access to that shared area.
> 
>   Dropbox doesn’t understand that the database file and the journal
>   file go together, even if they’re in the same folder.  And in order
>   to stop one user from hogging its servers there’s sometimes a short
>   delay between when it updates its copy of one file and when it
>   updates its copy of another file.  So it’s possible for one computer
>   which has a copy of the database to have a newer database file than
>   its journal file, or vice versa.
> 
>   SQLite autorepairs files when it finds a database file and a journal
>   file which don’t match.  I don’t know what it would do under the
>   above two conditions.  And what it would do would vary depending on
>   which file Dropbox decided to copy first.
> 
>   Given all the above, I might use Dropbox or Box to promulgate copies
>   of a SQLite database, but only if
>   (A) I had an backup of a recent version and the backup system does
>   not involve Dropbox/Box.
>   (B) If I was fairly sure that if I used one computer to update the
>   database, none of the other computers would try to open the file
>   (even just for reading) until a couple of minutes after the updates
>   were done and the service had had time to sync both database and
>   journal file.
> 
> http://sqlite.1065341.n5.nabble.com/Sqlite-Dropbox-tp95173p95177.html
> 
> 
> 
> > Is there a recommended procedure for dealing with it?
> 
> This vendor who uses SQLite for their data storage has the simplest solution 
> for sharing their files via Dropbox:  Don't do it. ;)  At least, not 
> directly, but this isn't going to work for so many users who don't spend much 
> time monkeying with files directly:
> 
> https://www.maxqda.com/faq/a-13-can-i-store-my-maxqda-projects-in-cloud-based-services-like-dropbox
> 
> 
> If the SQlite + Dropbox combo were super-robust we wouldn't see so many 
> purpose-built sync systems out there.  Sync systems aren't fun to write and 
> eat a lot of time, so if devs could avoid it so simply they would.
> 
> But they don't.  So many proprietary syncs out there, almost a new one for 
> every app that syncs.
> 
> And if you look into sync, you find just about every app that came up with a 
> syncing method has a very long blog post about their sync 2.0, needed after 
> 

Re: Quit Command corrupts standalone (stack called by standalone splash)

2018-02-26 Thread Knapp Martin via use-livecode
Richard, could you elaborate on the issues with Dropbox? Is there a recommended 
procedure for dealing with it?

Marty

On Feb 26, 2018, at 11:07 AM, Richard Gaskin via use-livecode 
 wrote:

> Stack file corruption is very rare with LiveCode.  It has happened now and 
> then, but is rare enough (and of course serious enough) to merit attention by 
> the LC team.
> 
> Even if we can mitigate the issue by altering your code, the main question 
> remains:  why does a save operation become interrupted, and is that 
> interruption caused by external factors or from an internal bug?
> 
> Unless you know the cause of the corruption (failing hard drive, flaky 
> network with mounted network drive, use of Dropbox or other synced folder 
> with unpredictable behavior, etc.) it may be helpful opening a bug report if 
> only to allow the team to investigate the corrupted file to see if it brings 
> their attention to something internal which may need refinement.
> 
> -- 
> 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: Setting cantDelete of a field

2018-02-16 Thread Knapp Martin via use-livecode
I have an app where the user can create a document from a pre-made template and 
add some of their own fields, lines, etc. They can delete those, but there are 
objects that they should not. So I use a front script and trap for all the 
variations of delete, cut, etc. I set a custom property for the objects that 
should not be deleted (cpCantDelete) and the front script checks the 
cpCantDelete of the selectedObject. Maybe set up the development environment 
with a similar front script and a feature where right-clicking with a modifier 
key (so you can still access the LC popup too) pops up a menu to make setting 
the custom property quick and easy.

Marty

> Hi,
> 
> A colleague who is working in a LC stack has several times in the past, and 
> just again today, accidentally deleted fields of a group acting as a 
> background. He doesn’t notice the field is deleted, saves the stack, and all 
> his text on many cards is gone.
> 
> LiveCode has a cantDelete property that can be set for stacks, groups, and 
> cards. Is there any particular reason why fields or any other control cannot 
> have that property?
> 
> I know about the cantModify, but that is a stack level property that doesn’t 
> allow anything to be modified.
> 
> I just want to set the cantDelete property of valuable objects to true.
> 
> Peter Bogdanoff
> ArtsInteractive

___
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