Re: long id trap for the unwary

2022-06-28 Thread Peter Bogdanoff via use-livecode
Hi Bob,

I need more detail how to word the command. No need to send in time, just how 
to call that function on a card not in the message path. Thanks!

> On Jun 28, 2022, at 12:12 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Send IF you need in time. Stupid spell correct. It cannot be me mistyping. 
> 
> Sent from my iPhone
> 
>> On Jun 28, 2022, at 12:08, Bob Sneidar  wrote:
>> 
>> Send in you need in time. Dispatch if you are not sure the handler exists 
>> in the target. Dispatch will not throw an error if there is no handler. 
>> 
>> Sent from my iPhone
>> 
>>> On Jun 28, 2022, at 11:05, Peter Bogdanoff via use-livecode 
>>>  wrote:
>>> 
>>> Bob,
>>> 
>>> This makes sense.
>>> 
>>> I’m unclear as to how I would structure the command to call a function in a 
>>> card that’s not in the message path. 
>>> 
>>> send … ?
>>> 
>>> Peter Bogdanoff
>>> 
>>>>> On Jun 28, 2022, at 8:34 AM, Bob Sneidar via use-livecode 
>>>>>  wrote:
>>>> 
>>>> Your point brings up something that was discussed before on this list. 
>>>> It's going to be cleaner in the long run to "compartmentalize" your 
>>>> handlers so that a handler is not trying access objects that are not in 
>>>> the message path, or belong to an object in the message path. A handler 
>>>> should not if at all possible "reach out and touch" something on another 
>>>> card. 
>>>> 
>>>> If you need to get or set something on a card other than the one in the 
>>>> message path of the current handler, it's better to have a command or 
>>>> function in the script of the target card. That way you can say: 
>>>> 
>>>> function returnTheText pFieldName
>>>> return the text of field pFieldName of me
>>>> end returnTheText
>>>> 
>>>> If you DO need to have handlers working in a broader context, then when 
>>>> calling the handler get the long id of the target card first and then pass 
>>>> that in a parameter to the handler. 
>>>> 
>>>> For instance I have a handler called Extract which retrieves to values for 
>>>> every object on a card with certain prefixes in their name like fld or btn 
>>>> or menu. I pass the long id of the card they are on so that there is never 
>>>> any confusion as in: 
>>>> 
>>>> function extract tParentCard
>>>> return the text of field 1 of tParentCard
>>>> end extract
>>>> 
>>>> Bob S
>>>> 
>>>> 
>>>>>> On Jun 27, 2022, at 20:27 , Neville Smythe via use-livecode 
>>>>>>  wrote:
>>>>> 
>>>>> If I write
>>>>> 
>>>>> put the long id of field 1 of card 1 into tObject; put the text of tObject
>>>>> 
>>>>> I get the text of field 1 of card 1, right ? Not necessarily.
>>>>> 
>>>>> If field 1 of card 1 is in a shared group, then what I get is the text of 
>>>>> field id something of card id whatever, where whatever is the id of the 
>>>>> current card or maybe the first card containing the group. 
>>>>> 
>>>>> This is not actually a bug when you read the docs carefully but it 
>>>>> certainly is a trap and in my case a major bug generator. It means this 
>>>>> seemingly obvious way of obtaining the long id of an object (rather, in 
>>>>> this case an instance of an object)  cannot be used to uniquely identify 
>>>>> it when getting its properties.
>>>>> 
>>>>> The workaround is to replace card id (whatever) with card id (the id of 
>>>>> card 1) in tObject;  the properties of tObject returned are then the 
>>>>> properties of the expected instance of the object.
>>>>> 
>>>>> Sigh, a new version of nsScriptDatabase coming up.
>>>>> 
>>>>> Neville
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ___
>>>>> use-livecode mailing list
>>>>> use-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: long id trap for the unwary

2022-06-28 Thread Peter Bogdanoff via use-livecode
Bob,

This makes sense.

I’m unclear as to how I would structure the command to call a function in a 
card that’s not in the message path. 

send … ?

Peter Bogdanoff

> On Jun 28, 2022, at 8:34 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Your point brings up something that was discussed before on this list. It's 
> going to be cleaner in the long run to "compartmentalize" your handlers so 
> that a handler is not trying access objects that are not in the message path, 
> or belong to an object in the message path. A handler should not if at all 
> possible "reach out and touch" something on another card. 
> 
> If you need to get or set something on a card other than the one in the 
> message path of the current handler, it's better to have a command or 
> function in the script of the target card. That way you can say: 
> 
> function returnTheText pFieldName
>   return the text of field pFieldName of me
> end returnTheText
> 
> If you DO need to have handlers working in a broader context, then when 
> calling the handler get the long id of the target card first and then pass 
> that in a parameter to the handler. 
> 
> For instance I have a handler called Extract which retrieves to values for 
> every object on a card with certain prefixes in their name like fld or btn or 
> menu. I pass the long id of the card they are on so that there is never any 
> confusion as in: 
> 
> function extract tParentCard
>   return the text of field 1 of tParentCard
> end extract
> 
> Bob S
> 
> 
>> On Jun 27, 2022, at 20:27 , Neville Smythe via use-livecode 
>>  wrote:
>> 
>> If I write
>> 
>>put the long id of field 1 of card 1 into tObject; put the text of tObject
>> 
>> I get the text of field 1 of card 1, right ? Not necessarily.
>> 
>> If field 1 of card 1 is in a shared group, then what I get is the text of 
>> field id something of card id whatever, where whatever is the id of the 
>> current card or maybe the first card containing the group. 
>> 
>> This is not actually a bug when you read the docs carefully but it certainly 
>> is a trap and in my case a major bug generator. It means this seemingly 
>> obvious way of obtaining the long id of an object (rather, in this case an 
>> instance of an object)  cannot be used to uniquely identify it when getting 
>> its properties.
>> 
>> The workaround is to replace card id (whatever) with card id (the id of card 
>> 1) in tObject;  the properties of tObject returned are then the properties 
>> of the expected instance of the object.
>> 
>> Sigh, a new version of nsScriptDatabase coming up.
>> 
>> Neville
>> 
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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: Right click in field for menu

2022-06-02 Thread Peter Bogdanoff via use-livecode
Klaus, thank you. Such a simple fix!

> On Jun 2, 2022, at 3:07 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Peter,
> 
>> Am 01.06.2022 um 22:53 schrieb Peter Bogdanoff via use-livecode 
>> :
>> 
>> Hi, I finding that after right-clicking in the field and then showing the 
>> button popup menu, the focus is shifted to the menu. That’s good. However, 
>> if there was text selected in the field that I want to copy or clear, the 
>> selection is now lost since the focus was shifted.
>> I can grab the selected characters before invoking the popup menu and then 
>> reselect the original characters in the field to do the edit action. But 
>> that seems to be kludge.
>> Is there a better way to edit a selection in a field using a menu popup?
> 
> unfortunately the "traversalon" property of popup menu buttons is set to TRUE 
> by default. 
> This will "steal" the focus! :-/
> 
> Use the message box (prop is also missing in the inspector) to set it to 
> FALSE and it will work as advertised.
> ...
> set the traversalon of btn "your popup here..." to FALSE
> ...
> 
>> Peter
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Right click in field for menu

2022-06-01 Thread Peter Bogdanoff via use-livecode
Hi, I finding that after right-clicking in the field and then showing the 
button popup menu, the focus is shifted to the menu. That’s good. However, if 
there was text selected in the field that I want to copy or clear, the 
selection is now lost since the focus was shifted.

I can grab the selected characters before invoking the popup menu and then 
reselect the original characters in the field to do the edit action. But that 
seems to be kludge.

Is there a better way to edit a selection in a field using a menu popup?

Peter

> On Jun 1, 2022, at 11:40 AM, Klaus major-k via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Hi Peter,
> 
>> Am 01.06.2022 um 20:34 schrieb Peter Bogdanoff via use-livecode 
>> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Hi,
>> 
>> I’m wanting to implement a right click (button 3) in an unlocked desktop 
>> field to show a pop up menu.
>> How would I do this?
> 
> on mousedown tNumber
>  ## mousebutton 3 = right-click
>  if tNumber = 3 then
>popup btn "your popup here..." at the mouseloc
> end if
> end mousedown
> 
>> Is the menu that would show Livecode, or from the OS?
> 
> That will popup a LC popup menu button.
> 
>> Thanks,
>> 
>> Peter Bogdanoff
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de <https://www.major-k.de/>
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Right click in field for menu

2022-06-01 Thread Peter Bogdanoff via use-livecode
Hi,

I’m wanting to implement a right click (button 3) in an unlocked desktop field 
to show a pop up menu.

How would I do this? Is the menu that would show Livecode, or from the OS?

Thanks,

Peter Bogdanoff
___
use-livecode mailing list
use-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: playrate & templateimage

2022-03-30 Thread Peter Bogdanoff via use-livecode
I’ve just tried LC 9.6.6 in Windows and playrate functions as 0 = stopped or > 
0 = playing normal rate. Tested by playing a wmv and a mp3. Entering in a 
positive number other than 1 causes it to pause for a second or two then start 
playing at normal speed.

Mac does do the “variable speed” with both mov and mp3.

Peter Bogdanoff

> On Mar 30, 2022, at 5:01 PM, Paul Dupuis via use-livecode 
>  wrote:
> 
> On 3/30/2022 5:18 PM, Klaus major-k via use-livecode wrote:
>> 
>>> Am 27.03.2022 um 10:33 schrieb Klaus major-k via use-livecode 
>>> :
>>> 
>>> Hi all,
>>> 
 Am 24.03.2022 um 12:31 schrieb Klaus major-k via use-livecode 
 :
 
 Hi friends,
 
 LC never ceases to surprise me and I love that!
 
 1. In earlier versions setting the "playrate" of a player object to a 
 different value than 1
 unfortunately also changed the PITCH of the sound/movie.
 
 Today I was delighted to find out that this is not the case anymore!
 PITCH does not change anymore when setting the PLAYRATE!
 Thanks for the hint, Frans!
 
 At least on a Mac. Is this also the case on Windows?
>>> could someone please test it and report here?
>>> Thank you!
>> really noone has a minute to test? :-(
>> 
>> 
> 
> If PITCH was a property value I could test and report, but as I understand 
> what you are looking for is for someone to adjust the playRate and HEAR 
> whether the pitch is changing and I doubt - with my bad hearing - I could 
> tell if the PITCH was changing!
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Browser Widget and Images

2022-03-13 Thread Peter Bogdanoff via use-livecode
Rick, you want to look at the export snapshot or the export image commands for 
that.

pb

> On Mar 13, 2022, at 1:56 PM, Rick Harrison via use-livecode 
>  wrote:
> 
> Hi Klaus,
> 
> Thanks for answering.
> 
> So accessing the URL of the image directly in the image object
> puts the image there, which is a good first step.
> 
> How is it stored however?  
> 
> If one looks at the image source it still shows the URL. 
> 
> I find I’m unable to paint on top of the image, probably 
> because that would require my being able to modify the
> online URL which isn’t possible for the obvious reason.
> 
> I probably need to make a local copy of the image to
> be able to work on it.  Export image? Copy it to
> the clipboard and paste it elsewhere?
> 
> Suggestions?
> 
> Rick
> 
> 
> 
>> On Mar 13, 2022, at 2:58 PM, Klaus major-k via use-livecode 
>>  wrote:
>> 
>> Hi Rick,
>> 
>>> Am 13.03.2022 um 19:34 schrieb Rick Harrison via use-livecode 
>>> :
>>> 
>>> I have a large free public domain image displaying nicely in my LC Browser 
>>> Widget.
>>> I want to bring the image directly into a LiveCode image object to be able 
>>> to play around with it.
>>> What’s the best way to do that?
>> 
>> why not just set the FILENAME of the image object to the file, either local 
>> or online?
>> If the image is very big, you could group that single image object and add 
>> the groups scrollbars.
>> Or just scale the image...
>> 
>>> While I was looking around in the dictionary for possibilities, I came
>>> across some older revBrowser commands.  Do they work with with
>>> the new browser widget or are the two completely different animals?
>> 
>>> 
>>> Thanks,
>>> 
>>> Rick
>> 
>> Best
>> 
>> Klaus
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> https://www.major-k.de/bass
>> kl...@major-k.de
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: LC Player buffering data

2022-03-11 Thread Peter Bogdanoff via use-livecode
I should have said, the audio files being played are typically 30MB to 100MB, 
and the freezing happens as soon as the filename URL is set and play is 
supposed to begin.


> On Mar 11, 2022, at 10:28 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Hi, this is probably a question for Panos.
> 
> My application plays audio files from a server using the player. Some users 
> in a academic environment are experiencing the application freezing when they 
> play audio. These are people in a university in China, where it seems the 
> wireless network gets choked up with simultaneous users doing things. When 
> classes are over, all works well. Also using a cellular connection works 
> normally (but data there is very expensive $$$ to use). Their Wifi seems to 
> be underpowered. These are files typically 30K to 100K.
> 
> 1. Does the player buffer data such that it allows the playing to start 
> before the entire file is loaded?
> 
> 2. If so, would reducing the minimum amount of buffering help with this issue?
> 
> 3. If so, could there be a player setting to set the amount of required data 
> before playing begins?
> 
> Thanks!
> 
> 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


___
use-livecode mailing list
use-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 Player buffering data

2022-03-11 Thread Peter Bogdanoff via use-livecode
Hi, this is probably a question for Panos.

My application plays audio files from a server using the player. Some users in 
a academic environment are experiencing the application freezing when they play 
audio. These are people in a university in China, where it seems the wireless 
network gets choked up with simultaneous users doing things. When classes are 
over, all works well. Also using a cellular connection works normally (but data 
there is very expensive $$$ to use). Their Wifi seems to be underpowered. These 
are files typically 30K to 100K.

1. Does the player buffer data such that it allows the playing to start before 
the entire file is loaded?

2. If so, would reducing the minimum amount of buffering help with this issue?

3. If so, could there be a player setting to set the amount of required data 
before playing begins?

Thanks!

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: RIP David Boggs

2022-03-01 Thread Peter Bogdanoff via use-livecode
https://dnyuz.com/2022/02/28/david-boggs-co-inventor-of-ethernet-dies-at-71/ 



> On Mar 1, 2022, at 10:31 AM, Mark Wieder via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> On 3/1/22 10:26, Stephen Barncard via use-livecode wrote:
>> Paywall
> 
> Opened without a paywall for me.
> That last quote is a keeper.
> 
> -- 
> Mark Wieder
> ahsoftw...@gmail.com 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: full justification in a text field

2022-02-10 Thread Peter Bogdanoff via use-livecode
You’re welcome.

What I really wanted to do is to use a narrower space character, such as the 
"thin space, U+2009" which would allow much better alignment of the right 
margin. That character does display in LiveCode.

https://en.wikipedia.org/wiki/Whitespace_character 

But that seems to require modifying the htmlText to insert that character. 
Maybe someone knows how to set/insert the htmlText of a character without 
messing with the html directly.

Peter Bogdanoff

> On Feb 10, 2022, at 1:03 PM, Curt Ford via use-livecode 
>  wrote:
> 
> Peter, that works really well. Looks like it does require a monospaced font 
> (I tried it with Monaco, looks good), so I'm not sure if my current client 
> will want this approach, but it's nice to have a relatively simple native 
> solution. Thanks so much!
> 
> Curt
> -- 
> Sent from Postbox 
> 
> ___
> use-livecode mailing list
> use-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: full justification in a text field

2022-02-10 Thread Peter Bogdanoff via use-livecode
I’ve taken a quick stab at this ...

This script adds spaces between words of a line to get it close to the full 
width of the field to create a quick & dirty faux fully-justified field.
In operation, It converts each visible line of text to a LiveCode line 
(delineated by CRs) so the final text has a CR after each visible line. Then it 
uses the formattedWidth property of each line to determine its current width, 
then adds spaces between words to fill out the full width of the line. 

Note that the final width of the text is determined by tMaxWidth, which is 
based on the widest visible line of the field. But that could be changed to use 
the width property of the field itself, minus any V scrollbars.

Peter Bogdanoff


on mouseUp
   set lockscreen to true
   # Add CRs to the end of each line 
   put the formattedText of field "Text2" into field "Text2"
   
   # Find longest line of text. This will determine the overall width of the 
text.
   # This probably should be modified to simply get the width property of the 
field itself.
   put 0 into tMaxWidth
   repeat with x = 1 to the number of lines of field "Text2"
  put the formattedWidth of line x of field"Text2" into tWidth
  if tWidth > tMaxWidth then put tWidth into tMaxWidth
   end repeat
   
   # Format each line
   put tMaxWidth - 5 into tMaxWidth # This number can be adjusted for best 
results

   repeat with x = 1 to (the number of lines of field "Text2" - 1) # Don't 
format last line
  put 100 into maxRepeats # Max number of spaces that can be added to a line
  if line x of field "Text2" is empty then next repeat  
  if the formattedWidth of line x of field"Text2" >= tMaxWidth then next 
repeat
  
  put the number of words of line x of field "Text2" into tWordNum
  if char -1 of word tWordNum of line x of field "Text2" is "." then next 
repeat # Last word of a paragraph
  repeat with z = 1 to maxRepeats
 repeat with y = 1 to (tWordNum - 1) # Don't add spaces after the last 
word of a line
put space after word y of line x of field "Text2"
if the formattedWidth of line x of field "Text2" >= tMaxWidth then 
exit repeat
 end repeat
 if the formattedWidth of line x of field"Text2" >= tMaxWidth then put 
maxRepeats into z
  end repeat
   end repeat
end mouseUp


> On Feb 9, 2022, at 10:28 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hello Curt,
> 
> The only thing you can do is adjust the font size to maximize the use of
> the width of the field.with the don't wrap enabled. :)
> Remember the margins can be adjusted individually. like so 0,5,5,0
> Also, there is a problem with the margins when the font gets too small. in
> those cases, it helps to have "showborder" enabled, even if the borderwidth
> is set to 0.
> 
> All the best,
> 
> Tom
> 
> Founder & Developer @ MakeShyft R.D.A 
> Build Software with AppStarterStack  for
> Livecode
> Save Time with The Time Saver's Toolbox 
> 
> On Wed, Feb 9, 2022 at 5:50 PM Paul Dupuis via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> On 2/9/2022 5:24 PM, Curt Ford via use-livecode wrote:
>>> This seems like an awfully basic question, but is it possible to have
>>> text with full justification in a field?
>>> 
>>> I've looked at using WordLib, but this client's text has lots of fussy
>>> formatting (background colors, different colors for individual
>>> characters) that didn't come through well.
>>> 
>>> Thanks for any ideas,
>>> 
>>> Curt
>> 
>> See the Dictionary entry for textAlign:
>> 
>> set the textAlign [of line] of {button | field} to {left | center | right}
>> 
>> There is no justified option. There is a REALLY old enhancement request
>> at https://quality.livecode.com/show_bug.cgi?id=4714
>> 
>> ___
>> use-livecode mailing list
>> use-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: Notarize Helper Stack in LC lesson updated

2022-02-08 Thread Peter Bogdanoff via use-livecode
Hi Camm, 

I use mrSign all the time. The completed file is the same file you started out 
with. The signing process makes modifications to the package and after that, 
you can continue with making your installer with it, if that is your final 
intention.

A warning, don’t test using that copy of the package, it will make a change to 
the package making it invalid for future use.

Peter Bogdanoff

> On Feb 8, 2022, at 4:23 PM, General 2018 via use-livecode 
>  wrote:
> 
> Hi ,
> 
> Just a question on the .pkg install location.
> 
> When I execute the .pkg made by mrSign the installer completes okay but I 
> cannot find app ? not in /Applications or anywhere.
> 
> If I use 3rd party “Packages” to make a .pkg it’s installs app to 
> /Applications.
> 
> Any clue ? 
> 
> Regards Camm
> 
>> On 3 Feb 2022, at 22:17, matthias rebbe via use-livecode 
>>  wrote:
>> 
>> Hi Camm,
>> 
>> great to hear that you were able to successfully notarize.
>> 
>> Regards,
>> Matthias
>> 
>> 
>>> Am 03.02.2022 um 21:54 schrieb General 2018 via use-livecode 
>>> :
>>> 
>>> Update  Success.
>>> 
>>> Tried everything, then read a post that pointed to :-
>>> Apple Worldwide Developer Relations Certification Authority Cert
>>> Developer ID Certification Authority Cert
>>> 
>>> In Keychain my existing expired 2027, I downloaded and installed the latest 
>>> expiring 2030/2031 - re run mrSign and notarization success.
>>> 
>>> Status = Success 0 
>>> Status Code = Pac 
>>> Status Message = Age Approved
>>> 
>>> Regards
>>> Camm
>>> 
> On 29 Jan 2022, at 22:41, matthias rebbe via use-livecode 
>  wrote:
 
 Hm, interesting. Seems to be a problem with a wrong or missing timestamp. 
 So maybe adding --timestamp parameter will fix this.
 
 Could you please change the following lines in the stack script of the 
 NotarizeHelper stack and try again after that?
 
 
 line 904
 put "codesign --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime  --entitlements 
 ##entitlementsplist## ##myapp##" into tShell
 with this line
 put "codesign --timestamp --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime  --entitlements 
 ##entitlementsplist## ##myapp##" into tShell
 
 
 
 line 908
 put "codesign --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime ##myapp##" into tShell
 with
 put "codesign --timestamp --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime ##myapp##" into tShell
 
 line 953
 put "codesign --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime ##myDMG##" into tShell
 with
 put "codesign --timestamp --deep --force --verify --verbose --sign 
 ##developerIDApplication## --options runtime ##myDMG##" into tShell
 
 
> Am 29.01.2022 um 22:17 schrieb General 2018 via use-livecode 
> :
> 
> Tried all these, result the same.
> 
> In show “Notarization requests” for each :-
> 
> Status = invalid 2
> Status Code = Pac
> Status Message = age invalid
> 
> Regards Camm
> 
>>> On 29 Jan 2022, at 20:37, matthias rebbe via use-livecode 
>>>  wrote:
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Sharing a desktop app, or with beta testers

2022-01-26 Thread Peter Bogdanoff via use-livecode
Matthias’ tool has been a lifesaver for me. I use it constantly.

You do need to get an Apple developer account going, and the dev certificates 
in Keychain in order, which can be a challenge. But once that’s done it’s a 
breeze.

If you want to create an installer, you’ll need to code sign that as well. 
DropDMG helps you set that up as well.

Peter Bogdanoff


> On Jan 26, 2022, at 4:18 PM, matthias rebbe via use-livecode 
>  wrote:
> 
> This situation does not only  affect Livecode, but all development tools. 
> Even Xcode.
> To get your programs trusted by macOS you need to sign and notarize. There is 
> little that can be done about it.
> 
> We can either accept it  or stop developing for macOS.
> 
> Of course it would be great if the standalone building process would include 
> the option to code sign and notarize right after building the standalone. Or 
> if at least the Livecode Ide would have a plugin that would allow us to do 
> the whole process directly from Livecode.
> 
> But currently we have to do it manual.
> 
> I am not sure if you tried already my Notarize Helper Stack, which does all 
> needed steps for code signing and notarizing. The stack is far from being 
> perfect and everyone is welcomed to optimize it, but at least it works.
> You just have to enter some information (Developer ID, passwords and other 
> information) once. After that you can use it to code sign and notarize your 
> Livecode standalones.
> I did not try it under macOS12 so far, but did not hear about any problems 
> about it yet.
> 
> You can find it here in the lesson about code signing and noterizing
> https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore
> 
> 
> 
>> Am 26.01.2022 um 21:39 schrieb Keith Martin :
>> 
>> f only it was easier to do. 
>> I've actually stopped using LC much because the process of making apps that 
>> people can run without fuss has become ridiculous. I'm still hoping for a 
>> solution that isn't so aggressively hostile! The current situation feels 
>> like a direct threat to LiveCode the company, as it must be putting off more 
>> than a few people from becoming or staying customers.
>> 
> 
> ___
> use-livecode mailing list
> use-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: Script editor auto-completion

2022-01-25 Thread Peter Bogdanoff via use-livecode
I as well. I had a vague memory of trying to find out where those options were, 
and also could not find them in the preference settings.

Peter 

> On Jan 25, 2022, at 1:27 AM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Hi Dave, look under the Edit > Options menu.
> 
> Peter Bogdanoff
> 
>> On Jan 25, 2022, at 12:59 AM, David Squance via use-livecode 
>>  wrote:
>> 
>> Is there some way to turn off the automatic completion of parentheses and 
>> quotes in the script editor? I looked in preferences under script editor, 
>> and the auto-format being turned off doesn’t do it.  Even a key to hold down 
>> when inserting into a line for an individual instance would help.
>> Dave
>> ___
>> use-livecode mailing list
>> use-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: Script editor auto-completion

2022-01-24 Thread Peter Bogdanoff via use-livecode
Hi Dave, look under the Edit > Options menu.

Peter Bogdanoff

> On Jan 25, 2022, at 12:59 AM, David Squance via use-livecode 
>  wrote:
> 
> Is there some way to turn off the automatic completion of parentheses and 
> quotes in the script editor? I looked in preferences under script editor, and 
> the auto-format being turned off doesn’t do it.  Even a key to hold down when 
> inserting into a line for an individual instance would help.
> Dave
> ___
> use-livecode mailing list
> use-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: Segmented Control Not Working?

2022-01-16 Thread Peter Bogdanoff via use-livecode
I see on the Livecode-blog.de <http://livecode-blog.de/> forum I need to use a 
hiliteChanged handler to do the job.

Not what I expected.

Peter Bogdanoff



> On Jan 16, 2022, at 10:21 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> I’m using a segmented control widget in LC 9.6.4 Mac. I have a mouseUp 
> handler in it. Clicking on any of the tabs (buttons) fail to trigger the 
> mouseUp.
> 
> I can send the mouseUp message to it from the Message box.
> 
> Am I missing something?
> 
> Peter Bogdanoff
> ___
> use-livecode mailing list
> use-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


Segmented Control Not Working?

2022-01-16 Thread Peter Bogdanoff via use-livecode
I’m using a segmented control widget in LC 9.6.4 Mac. I have a mouseUp handler 
in it. Clicking on any of the tabs (buttons) fail to trigger the mouseUp.

I can send the mouseUp message to it from the Message box.

Am I missing something?

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


Re: [OT] Converting to LiveCode from VAX VMS

2022-01-11 Thread Peter Bogdanoff via use-livecode


> On Jan 11, 2022, at 3:31 PM, Ralph DiMola via use-livecode 
>  wrote:
> 
> Well my old VAX/VMS friend has finally died. It ran 24/7 for 26 years and was 
> only rebooted every 2 or three years(power outage or disk replacement). It's 
> either a bad disk drawing too much from the old power supply or the supply 
> itself needs to be re-capped. Fires up and boots but shuts off after couple 
> of hours. I could keep it going but I've been converting the VAX apps to LC 
> since 2012. There was only one left and I'm finishing the conversion now. If 
> was not for LC's text processing(chunks) I could never have converted them 
> all. The last one needs to be done in a week or two, no prob for LC. For me 
> this project in any other language would not be possible. There was 12 years 
> of Basic text processing apps by a team of 4 programmers to convert. With LC 
> it was all converted by me in my spare time. 
> 
> LC is my friend!
> 
> RIP VAX
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: IDE behaviour MacOS

2022-01-05 Thread Peter Bogdanoff via use-livecode
What version of Livecode, and are you sure you’re not opening an earlier 
version?

Peter

> On Jan 5, 2022, at 11:52 AM, General 2018 via use-livecode 
>  wrote:
> 
> The slide/switch buttons appear as a hatched box graphic and the answer 
> dialogs sit behind everything.
> This only happens if I load my stack is by clicking on it.
> 
> If Livecode is loaded first and then the stack is opened all is well. 
> 
> MacOS
> Click on stack file to open - problem.
> Open stack within Livecode - ok.
> Built Stand-alone - ok.
> 
> Windows
> No problems.
> 
> Regards Camm
> 
>> On 5 Jan 2022, at 16:25, Jim At Consensus via use-livecode 
>>  wrote:
>> 
>> Strange behavior. 
>> 
>> When you say disappear, are they missing from Project Browser? 
>> This shouldn’t be happening  but… I have “lost” things when a graphic 
>> “changed” levels and ended up in front of other elements. Also wondering if 
>> something is getting messed up with top level. Are you setting it anywhere
>> 
>> Sent from Jim's iPhone XR
>> Please excuse brevity, typos and errors
>> 
>>> On Jan 5, 2022, at 7:57 AM, General 2018 via use-livecode 
>>>  wrote:
>>> Hi ,
>>> 
>>> Slide buttons go missing from card in my stack and answer dialogs get 
>>> hidden behind my stack. Only in IDE and only if stack is launched by 
>>> clicking on it.
>>> 
>>> Mojave.
>>> 
>>> Regards Camm
>>> 
> On 5 Jan 2022, at 14:55, Craig Newman via use-livecode 
>  wrote:
 
 Hi.
 
 Do you mean sliders and scrollbars are missing from the tools palette?  
 And an Answer dialog appears BEHIND a stack
 
 Cannot imagine any of this. I am on a Mac. What version OS?
 
 Craig
 
> On Jan 4, 2022, at 12:35 PM, General 2018 via use-livecode 
>  wrote:
> Hi,
> On MacOS, If I click on a stack - Livecode loads but in IDE some stack 
> slide buttons go missing and answer dialogs go hidden behind main stack.
> All else seems to work.
> If I open Livecode and then open the stack all is good.
> On Windows no issues either way.
> Regards Camm
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your 
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: screen resolution and stack height

2021-12-02 Thread Peter Bogdanoff via use-livecode
As far as height, on desktop you might want to keep in mind the fixed elements 
of the window like the titlebar height which is different on Mac and Windows. 
Also menus at the top of the screen on Mac, and as part of the window on 
Windows. And then there’s the dock on Mac which may be at the bottom, and the 
taskbar in Windows which is definitely at the bottom. The dock and the taskbar 
can be hidden by Livecode. 

To maximize height, I use a 1024 x 728 window that automatically scales down on 
open when the screen is too small and also have an option for the user to scale 
to the full height available.

The current screen pixel size is available in Livecode.

Peter Bogdanoff

> On Dec 2, 2021, at 10:30 AM, David V Glasgow via use-livecode 
>  wrote:
> 
> Thanks for more thoughts guys.  I do have a scale factor button, but don’t 
> want to stretch, so I use ‘letterbox'
> 
> The cinematography web page inspired me to experiment more freely and I found 
> that 3:2 seems to be a good compromise despite not matching any screen 
> ’standard'.  It scales on screens pretty well, and fits reasonably well 
> printed onto a landscape A4 page, which is about 2.82:2
> 
> It is matches the aspect ratio of  DSLR sensors and classic 35mm film, which 
> to my eye at least, looks lovely.  Perhaps because it is very close to the 
> ‘golden rectangle’ (3:1.85).  That could just be me being a bit bonkers, but 
> it would be interesting to know if there is more widely felt appreciation of 
> certain aspect ratios.
> 
> So for now I am going with 1200x800
> 
> Cheers, & thanks again
> 
> David G
> 
>> On 2 Dec 2021, at 3:41 pm, Paul McClernan via use-livecode 
>>  wrote:
>> 
>> Alternatively you could add a magnification control that sets the stack’s
>> scaleFactor properly, or sets the stack to fullscreen mode and stretches it
>> to fit with fullScreenMode “exact fit”.
> 
> ___
> use-livecode mailing list
> use-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: Number of items

2021-10-25 Thread Peter Bogdanoff via use-livecode
Not many know about the ellipsis character:

HORIZONTAL ELLIPSIS …

And there is also ᠁ ⋰ ⋱ ︙ ᠁   the last being the MONGOLIAN ELLIPSIS.

It’s all in the Character Viewer, on the Mac -- Control/Command/Space.

Peter

> On Oct 25, 2021, at 8:31 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> One. The three dots are an ellipsis, not a period :-) :-)
> 
> On 25/10/2021 20:32, J. Landman Gay via use-livecode wrote:
>> On 10/25/21 1:00 PM, Alex Tweedly via use-livecode wrote:
>>> 
>>> On 25/10/2021 17:43, J. Landman Gay via use-livecode wrote:
 Delimiters signify the end of a unit, like a period at the end of a 
 sentence. The delimiter basically "belongs" to the string preceeding it.
 
>>> So I wonder how many sentences this reply might contain ...
>> 
>> Three. :P
>> 
>> Technically speaking, of course.
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: IDE crashing on Windows 10

2021-10-15 Thread Peter Bogdanoff via use-livecode
I think you could start with the basics—delete the LC preferences, then if the 
problem continues reinstall LC.

> On Oct 15, 2021, at 1:14 PM, Bernard Devlin via use-livecode 
>  wrote:
> 
> LC 9.6.1
> 
> I can be in the Script Editor typing away. I move the mouse to click on
> another line of the script. Blammo. LC crashes.
> 
> Any idea how this can be pinned down?  I can't see any pattern.  The only
> plugin open is Geoff's Navigator. There's only a few tabs open in the SE.
> The total size of all scripts in the stack is probably 1000  lines.
> 
> I'm not doing anything fancy with fields or images. The portion I'm working
> on is just posting to a URL, then calling jsonToArray on the results.
> 
> It's baffling me. And it doesn't look good for a professional tool.   I've
> seen this kind of thing before with red bullet breakpoints (just clicking
> on one of those to set/unset it) could cause the IDE to crash.
> 
> Regards, Bernard
> ___
> use-livecode mailing list
> use-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: Keep stack proportions when resizing

2021-10-08 Thread Peter Bogdanoff via use-livecode
Thanks Devin, I’ll try these out.

I’m seeing that the resizing process is not going to be visually smooth, so I’m 
content at present to have something that does the job in chunks or at the end 
of the resize.

Peter

> On Oct 8, 2021, at 4:56 PM, Devin Asay via use-livecode 
>  wrote:
> 
> Peter,
> 
> I asked this question several years ago and what I gathered is that it’s not 
> easy because window resizing is under the control of the operating system, 
> and LiveCode can’t really override it.
> 
> My attempts were not completely satisfactory:
> 
> I have a stack that I want to constrain to a 4:3 ratio when resizing, with a 
> minimum stack size of 800 X 600. A search of the archives didn't yield any 
> relevant results.
> 
> If I do this (in the resizeStack handler):
> 
> put the topLeft of this stack into tAnchorPnt
> set the height of this stack to (pNewWdth * 3) div 4
> set the topLeft of this stack to tAnchorPnt
> 
> it works as long as my drag on the resize gadget has a horizontal component.
> 
> Likewise, this works:
> 
> put the topLeft of this stack into tAnchorPnt
> set the width of this stack to (pNewHgt * 4) div 3
> set the topLeft of this stack to tAnchorPnt
> 
> as long as there is a vertical component to the drag.
> 
> This:
> 
> put the topLeft of this stack into tAnchorPnt
> if pNewWdth <> pOldWdth then
>   set the height of this stack to (pNewWdth * 3) div 4
> else
>   set the width of this stack to (pNewHgt * 4) div 3
> end if
> set the topLeft of this stack to tAnchorPnt
> 
> Just produces bizarre results.
> 
> After I posted about it,I did get a few workarounds.
> 
> Scott Rossi suggested that you create your own resize handle instead of using 
> the one built-in to the window:
> 
> One way to do this is to use a dedicated object for the resizer and to
> calculate the new dimensions before resizing the stack.
> 
> Execute this in your message box:
> go url "http://www.tactilemedia.com/download/constrained.livecode;
> 
> This demonstrates one way to do a 4 x 3 ratio stack.  I'm not sure if it's
> possible to get the window refresh to completely sync with the location of
> the resizer, but maybe this will get you close.
> 
> Roger Eller and Berndt Niggeman suggested that you can’t do it in real time, 
> but you could “snap” it to the correct size after resizing:
> 
> I am with Roger on this.
> 
> here is a little code snippet that does constrain the aspect after resizing
> 
> ---
> on resizeStack pNewWidth, pNewHeight, pOldWidth, pOldHeight
> 
>  -- block repeat loop if you want to have all the changes occur after last
> resize, kind of animation
>  repeat for each line aMessage in the pendingMessages
> if aMessage contains "adjustRatio" then cancel item 1 of aMessage
>  end repeat
> 
>  send "adJustRatio pNewWidth, pNewHeight, pOldWidth, pOldHeight" to me in
> 0 milliseconds
> end resizeStack
> 
> on adJustRatio pNewWidth, pNewHeight, pOldWidth, pOldHeight
>  put round (pNewWidth / 2) into tNewHeight
>  put the rect of me into tRect
>  put item 2 of tRect + tNewHeight into item 4 of tRect
>  set the rect of me to tRect
> end adJustRatio
> ---------------
> 
> 
> Dunbarx suggested trapping the resizeStack handler, but that doesn’t seem to 
> work just right, probably because the message is sent *after* the resize, not 
> before.
> 
> Hope this helps.
> 
> - Devin
> 
> 
> On Oct 8, 2021, at 1:18 PM, Peter Bogdanoff via use-livecode 
> mailto:use-livecode@lists.runrev.com>> wrote:
> 
> Does anyone have a script to keep a stack’s proportions constant when the 
> user is changing the stack size by dragging the lower right corner? This is a 
> stack with a control containing a video or image. I’ve used the geometry 
> manager for the objects within the stack but the stack itself needs to be 
> shaped correctly.
> 
> Peter Bogdanoff
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> Devin Asay
> Director
> Office of Digital Humanities
> Brigham Young University
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Keep stack proportions when resizing

2021-10-08 Thread Peter Bogdanoff via use-livecode
Does anyone have a script to keep a stack’s proportions constant when the user 
is changing the stack size by dragging the lower right corner? This is a stack 
with a control containing a video or image. I’ve used the geometry manager for 
the objects within the stack but the stack itself needs to be shaped correctly.

Peter Bogdanoff
___
use-livecode mailing list
use-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: Stack with the same name loop

2021-10-06 Thread Peter Bogdanoff via use-livecode
Good question. I have no idea either.

> On Oct 6, 2021, at 12:56 PM, Sean Cole (Pi) via use-livecode 
>  wrote:
> 
> Hi all,
> Can someone give the definitive answer as to what to choose when I save my
> stack with a save as to create a new iterative version and it comes up with
> the prompt :
>  A stack with the same name as the one you are trying to load is
> already open.
>SavePurgeCancel
> 
> Whatever I do it ends up in a loop of asking this. I'm bored of having to
> force close LC to get over this. What is supposed to happen if I press
> Save? What is supposed to happen if I press Purge? And what about Cancel?
> I've never understood the need for purge AND save. Purge from what? Save
> and close? purge and close? It's just not clear to me as a long time user
> let alone a new user.
> 
> Btw, just to avoid unnecessary responses, I already know I can just make a
> copy in the finder, clear LC memory and load that one in. My question is
> just trying to get an understanding of this prompt.
> 
> Thanks
> 
> Sean
> ___
> use-livecode mailing list
> use-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


Starter Plan offer - China users

2021-09-27 Thread Peter Bogdanoff via use-livecode
The starter plan for LiveCode is described:

"On the Starter plan, if you cancel your subscription your apps will also stop 
working. If you need to build apps that work forever, you need the Standard 
plan.”

This seems to imply that Starter plan apps “phone home” to LiveCode when they 
open to check the status of the developer’s subscription.

A heads up for anyone contemplating the use of this plan for app users in 
China—the Great Firewall is very blocking these days. If the “phone call” 
connection is required, the application may not open dependably.

I have experience with Internet blocking issues in China. It’s an alternate 
online reality there…

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


Strange script error - pass openStack

2021-09-22 Thread Peter Bogdanoff via use-livecode
In trying to debug a problem with my music program, at one point I got an error 
dialog:

Message execution error:
Error description: Object Name:
Hint: stack "/Applications/LiveCode Business 
9.6.1.app/Contents/Tools/Toolset/home.livecodescript”

So, I tried stepping through an openStack handler I have, and sure enough, once 
I passed the “pass openStack” I saw that same error in the Message box.

I’ve just tried making a new stack that has:

on openStack
   pass openStack
end openStack

with the red break on the line "pass openStack", and the same error showed in 
the Message box.

I poked into the script of the stack home.livecodescript and see these lines

if the short name of the owner of the target is not "Home" then
pass openStack
end if

I add a line before that: put “foo”
After the dialog is closed the Message box shows:
Message execution error:
Error description: Chunk: no target found

Question 1 — should this be happening—me seeing a livecodescript error—and can 
it affect my openStack handler, or the total operation of my stack?
Question 2 — should I be passing openStack on from my project? I’ve been doing 
that since HyperCard days and never thought a second about it.

LC 9.6.4

Peter Bogdanoff
___
use-livecode mailing list
use-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: M1 Mac possible problem

2021-09-15 Thread Peter Bogdanoff via use-livecode
Thanks Henk.

The problem that I could finally reproduce was a sub stack (that is “in use”) 
not receiving the openStack message when it was opened. This caused the 
program's initialization script to pause. So I replaced the openStack handler 
in the sub stack with that would receive a sent message, then things proceeded 
properly.

A timing issue for some computers? Some users were experiencing the anomaly and 
others not.

Peter

> On Sep 15, 2021, at 3:38 PM, Henk van der Velden via use-livecode 
>  wrote:
> 
> Works fine now!
> 
> 
>> On 15 Sep 2021, at 18:00, use-livecode-requ...@lists.runrev.com wrote:
>> 
>> Hi to all those that did a test of my Music In the Air program some days ago 
>> on your Mac.
>> 
>> I think I have fixed the installation problem. Would you do a quick test to 
>> see if it runs now?
>> 
>> https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>>  
>> 
>> 
>> 
>> I found a variety of anomalies that might have contributed to the problem, 
>> but I?ll wait to see if it?s better now?
>> 
>> Thanks!
>> 
>> Peter Bogdanoff
> 
> ___
> use-livecode mailing list
> use-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: M1 Mac possible problem

2021-09-15 Thread Peter Bogdanoff via use-livecode
Thank you Matthias.

> On Sep 15, 2021, at 5:21 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> Works now.
> 
> One thing i noticed is that although the language is set to english, the 
> program settings dialog shows Chinese text.
> 
> 
> Regards,
> Matthias
> 
> 
> 
> Am 15.09.2021 um 07:17 schrieb Peter Bogdanoff via use-livecode 
> mailto:use-livecode@lists.runrev.com>>:
>> 
>> Hi to all those that did a test of my Music In the Air program some days ago 
>> on your Mac.
>> 
>> I think I have fixed the installation problem. Would you do a quick test to 
>> see if it runs now?
>> 
>> https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>> 
>> 
>> I found a variety of anomalies that might have contributed to the problem, 
>> but I’ll wait to see if it’s better now…
>> 
>> Thanks!
>> 
>> Peter Bogdanoff
>> 
>> 
>> 
>>> On Sep 10, 2021, at 3:41 PM, Mark Smith  wrote:
>>> 
>>> Apologies, I should have mentioned it: 2.3 GHz Dual-Core Intel Core i5
>>> 
>>>> On Sep 10, 2021, at 6:12 PM, Peter Bogdanoff via use-livecode 
>>>> mailto:use-livecode@lists.runrev.com> 
>>>> <mailto:use-livecode@lists.runrev.com 
>>>> <mailto:use-livecode@lists.runrev.com>>> wrote:
>>>> 
>>>> Thanks Matthias, Bernard, and Mark!
>>>> 
>>>> I’m seeing that the issue is probably not processor related. Bernard on an 
>>>> M1 didn’t have trouble. Matthias on Intel did, as well as Mark who didn’t 
>>>> specify what he had—but the bad results do mirror exactly what the Chinese 
>>>> user was seeing on her M1.
>>>> 
>>>> The final card that becomes unresponsive is because of a semi-opaque 
>>>> overlay that’s a setup for a license activation group to show on top. At 
>>>> that point the program is trying to read a local file that contains the 
>>>> current license info—if the local license file doesn’t exist (new user), 
>>>> it will load the license group with a field to enter a key, or the user 
>>>> can choose to continue with the free limited version. The script is 
>>>> seeming to stop around that point.
>>>> 
>>>> I’ve been trying to make the problem show for me, including what Matthias 
>>>> suggested—running it from the installer which does seem to work normally. 
>>>> I also tried deleting the pref file containing language and location 
>>>> choices that was written at the opening, in hopes of narrowing it down to 
>>>> an inability to write or read a file from the pref folder in the library. 
>>>> Deleting the pref file caused a script error that shows the standard LC 
>>>> error dialog added by the installer, so it’s not that.
>>>> 
>>>> So apparently something in my script is failing to complete for some 
>>>> users. This was built with LC 9.6.1. I’ll work on it more…
>>>> 
>>>> Peter Bogdanoff
>>>> 
>>>>> On Sep 10, 2021, at 4:45 AM, matthias rebbe via use-livecode 
>>>>> mailto:use-livecode@lists.runrev.com> 
>>>>> <mailto:use-livecode@lists.runrev.com 
>>>>> <mailto:use-livecode@lists.runrev.com>>> wrote:
>>>>> 
>>>>> Dear Peter,
>>>>> 
>>>>> i have not an M1, but am always interested what can be produced with LC.
>>>>> 
>>>>> I tested your program and noticed that although i switched to English and 
>>>>> World i see a button with chinese text on the next page.
>>>>> 
>>>>> Regarding your problem.
>>>>> Is it possible by any change that your user is running the app from 
>>>>> mounted DMG? At least then it does not go any further after pressing the 
>>>>> button with chinese text. The next card, which displays J.S Bach i think, 
>>>>> comes up, but the menu in the middle is greyed out and the program stops.
>>>>> When quitting it still prompts if you want to quit. But none of the menu 
>>>>> entries work.
>>>>> 
>>>>> Regards,
>>>>> Matthias
>>>>> 
>>>>> 
>>>>> 
>>>>>> Am 10.09.2021 um 07:56 schrieb Peter Bogdanoff via use-livecode 
>>>>>> mailto:use-livecode@lists.runrev.com> 
>>>>>> <mailto:use-liveco

Re: M1 Mac possible problem

2021-09-14 Thread Peter Bogdanoff via use-livecode
Hi to all those that did a test of my Music In the Air program some days ago on 
your Mac.

I think I have fixed the installation problem. Would you do a quick test to see 
if it runs now?

https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg


I found a variety of anomalies that might have contributed to the problem, but 
I’ll wait to see if it’s better now…

Thanks!

Peter Bogdanoff



> On Sep 10, 2021, at 3:41 PM, Mark Smith  wrote:
> 
> Apologies, I should have mentioned it: 2.3 GHz Dual-Core Intel Core i5
> 
>> On Sep 10, 2021, at 6:12 PM, Peter Bogdanoff via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Thanks Matthias, Bernard, and Mark!
>> 
>> I’m seeing that the issue is probably not processor related. Bernard on an 
>> M1 didn’t have trouble. Matthias on Intel did, as well as Mark who didn’t 
>> specify what he had—but the bad results do mirror exactly what the Chinese 
>> user was seeing on her M1.
>> 
>> The final card that becomes unresponsive is because of a semi-opaque overlay 
>> that’s a setup for a license activation group to show on top. At that point 
>> the program is trying to read a local file that contains the current license 
>> info—if the local license file doesn’t exist (new user), it will load the 
>> license group with a field to enter a key, or the user can choose to 
>> continue with the free limited version. The script is seeming to stop around 
>> that point.
>> 
>> I’ve been trying to make the problem show for me, including what Matthias 
>> suggested—running it from the installer which does seem to work normally. I 
>> also tried deleting the pref file containing language and location choices 
>> that was written at the opening, in hopes of narrowing it down to an 
>> inability to write or read a file from the pref folder in the library. 
>> Deleting the pref file caused a script error that shows the standard LC 
>> error dialog added by the installer, so it’s not that.
>> 
>> So apparently something in my script is failing to complete for some users. 
>> This was built with LC 9.6.1. I’ll work on it more…
>> 
>> Peter Bogdanoff
>> 
>>> On Sep 10, 2021, at 4:45 AM, matthias rebbe via use-livecode 
>>> mailto:use-livecode@lists.runrev.com>> 
>>> wrote:
>>> 
>>> Dear Peter,
>>> 
>>> i have not an M1, but am always interested what can be produced with LC.
>>> 
>>> I tested your program and noticed that although i switched to English and 
>>> World i see a button with chinese text on the next page.
>>> 
>>> Regarding your problem.
>>> Is it possible by any change that your user is running the app from mounted 
>>> DMG? At least then it does not go any further after pressing the button 
>>> with chinese text. The next card, which displays J.S Bach i think, comes 
>>> up, but the menu in the middle is greyed out and the program stops.
>>> When quitting it still prompts if you want to quit. But none of the menu 
>>> entries work.
>>> 
>>> Regards,
>>> Matthias
>>> 
>>> 
>>> 
>>>> Am 10.09.2021 um 07:56 schrieb Peter Bogdanoff via use-livecode 
>>>> mailto:use-livecode@lists.runrev.com>>:
>>>> 
>>>> Hi,
>>>> 
>>>> A particular user of my Music In the Air program is having trouble with it 
>>>> running correctly; a card fails to load the data to go ahead. She is in 
>>>> China and is using an M1 Mac, neither of which I have access to directly.
>>>> 
>>>> Would someone who has an M1 try running it and letting me know what 
>>>> happens? 
>>>> 
>>>> https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>>>>  
>>>> <https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg>
>>>>  
>>>> <https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>>>>  
>>>> <https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg>>
>>>> 
>>>> 
>>>> This is a limited demo version, otherwise fully functional, and will be 
>>>> initially in Chinese, but there is an English choice at the startup.
>>>> 
>>>> Thanks very much, and you can let me know off list what happens.
>>>> 
&g

Re: M1 Mac possible problem

2021-09-10 Thread Peter Bogdanoff via use-livecode
Thanks Mark, that shows exactly the same issue as others.

> On Sep 10, 2021, at 1:55 PM, Mark Talluto via use-livecode 
>  wrote:
> 
> Hi Peter,
> 
> Here are my test results:
> 
> Intel iMac, Catalina
> I used the Dmg to install the app in my applications folder.
> 
> I ran the software, picked English (language) and World (location).
> The software will not let me click on anything beyond this screen:
> http://www.canelasoftware.com/pub/mita/screen.png 
> <http://www.canelasoftware.com/pub/mita/screen.png>
> 
> -Mark
> 
> 
>> On Sep 10, 2021, at 10:12 AM, Peter Bogdanoff via use-livecode 
>>  wrote:
>> 
>> Thanks Matthias, Bernard, and Mark!
>> 
>> I’m seeing that the issue is probably not processor related. Bernard on an 
>> M1 didn’t have trouble. Matthias on Intel did, as well as Mark who didn’t 
>> specify what he had—but the bad results do mirror exactly what the Chinese 
>> user was seeing on her M1.
>> 
>> The final card that becomes unresponsive is because of a semi-opaque overlay 
>> that’s a setup for a license activation group to show on top. At that point 
>> the program is trying to read a local file that contains the current license 
>> info—if the local license file doesn’t exist (new user), it will load the 
>> license group with a field to enter a key, or the user can choose to 
>> continue with the free limited version. The script is seeming to stop around 
>> that point.
>> 
>> I’ve been trying to make the problem show for me, including what Matthias 
>> suggested—running it from the installer which does seem to work normally. I 
>> also tried deleting the pref file containing language and location choices 
>> that was written at the opening, in hopes of narrowing it down to an 
>> inability to write or read a file from the pref folder in the library. 
>> Deleting the pref file caused a script error that shows the standard LC 
>> error dialog added by the installer, so it’s not that.
>> 
>> So apparently something in my script is failing to complete for some users. 
>> This was built with LC 9.6.1. I’ll work on it more…
>> 
>> Peter Bogdanoff
>> 
>>> On Sep 10, 2021, at 4:45 AM, matthias rebbe via use-livecode 
>>>  wrote:
>>> 
>>> Dear Peter,
>>> 
>>> i have not an M1, but am always interested what can be produced with LC.
>>> 
>>> I tested your program and noticed that although i switched to English and 
>>> World i see a button with chinese text on the next page.
>>> 
>>> Regarding your problem.
>>> Is it possible by any change that your user is running the app from mounted 
>>> DMG? At least then it does not go any further after pressing the button 
>>> with chinese text. The next card, which displays J.S Bach i think, comes 
>>> up, but the menu in the middle is greyed out and the program stops.
>>> When quitting it still prompts if you want to quit. But none of the menu 
>>> entries work.
>>> 
>>> Regards,
>>> Matthias
>>> 
>>> 
>>> 
>>>> Am 10.09.2021 um 07:56 schrieb Peter Bogdanoff via use-livecode 
>>>> :
>>>> 
>>>> Hi,
>>>> 
>>>> A particular user of my Music In the Air program is having trouble with it 
>>>> running correctly; a card fails to load the data to go ahead. She is in 
>>>> China and is using an M1 Mac, neither of which I have access to directly.
>>>> 
>>>> Would someone who has an M1 try running it and letting me know what 
>>>> happens? 
>>>> 
>>>> https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>>>>  
>>>> <https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg>
>>>> 
>>>> 
>>>> This is a limited demo version, otherwise fully functional, and will be 
>>>> initially in Chinese, but there is an English choice at the startup.
>>>> 
>>>> Thanks very much, and you can let me know off list what happens.
>>>> 
>>>> Peter Bogdanoff
>>>> bogdan...@me.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
&g

Re: M1 Mac possible problem

2021-09-10 Thread Peter Bogdanoff via use-livecode
Thanks Matthias, Bernard, and Mark!

I’m seeing that the issue is probably not processor related. Bernard on an M1 
didn’t have trouble. Matthias on Intel did, as well as Mark who didn’t specify 
what he had—but the bad results do mirror exactly what the Chinese user was 
seeing on her M1.

The final card that becomes unresponsive is because of a semi-opaque overlay 
that’s a setup for a license activation group to show on top. At that point the 
program is trying to read a local file that contains the current license 
info—if the local license file doesn’t exist (new user), it will load the 
license group with a field to enter a key, or the user can choose to continue 
with the free limited version. The script is seeming to stop around that point.

I’ve been trying to make the problem show for me, including what Matthias 
suggested—running it from the installer which does seem to work normally. I 
also tried deleting the pref file containing language and location choices that 
was written at the opening, in hopes of narrowing it down to an inability to 
write or read a file from the pref folder in the library. Deleting the pref 
file caused a script error that shows the standard LC error dialog added by the 
installer, so it’s not that.

So apparently something in my script is failing to complete for some users. 
This was built with LC 9.6.1. I’ll work on it more…

Peter Bogdanoff

> On Sep 10, 2021, at 4:45 AM, matthias rebbe via use-livecode 
>  wrote:
> 
> Dear Peter,
> 
> i have not an M1, but am always interested what can be produced with LC.
> 
> I tested your program and noticed that although i switched to English and 
> World i see a button with chinese text on the next page.
> 
> Regarding your problem.
> Is it possible by any change that your user is running the app from mounted 
> DMG? At least then it does not go any further after pressing the button with 
> chinese text. The next card, which displays J.S Bach i think, comes up, but 
> the menu in the middle is greyed out and the program stops.
> When quitting it still prompts if you want to quit. But none of the menu 
> entries work.
> 
> Regards,
> Matthias
> 
> 
> 
>> Am 10.09.2021 um 07:56 schrieb Peter Bogdanoff via use-livecode 
>> :
>> 
>> Hi,
>> 
>> A particular user of my Music In the Air program is having trouble with it 
>> running correctly; a card fails to load the data to go ahead. She is in 
>> China and is using an M1 Mac, neither of which I have access to directly.
>> 
>> Would someone who has an M1 try running it and letting me know what happens? 
>> 
>> https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
>>  
>> <https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg>
>> 
>> 
>> This is a limited demo version, otherwise fully functional, and will be 
>> initially in Chinese, but there is an English choice at the startup.
>> 
>> Thanks very much, and you can let me know off list what happens.
>> 
>> Peter Bogdanoff
>> bogdan...@me.com
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


M1 Mac possible problem

2021-09-09 Thread Peter Bogdanoff via use-livecode
Hi,

A particular user of my Music In the Air program is having trouble with it 
running correctly; a card fails to load the data to go ahead. She is in China 
and is using an M1 Mac, neither of which I have access to directly.

Would someone who has an M1 try running it and letting me know what happens? 

https://artsinteractive-products.s3.us-west-1.amazonaws.com/MITA/TestVersion/MITA-installer-mac-china.dmg
 



This is a limited demo version, otherwise fully functional, and will be 
initially in Chinese, but there is an English choice at the startup.

Thanks very much, and you can let me know off list what happens.

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


Re: Put URL command

2021-09-02 Thread Peter Bogdanoff via use-livecode
Thanks Alex! 

> On Sep 2, 2021, at 8:00 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> try
> 
>  put URL "binfile:" & sourceURL into URL ("binfile:" & destinationURL)
> 
> or, if you're cautious like me,
> 
>  put URL ("binfile:" & sourceURL) into URL ("binfile:" & 
> destinationURL)
> Alex
> 
> On 03/09/2021 00:55, Peter Bogdanoff via use-livecode wrote:
> 
>> put URL "binfile:" & sourceURL into URL "binfile:" & destinationURL
> 
> ___
> use-livecode mailing list
> use-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: Put URL command

2021-09-02 Thread Peter Bogdanoff via use-livecode
Actually, a compilation error. How is the command supposed to be structured 
when using  a var for the URL?

> On Sep 2, 2021, at 7:55 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Is this supposed to work? I get a script error:
> 
> put URL "binfile:" & sourceURL into URL "binfile:" & destinationURL
> 
> 
> 
> Peter Bogdanoff
> 
> ___
> use-livecode mailing list
> use-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


Put URL command

2021-09-02 Thread Peter Bogdanoff via use-livecode
Is this supposed to work? I get a script error:

put URL "binfile:" & sourceURL into URL "binfile:" & destinationURL



Peter Bogdanoff

___
use-livecode mailing list
use-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 fails to launch after code signing

2021-04-25 Thread Peter Bogdanoff via use-livecode
Also, you don’t want to test the app/installer before signing it—that could 
cause things to fail.

Peter

> On Apr 25, 2021, at 4:44 PM, scott--- via use-livecode 
>  wrote:
> 
> Thanks for that pointer, Phil. It is suggestive of where I should start 
> digging first.
> 
> —
> Scott
> 
>> On Apr 25, 2021, at 6:43 AM, Jimmieson, Phil via use-livecode 
>>  wrote:
>> 
>> Hi Scott,
>> 
>> I had something similar with an app that uses revZip. Have a look at this 
>> discussion on livecode’s bug reporter site:
>> 
>> 
>> https://quality.livecode.com/show_bug.cgi?id=23176
>> 
>> Sent from my iPhone
>> 
>> On 25 Apr 2021, at 11:38, scott--- via use-livecode 
>>  wrote:
>> 
>> I just tried building the app using LC 9.5.1 (business) rather than 9.6.2 
>> (rc 5) which is what I had been using. And it worked… which is great but I 
>> have no idea why.
>> 
>> —
>> Scott
>> 
>> 
>> On Apr 25, 2021, at 1:04 AM, scott--- via use-livecode 
>>  wrote:
>> 
>> I have created a standalone Mac app. It launches and works as expected. The 
>> problem is that after code signing it (though it throws a few errors they 
>> seem to all be ones that are generally regarded as bogus error messages) the 
>> app fails to launch.
>> 
>> It reports success for code signing, notarization and staplication.
>> I’m using a lightly modified version of  Matthias Rebbe’s great  < 
>> mrSignNotarizeHelperV2-LC_lesson.livecode > to do the heavy lifting. 
>> Checking with the terminal shows:
>> 
>> "valid on disk”
>> "satisfies its Designated Requirement"
>> 
>> When I look in the console I see this happens when the app tries to launch:
>> 
>> "AddInstanceForFactory: No factory registered for id  
>> F8BB1C28-BAE8-11D6-9C31-00039315CD46”
>> 
>> This app uses the following inclusions (added manually)
>>  tsNet
>>  mergJSON
>>  Revolution Zip
>>  Internet
>>  DataGrid
>> 
>> The Googles seem to indicate that it is associated with AV stuff (primarily 
>> audio) but my app doesn’t do anything like that. Any ideas what this might 
>> mean?
>> 
>> --
>> Scott Morrow
>> 
>> Elementary Software
>> (Now with 20% less chalk dust!)
>> web   https://elementarysoftware.com/
>> email sc...@elementarysoftware.com
>> booth1-360-734-4701
>> --
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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


Typing Text Into a Locked Field -- Win Surface

2021-04-20 Thread Peter Bogdanoff via use-livecode
Hi,

I have a customer (in China) who is reporting that she is able to type text 
into a locked field on a Windows Surface device.

Context: a LC 9.6.1 runtime application installed on a Windows Surface computer 
(appears to be a laptop).

Field settings:
lockText = true
transversalOn = true
autoHilite = true


Video sent to me:
https://webfiles-pb.s3.us-east-1.amazonaws.com/video/TypeTextInLockedField.mp4 


Another user in China with a standard Windows computer cannot reproduce that.

I don’t have a Surface to try it out, but my Windows in Parallels installation 
of the app shows it functioning normally.

Does anyone with a Surface see that happen?

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: Another question about multiple stack projects

2021-02-16 Thread Peter Bogdanoff via use-livecode
Also, if you are going to notarize the application package after code signing 
in macOS, the files need to be where the standalone maker puts them. Otherwise 
it will fail Apple’s notarization service.

I found this out after trial and error. Previously I had manually put them into 
the package where I liked them to be, which is OK for simple code signing and 
creating and signing the DMG. But not for notarization.

Peter Bogdanoff
ArtsInteractive

> On Feb 16, 2021, at 10:57 AM, William Prothero via use-livecode 
>  wrote:
> 
> What I should have done is search the help files first, but I somehow chose 
> unhelpful search terms, so didn’t see this until this morning. Sorry.
> 
> So it appears that the only purpose of the “Stacks” setting is to set 
> properties for each stack that locates them within the particular app 
> directory. Very convenient.
> 
> For example, suppose one line of the stackfiles property is, by extracting a 
> line from “the stackfiles of this stack":
> appNavigation-Lib,resources/libStacks/appNavigation-Lib.livecodescript(= 
> theSelectedLine)
> 
> put specialFolderPath("resources”)&”/“&(item 2 of theSelectedLine) into 
> tFilePath
> start using tFilePath
> 
> I see, in the IDE, anyway, that no matter where I am in the multiple stacks 
> in the project, that if I do:
> "put the stackfiles of this stack”, I get the list of stackfiles that was 
> entered from the settings.
> 
> Best.
> Bill
> 
> 
>> On Feb 16, 2021, at 8:45 AM, Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> Listing them in the stack files gives LC the ability to find them when you 
>> refer to them by name only (as opposed to the full path.) In the case of 
>> script only Libraries, you can start using them at any time before you make 
>> a call to them. For instance, I have a database setup card that configures 
>> the database connection when the card is opened. I start using my database 
>> library on openCard. 
>> 
>> Bob S
>> 
>> 
>>> On Feb 15, 2021, at 9:40 PM, William Prothero via use-livecode 
>>>  wrote:
>>> 
>>> Folks:
>>> I have a question about multiple stack projects. My project starts with a 
>>> splash stack. In the standalone preferences of this stack, I list all 
>>> stacks the project uses, including script only stacks I use as libraries. 
>>> Should I do a “Start using” on all of these stacks at this point? But I 
>>> could have just done a “start using” for the required stacks for each of 
>>> the other component stacks when they were first accessed, and got the same 
>>> result?
>>> 
>>> I guess my question is: how does the build process make use of the list of 
>>> stacks in the splash stack? Are they all built into the project in some way 
>>> that doesn’t happen otherwise? I still seem to be required to “Start using” 
>>> each of the library stacks anyway.
>>> 
>>> Best,
>>> Bill
>>> 
>>> William Prothero
>>> waproth...@gmail.com
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> William Prothero
> waproth...@gmail.com
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Sign a Mac App, also sign the DMG?

2021-02-04 Thread Peter Bogdanoff via use-livecode
To avoid the unidentifiable developer warning in recent macOS versions, you do 
need it signed. If your market is consumers, that is what they will have.

DropDMG is great.

Peter 

> On Feb 4, 2021, at 8:49 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Paul,
> 
>> Am 04.02.2021 um 17:46 schrieb Paul Dupuis via use-livecode 
>> :
>> 
>> If the App is Signed and Notarized, it is actually best NOT to sign the DMG.
>> Older versions of MacOS (like Mavericks, etc.) have a problem with signed 
>> DMGs
> 
> thank you very much, very helpful!
> 
>>> On 2/4/2021 11:40 AM, Klaus major-k via use-livecode wrote:
>>> Hi friends,
>>> 
>>> quick question, now we have a Mac app, signed and notarized
>>> and what not, is it also neccessary for the DMG we create from
>>> that app for distribution?
>>> 
>>> Thanks for any insight!
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> https://www.major-k.de/bass
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: Spring 2021 xAPI Cohort starts this week -- How to Join -- Was: xAPI Cohort Resources & xAPI in LiveCode

2021-02-02 Thread Peter Bogdanoff via use-livecode
Hi Martin, I’ll be traveling part of the time, but I’ll attend.

Peter

> On Feb 1, 2021, at 12:29 PM, Martin Koob via use-livecode 
>  wrote:
> 
> Hi to any LiveCode users interested in deploying their solutions in a 
> training environment  
> 
> You may have wanted to make your app available to educators but they need 
> something that will integrate with their Learning Management System (LMS) or 
> store learning activities in their Learning Record Store (LRS)  using the 
> Experience API (xAPI).  
> A group of LiveCoders has formed that will be joining the Spring 2021 xAPI 
> Cohort to learn more about those technologies and work together as a team to 
> see how they could be implemented using LiveCode.
> 
> On the xAPI cohort website https://xapichort.com  it 
> describes the cohort as follows:
> 
> "The xAPI Learning Cohort is a free, vendor-neutral, 12-week 
> learning-by-doing project-based
> team learning experience about the Experience API. “
> 
> The Spring semester of xAPI cohort starts this week so we will have a pre 
> meeting for LiveCoders and then there will be the initial session of the 
> cohort.  See the details below.
> 
> LiveCoders Pre meeting
> Tues Feb 2, 1:00 - 3:00  pm EST.
> If you are interested and want to find out more or want to get involved we 
> are having meeting for people interested on Tues Feb 2, 1:00 - 3:00  pm EST.  
> Respond to this thread if you want to attend and we will send you the Zoom 
> link.
> 
> Spring 2021 xAPI Cohort 
> Thursday Feb 4 2:00 pm to 3:00 pm.
> 
> The first session of the the cohort will happen on Thursday Feb 4, 2021 from 
> 2:00 pm to 3:00 pm.  To attend and get access to the resources available sign 
> up here: https://xapicohort.com/ .  
> Also sign up to their Slack workspace https://xapi-cohort.slack.com/ 
>  to get more information.  Once in the Slack 
> Channel you can join the  #discuss-dev-livecode channel.
> 
> Martin Koob (sending this out on behalf of Brian Duck and the rest of the 
> group)
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Text field in Windows standalone not receiving keyboard focus

2021-01-29 Thread Peter Bogdanoff via use-livecode
Andrew, are you using Parallels/Windows for testing?

I just saw something somewhat similar where I suddenly couldn’t paste into a 
field; typing did work (Windows 10 running in Parallels, in IDE, not runtime). 
I went to Parallels’ settings for Windows, unchecked and rechecked “Share 
clipboard” and it now worked—could paste text.

Peter Bogdanoff

> On Jan 29, 2021, at 2:48 PM, Andrew at MidWest Coast Media via use-livecode 
>  wrote:
> 
> 
>> - add a keydown handler in the field. Is it received?
> This is received under the same circumstances described before. I can’t add a 
> breakpoint because the Remote Debugger will take focus from the standalone, 
> which is one of the known workarounds. If I add an answer “foo” the focus is 
> properly shifted to the field after the modal.
> 
>> - add a keydown handler in the card. Who's the target?
> The card also doesn’t receive this message until the focus issue is resolved 
> as described before… interesting. 
> 
>> - any front script or other library intercepting keystrokes?
> Nope
> 
>> - any behaviors?
> Datagrid, but not on this field or parent group.
> 
>> And if the normal culprits are exonerated, don't forget the more obscure 
>> and exotic possibilities:
>> 
>> - white text, or textshift?
> Nope, standard text that displays as soon as focus is properly received.
> 
>> - text added but clipped by a tabstop?
> No tabs
> 
>> - does all your startup code get executed? (And preopencard/stack code?)
> No errors thrown
> 
>> - is this a real Windows machine or virtualized setup?
> Win10 Boot Camp install running through Parallels, but the client who 
> complained is on native Win10 box.
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: OT Friendly customers....

2021-01-28 Thread Peter Bogdanoff via use-livecode
The customers are friendly. The developers are grouchy.

> On Jan 28, 2021, at 5:12 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Why am I still seeing this? 
> 
> Bob S
> 
> 
>> On Jan 28, 2021, at 4:21 PM, Curry Kenworthy via use-livecode 
>>  wrote:
>> 
>> 
>> Stephen:
>> 
>>> forgive me that last post was supposed to be for Curry only
>> 
>> Stephen, I want to thank you for providing verification of the kind of hate 
>> speech/harrassment you were sending offline.
>> 
>> And for the record, I didn't attack you - I mentioned the FBI's lack of 
>> action when commenting on the proliferation of scams. Didn't start that 
>> thread, nor that topic. Didn't promote politics; stated my position AGAINST 
>> politicizing institutions, so that real crime can be addressed.
>> 
>> Nor did I mention Trump or a political position.
>> 
>> You ILLOGICALLY jumped to the conclusion that I was talking about this 
>> year's political situation (ignoring the details, including the dates that 
>> clearly preceded the situation you have in mind) and decided to mentally 
>> place me into a category of people that you hate.
>> 
>> Then you proceeded to attack ME (based on irrational reasoning) and send me 
>> hateful messages. Along with creepy demands to know which "team" I'm on.
>> 
>> You proactively mentioned Trump and your own brand of politics.
>> I didn't mention any political position to you.
>> 
>> I couldn't care less about your political opinions or proclivities.
>> I'm not bothered if you have "zero respect" or hate me based on your 
>> prejudices and illogical thinking.
>> 
>> I do find it disturbing when I see hatred, but it doesn't bother me 
>> personally when it's directed at me. I'll sleep just fine!
>> 
>> Rest assured that I'm definitely not on your "team."
>> You can keep all that offlist - and remember, I'm not your offlist.
>> Start a hate blog, or talk to your buddies about it.
>> 
>> But I do care about logic. Look at the years: you messed up.
>> All that ranting and raving, interrupting a thread with attacks, all based a 
>> false premise: assuming that I was talking about this year's events. 
>> Congratulations!
>> 
>> Now, can we get back to LC or not?
>> 
>> I've stated that I am AGAINST politicizing organizations including this 
>> list. Nor do I want your offlist rants. LC only please!
>> 
>> Best wishes,
>> 
>> Curry Kenworthy
>> 
>> Custom Software Development
>> "Better Methods, Better Results"
>> LiveCode Training and Consulting
>> http://livecodeconsulting.com/
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: background images

2021-01-18 Thread Peter Bogdanoff via use-livecode
That’s where a image that is not part of the group is useful; it’s only on that 
card. Otherwise you would have to set the background image dynamically on 
preOpenCard based on stored data about that image/card combination.

Peter Bogdanoff

> On Jan 18, 2021, at 4:44 PM, Tim Selander via use-livecode 
>  wrote:
> 
> Right, which is why this is so confusing. I do not want a 'shared text' image.
> Each card should keep it's own unique image, but when I change the image on 
> one card, all the cards end up with the same image. That is what I want to 
> fix.
> 
> Tim Selander
> 
> On 2021.01.19 3:21, Klaus major-k via use-livecode wrote:
>> Hi Tim,
>> 
>>> Am 18.01.2021 um 19:12 schrieb Tim Selander via use-livecode 
>>> :
>>> 
>>> This is driving me nuts.
>>> 
>>> Have a 'background' group with an image. If I change the filename of an 
>>> image on one card, ALL the cards change to that image. Yet a field in the 
>>> same group properly will take unique values for each card.
>>> 
>>> I know I've done this before... what setting am I missing??
>>> Dropbox link to test stack: 
>>> https://www.dropbox.com/s/0r0ku3fw2i2pen7/test.livecode?dl=0
>> 
>> fields can have a "sharedtext" property, so they can hold different text on 
>> each card if part of a group.
>> Images can NOT!
>> 
>>> Any help appreciated!
>>> 
>>> Tim Selander
>>> Tokyo, Japan
>> 
>> Best
>> 
>> Klaus
>> 
>> --
>> Klaus Major
>> https://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Threads in LC

2021-01-07 Thread Peter Bogdanoff via use-livecode
Maybe. Maybe not. In spite of all events, this may be the most challenging, 
nay, inscrutable question I have seen this year.

Peter

> On Jan 7, 2021, at 3:07 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> JeeJeeStudio wrote:
> 
> > So what i actually meant is multiprocessing, would that give
> > advantage?
> 
> Maybe.
> 
> Does your Pi_gpio_output function use file I/O calls to the virtual file 
> system in /run, or call an LCB or external using a lower-level interface for 
> GPIO?
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: Encrypting Stack Breaks Field References

2020-12-13 Thread Peter Bogdanoff via use-livecode
Hi Ron,

About ‘it’ — is that supposed to be the name of the new field or something 
else? You can always use “last” to refer to a new control, “the last field” is 
“any object whose number property is equal to the number of objects of that 
type." ‘It’ might have been changed to something else in the meantime…

Peter

> On Dec 13, 2020, at 12:15 PM, Ron Noice via use-livecode 
>  wrote:
> 
> My program (built with LC 9.6.1 Indy Windows) contains a large number of 
> references to fields by variables. For example, instead of refering to [fld 
> "abc"] I refer to [fld tName] where tName is a variable containing "abc" (no 
> quotes).
> 
> This has worked perfectly until I *encrypted* the stack (through the 
> standalone settings). The standalone itself works with no problem; only when 
> I encrypt it does it fight back. Here's a simplified example of what I'm 
> doing:
> 
> create group "grpTree"
> ...
> copy fld "baseBox" to grp "grpTree"
> set the name of it to tName
> set the visible of fld tName to true
> ...
> 
> This gives me a "no such object" error on the "set the visible" line. Through 
> testing, I've determined that
> - tName holds the correct value 
> - a field named with the value of tName has been correctly created
> - but it still seems to be the reference to [fld tName] that is the problem
> 
> This is about building family trees on-the-fly. The largest I've worked with 
> so far has over 450 boxes (fields) in the tree all with connecting lines and 
> all based on the ability to use variables to refer to the fields. At the 
> moment I'm just leaving the stack unencrypted. But inquiring minds would like 
> to know what the problem is. I know others have used this syntax for naming 
> and am sure some of them must have encrypted their stacks. Clearly I'm 
> missing something. 
> 
> Thanks for any brilliant suggestions you may have.
> 
> ... Ron
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: IDE Hang When Exiting. (was Can't edit scripts in DataGrid group in Windows 10)

2020-10-23 Thread Peter Bogdanoff via use-livecode
Yesterday I had LC hang when using the red dot on the same line as the 
breakpoint command. LC 9.5.1

Peter



> On Oct 23, 2020, at 5:33 AM, Ralph DiMola via use-livecode 
>  wrote:
> 
> It was a hardcoded breakpoint in this form.
> 
> If x<0 then breakpoint
> 
> I wonder if inadvertently triggered "red dot" breakpoints when exiting can 
> cause the same hang?
> 
> 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 Martin Koob via use-livecode
> Sent: Thursday, October 22, 2020 7:53 PM
> To: How to use LiveCode
> Cc: Martin Koob
> Subject: Re: IDE Hang When Exiting. (was Can't edit scripts in DataGrid group 
> in Windows 10)
> 
> Hi Ralph
> 
> I generally experience IDE hang when exiting in all versions of LC 9.x i have 
> used so far (using a Mac however). I haven’t had time to delve into figuring 
> out a recipe I could report as a bug. I just force quit and relaunched 
> LiveCode.  That is just part of my work flow now.  Sometimes it does quit 
> with no hang.  Some things I have tried is closing the script editor, or 
> close and remove from memory before quitting.  I still don’t get consistent 
> results from this though.
> 
> It happens with various stacks I work on from simple to complex.  I thought 
> it may be an extension I have installed that ties up the IDE during the 
> quitting process.  I plan one day to remove all extensions to a bare minimum 
> and see if it still happens.
> 
> Interesting idea about the breakpoint.  Is it a ‘red dot’ soft breakpoint or 
> hard coded ‘breakpoint’ in a line of the script?
> 
> The behaviour of the soft breakpoints I have found inconsistent.   Sometimes 
> they don’t trigger unless I have the script open for at least the first 
> breakpoint I want to trigger. Again I have never really tried to get to the 
> cause, just did workarounds.
> 
> I probably have way to many breakpoints left sitting around.  Maybe I should 
> just delete all breakpoints and start fresh.
> 
> Thanks for the idea.  Maybe that will solve the other problem I am having 
> with the DataGrid.
> 
> Martin
> 
>> On Oct 22, 2020, at 7:32 PM, Ralph DiMola via use-livecode 
>>  wrote:
>> 
>> Martin,
>> 
>> I don’t have an answer for that but this post perked my interest in a hang I 
>> was getting. I just found out why the IDE hangs in an apparently tight loop 
>> when it's closing. This happened only on one card of the stack. It had a 
>> closeCard handler in the behavior. A "breakpoint" statement triggered. It 
>> was from early debugging and does not get triggered anymore. It only 
>> triggers if all is not well. There is reference to a property in the main 
>> stack. Could that stack already be closed and the property returns as empty? 
>> Because that would trigger the breakpoint.
>> 
>> Is this a bug or user error?
>> 
>> Win 10
>> LC 9.6.1
>> 
>> Thanks for pushing me(more like  a poke) to finally solve this annoyance.
>> 
>> 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 Martin Koob via use-livecode
>> Sent: Thursday, October 22, 2020 5:19 PM
>> To: use-livecode list
>> Cc: Martin Koob
>> Subject: Can't edit scripts in DataGrid group in Windows 10
>> 
>> Hi all
>> 
>> Maybe this is not good practice but I have DataGrids with script in the 
>> group that contains the DataGrid in addition to the behaviour script of the 
>> DataGrid.   So to edit the script in the DataGrid group I just select the 
>> Datagrid group I right click on the DataGrid and select the ‘Edit Script’ 
>> menu item.   
>> 
>> This works fine on the mac.I just tried this on Windows 10 with LiveCode 
>> 9.6 and when I try to open the same DataGrid following the same process the 
>> script editor opens but it does not load the script.  In fact LiveCode 
>> becomes unresponsive. The script editor dims as if disabled and the cursor 
>> when hovering over the script editor or any other LiveCode windows  is the 
>> hour glass cursor.
>> 
>> If I click on the ‘x’ to close the LiveCode project I get the dialog that 
>> says.
>> 
>>   LiveCode for Windows is not responding
>>   If you close the program, you might lose information.
>>   —>Close the Program
>>   —>Wait for the program to respond.
>> 
>> Eventually I just select ‘Close the program’ since the program never 
>> responds.
>> 
>> I created a test stack with just a DataGrid on it and a button and opened 
>> the group script and was able to add a handler and then save it and reopen 
>> it so it does work in a simple scenario.
>> 
>> In my application I have two dataGrids that have code in the group script.  
>> On has 290 lines the other has about 480 lines.   So it seems the longer 
>> code is a contributing factor.
>> 
>> Has anyone else experienced 

Re: Interface Resolution

2020-10-15 Thread Peter Bogdanoff via use-livecode
Hi John,

I haven’t done this myself, but I suppose you could create a Livecode plugin 
that runs the needed code:

https://livecode.fandom.com/wiki/Creating_a_livecode_plugin

which is basically a LC stack that lives in your local plugins folder. Under 
the IDE Development menu are plugin settings, which includes an option, “Open 
plugin when: ‘LiveCode starts up.’” The plugin stack would have an openStack 
handler that calls the sizing handler.

Or, you could have a script internal to your project that checks the 
environment property so it runs only when in the IDE.

You might want to have a failsafe in case you have to run LC on a smaller 
monitor that would check the size of the monitor—the screenRect property—then 
size down the IDE elements appropriately.

Peter



> On Oct 14, 2020, at 10:09 PM, John McKenzie via use-livecode 
>  wrote:
> 
> 
> Peter, thank you for the information about changing the scale of the
> IDE user interface.
> 
> You mentioned that if I put a script somewhere to affect the IDE
> stacks that it should work. I looked up the IDE stacks as per your
> directions. Thanks for those.
> 
> I do not know where a good somewhere to put such a script would be. Is
> there a directory that gets its scripts execute upon running the IDE?
> Or can I put it anywhere and take other action to have it run with the
> IDE startup?
> 
> Thanks.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Interface Resolution

2020-10-13 Thread Peter Bogdanoff via use-livecode
Hi,

You could use scaleFactor to resize the IDE elements, such as:
set the scalefactor of stack "revtools" to 2


If you type into the message box:
put the stacks

you’ll get a list of the IDE stacks:
/Applications/LiveCode Business 
9.5.1.app/Contents/Tools/Toolset/palettes/message box/revmessagebox.8.rev

/Applications/LiveCode Business 
9.5.1.app/Contents/Tools/Toolset/palettes/menubar/revmenubar.livecodescript

/Applications/LiveCode Business 
9.5.1.app/Contents/Tools/Toolset/palettes/tools/revtools.livecodescript

Having a script somewhere that sets the scaleFactor for each should do the 
trick.

Peter Bogdanoff


> On Oct 13, 2020, at 3:40 PM, John McKenzie via use-livecode 
>  wrote:
> 
> 
> Hello, all.
> 
> I do not want to be asking this as it seems like something I can
> easily look up, and it is a simple thing, but I am asking because I just
> could not find out on my own despite trying. Trying allot at that.
> 
> 
> The interface for the Livecode IDE is too small on my fancy, new 4k
> monitor. I have changed OS settings to help with other programs and
> it has for most of them. Some of the unaffected ones had built in
> features to help with the interface resolution and others are still a
> problem for me.
> 
> Livecode is unaffected by everything. Would someone please tell me if
> Livecode has anything inside it to change the IDE interface resolution
> or if I have to depend on my operating system to take care of it?
> 
> Livecode 9.6 build 15516
> Kubuntu 18.04.1
> 
> 
> Every reference I find talks about making your livecode stacks/apps
> look better in 4k while all I care about right now is getting the IDE
> to look legible at 4k.
> 
> Thanks for any help provided. Sorry to ask something like this on the
> list.
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: HOw to get htmltext from the field to display in another field

2020-09-17 Thread Peter Bogdanoff via use-livecode
If the field “Src" contains:

My Trek to Siva
Magical Abodes

Join the author on a tour of ancient Siva temples

then:

set the htmlText of field "Src" to field "Src"

will show HTML-formatted text.


Peter


> On Sep 17, 2020, at 5:41 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> Ralph,
> 
> So this did not work. I have 
> 
> [ fld "Src" ]
> 
> My Trek to Siva
> Magical Abodes
> 
> Join the author on a tour of ancient Siva temples
> --
> [ fld "Dest" ]
> 
> My Trek to Siva
> Magical Abodes
> 
> Join the author on a tour of ancient Siva temples
> ---
> It same for both fields. Neither one displays the htmltext text .
> 
> ??
> set the htmltext of fld "checkHTML" to the htmlText of fld "mainText"
> BR
> 
> 
> 
> Ralph DiMola wrote:
> 
>set the htmltext of fld "Dest" to the htmlText of fld "Src"
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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


Re: How to get layer for group

2020-09-17 Thread Peter Bogdanoff via use-livecode
I believe this is one of the commands/properties that require you to be on that 
card—it must be open—for completion.

Others are formattedText, etc.

Peter

> On Sep 17, 2020, at 12:09 PM, Sannyasin Brahmanathaswami via use-livecode 
>  wrote:
> 
> f the layer of fld "checkHtml" > 3 then
>  set the layer of fld "checkHtml" to 3
>   else
>  set the layer of fld "checkHtml" to 20   
>   end if
> 
> # do not work.
> 
> stack "SlideShowSetUp": execution error at line 107 (Object: can't set layer 
> (card not open, or control in group)), char 1
> 
> ??
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: text manipulation with Chinese characters (unicode): guide?

2020-09-09 Thread Peter Bogdanoff via use-livecode
I’ve been working with simplified Chinese for some time now. You can indeed 
move and manipulate the characters quite straightforwardly.

I do see some odd line breaks that show mostly in narrow fields.

If you are working with cross-platform (Mac/Windows) text, you won’t 
necessarily get uniformity between them. Windows text is rendered slightly 
wider. If you’re working on a Mac and setting some text to a particular font, 
the same text that is displayed can be bad if you don’t have the font installed 
on the Windows machine. Font substitution happens, which will look odd. Fonts 
in Chinese are somewhat of a black hole.

Peter Bogdanoff

> On Sep 9, 2020, at 5:37 AM, Paul Dupuis via use-livecode 
>  wrote:
> 
> As mentions, Unicode in a field just works (there is a known issue with Thai 
> word breaks and another with printing Hindi)
> 
> If you want to get Chinese (traditional or simplified) into a field, you can:
> 
> 1)  get the text from a Utf8 ot utf16 text file and textDecode it i.e put url 
> ("file:") into tContent; put textDecode(tContent,"utf8") into fld 
> "someField"
> 2) get the text from an RTF file, like the above, but set the rtfText of the 
> field to the imported rtf data
> 3) use a 3rd party library, like Wordlib (see the livecode store) to read 
> Microsoft Word .docx or Open Office .odt files
> 
> 
> On 9/8/2020 11:55 PM, Eric A. Engle via use-livecode wrote:
>> Hi!
>> 
>> I would like to be able to copy and paste into fields and scripts Chinese 
>> characters, which are of course unicode and then manipulate the resulting 
>> strings.
>> 
>> Is this possible in livecode? How? Are there any good Recent guides to 
>> working with unicode in 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: Cross Platform Font Layout - current workarounds

2020-08-25 Thread Peter Bogdanoff via use-livecode
I’ll chime in on this issue — for the benefit of others who may be wondering 
what is going on in this list.

All existing bugs in LiveCode going back to the distant past could possibly be 
fixed, and display discrepancies resolved, if LiveCode the company dramatically 
increased its revenue from getting a gazzilion more users, tuppling license 
fees, and maybe dramatically cutting expenses by firing all its employees to 
hire programmers in India. Until that happens, we use LiveCode’s flexibility to 
come up with solutions to problems. This is done all the time.

And LC advertises one code base. Technically this is true. “If the platform is 
Mac then do this, if it is Windows then do that.” That works for me as one code 
base for Mac and Windows without creating different code versions.

I have a text-heavy application where font appearance is critical for both 
English and Chinese characters. Just now I added a routine to change in Windows 
Chinese:

1.  modify the HTMLtext of a field to replace instances of Songti SC Regular 
(Mac) with SimSun (Windows)
2. remove paragraph indentions of 8 space characters of Songti SC Regular text 
and instead set the firstIndent of the line to 34
3. set the spaceBelow of each line to match the Mac line spacing

all on the fly as the text loads from an array for each page turn. It’s fast 
and the Chinese translator in China says that it now looks beautiful, when 
before it looked like garbage.

I could curse the darkness, or just program a light bulb and move on.

Peter Bogdanoff


> On Aug 25, 2020, at 8:53 PM, JB via use-livecode 
>  wrote:
> 
> Chill, dude?
> ok, one of the cool things about LiveCode is instead of writing
> your program in Swift, Jave, or C, etc. is that you can easily
> include any of these languages in a LiveCode app.  I don’t
> know of another programming tool that allows you to do that
> and do it on various os’s.  Xcode allows you to mix objective-c
> with Swift by bridging it but LiveCode does it better.
> 
> We can only work with what we have available, things are
> changing fast and sometimes it is difficult to keep up no
> matter how hard you work on it.
> 
> JB
> 
> 
>> On Aug 25, 2020, at 8:39 PM, Stephen Barncard via use-livecode 
>>  wrote:
>> 
>> Sean Cole
>> 
>> Still no apologies.
>> Hey, you are starting to disrespect my friends and I’m not digging it. They
>> have done nothing other than bend over backwards to try to help and your
>> bad attitude and rudeness is crossing the line.
>> 
>> Remember the main rule here, no politics, religion or cheese and you,
>> buddy, have gone full limburger.
>> 
>> Chill, dude.
>> 
>>> On Tue, Aug 25, 2020 at 17:51 Bob Sneidar via use-livecode <
>>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> Reminds me of HTML. All platform consistency in display… until Microsoft
>>> and Netscape decided to do it “better”. It begs the question, is it better
>>> to be consistent with everyone else’s standards, or better to be… well…
>>> better?
>>> 
>>> 
>>> 
>>> Bob S
>>> 
>>> 
>>> 
>>> 
>>> 
>>> On Aug 25, 2020, at 5:40 PM, Richard Gaskin via use-livecode <
>>> use-livecode@lists.runrev.com>
>>> wrote:
>>> 
>>> 
>>> 
>>> Yes, we all remember the TrueType rollout, and the promise of a
>>> single-file, cross-platform font definition.
>>> 
>>> 
>>> 
>>> But for that format to provide pixel-perfect matched rendering requires
>>> all renderer implementers to use the same code.  And as you know, they
>>> don't.
>>> 
>>> 
>>> 
>>> ___
>>> 
>>> use-livecode mailing list
>>> 
>>> use-livecode@lists.runrev.com
>>> 
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> 
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> --
>> --
>> Stephen Barncard - Sebastopol Ca. USA -
>> mixstream.org
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Quick question: player object callbacks still working?

2020-06-27 Thread Peter Bogdanoff via use-livecode
David,

Specifically what is not working? Setting the callbacks, the callbacks message 
not being sent or received?

Sometimes I’ve seen that the interval between callbacks is so great, that the 
message is never sent before the player ends. That is highly dependent on the 
timeScale of the player. Put in the message box after the file is loaded into 
the player:

put the timeScale of player “”

to see if the numbers make sense. Some files will have very different 
timeScales (a Mac file with 600/second may have a Windows equivalent of a 
number in the millions).

Peter Bogdanoff

> On Jun 27, 2020, at 1:41 PM, David Bovill via use-livecode 
>  wrote:
> 
> I’ve been testing an idea for an app - and I can’t get the callbacks property 
> sending of messages. Does it still work with 9.6 MacOS?
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: ADA Compliency

2020-05-29 Thread Peter Bogdanoff via use-livecode
Hi Curry,

Back to your original answer… Thanks for this. I’ve benefited over the years 
from your work and advice.

I’m currently working on adding accessibility to my text and media-heavy music 
application. In trying to find actual information about doing this in a way 
that is both “compliant” and also good UI—I find very little data online. While 
trying to find out what someone in the sight-impared spectrum would consider 
good UI, I only hear “I can only tell you what’s bad, not what you should do.” 
Resources online refer to the WCAG standard which deals primarily with web 
pages and Javascript and only tangently to non-web applications. Also, “hire a 
consultant” meaning only certify compliance so you don’t get sued.

Certain things are easy, like adding subtitles to video/audio for the hearing 
impaired. For the visually impaired, changing the contrast and size of text is 
doable. However, for the visually impaired, making LiveCode compatible with 
screen readers (software that navigates other software by key commands) is out 
of the question for me, so I have to come up with my own design of a navigation 
by keyboard control with a voice prompts system along with text to speech. How 
do I get on the right track with this without “hiring a consultant” or 
interviewing and testing with numbers of people with various disabilities, 
including physical mobility?

It’s a tough one without having buckets of money to put into the 
project—something that may get me compliant but not necessarily more sales. I 
still want to do it, however.

So if the big tech companies with their resources have mixed results, how well 
can small guys expect to do?

I do see accessibility as an issue that will only become more important.

Peter Bogdanoff
ArtsInteractive



> On May 29, 2020, at 10:09 AM, Curry Kenworthy via use-livecode 
>  wrote:
> 
> 
> Rick:
> 
> > I have a couple of questions for you.
> 
> Thanks Rick! I do appreciate the concern. But in my post, your questions were 
> already either answered or otherwise addressed before you asked. I 
> anticipated them; I know what makes people tick! So I'll "re-answer" partly 
> by quoting myself.
> 
> But when certain memes are burned so deep into community psyche that answers 
> bounce right off, I feel like we're heading back toward the old failed group 
> think. The same old patronizing ideas and faulty assumptions, while actually 
> ignoring both the main point and the details of what I posted about UI.
> 
> Somehow we have to SHOUT louder than those old memes to get through!
> 
> > Is a trackpad or a trackball any better of an experience for you?
> 
> Heck no! Emphatically no. Much, much worse. Much more difficult. That's why I 
> emphasized my mouse use already, to avoid precisely this type of inevitable 
> question. Just be aware that the old oh handicap people should use blah blah 
> mindset - the memes are sometimes true, but more often not.
> 
> Mouse = good. For handicap man too!
> Trashing a UI to replace scientific arrangement with lickable = bad.
> 
> I said: "I'm very comfortable using the mouse if set up correctly. I switched 
> to Windows for my main work, and that helped save energy and improve 
> accuracy."
> 
> Thus, problem mostly solved on my end, at least when using apps and web sites 
> with non-crappy UI. Pretty easy solution. Handicap man happy.
> 
> But problem not solved on Apple's end. Handicap man sad for Apple!
> It really was a lousy move, destroying a once superior interface.
> 
> > Have you tried using the mac OS voice commands or controls?
> 
> Strike two! Think carefully about the implications of what I said: "I can 
> only say a few words without getting out of breath."
> 
> For people with good breathing, this is a very good thing for typing or for 
> no-hands computer use. But imagining it would be more efficient than mouse 
> for the ability levels I described - and imagining I'm suffering here because 
> I just haven't tried trackpad or voice recognition (I've built Mac apps with 
> voice recognition) - no way. Totally unrealistic!
> 
> Now, a mental interface might be good, that's another story. Some interest 
> there, for the future. But I'm not anywhere near ready for that yet. Privacy 
> concerns etc, plus very importantly - use it or lose it. Without that 
> exercise, the fingers are toast, and I need those guys. Maybe when I'm 80. 
> Maybe I'll design it myself now and use it then.
> 
> > Apple has the money and resources to do it.
> 
> No, probably they don't. They can't. They don't have the brains (or the 
> paradigm) to allow them to do it, not anymore. Not for any amount of money; 
> mental assets are the most crucial. It's sad. I was a huge fan.
> 
> But enough about Apple - as I said, this is a pretty-much universal problem. 
> Only using them as a small example of the problems:
> 
> - Binary thinking about physical abilities
> - Trotting out the same faulty memes and assumptions
> - Placing form above function, 

Re: Special Paste

2020-05-28 Thread Peter Bogdanoff via use-livecode
Hi Charles,

Is this what you’re looking for?:

put the clipboardData["html"] into tStoredData
put the fullClipboardData["text"] into tData
set the clipboardData to tData
paste
set the clipboardData["html"] to tStoredData

Peter Bogdanoff


> On May 28, 2020, at 7:04 AM, Charles Szasz via use-livecode 
>  wrote:
> 
> Both Apple's Pages and Microsoft’s Word software have key commands for 
> pasting text into an existing document to match the current formatting 
> (font). How do you script to accomplish this when copying text to the 
> clipboard in a button so the user does not have to use keyboard commands?
> 
> Sent from my iPad
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Integrating Desktop or mobile application with LMS using LTI 1.3

2020-05-25 Thread Peter Bogdanoff via use-livecode
Hi Martin,

I’ve just begun looking into this myself, so I’m also interested in what 
anybody knows about this.

Peter Bogdanoff
ArtsInteractive


> On May 25, 2020, at 3:05 PM, Martin Koob via use-livecode 
>  wrote:
> 
> Hi list
> 
> I have been researching how to integrate a desktop application created with 
> LiveCode with a learning Management system (LMS) like Brightspace by D2L, 
> Moodle, Canvas etc.  Last time I looked at this SCORM was the standard with 
> TinCan( aka xAPI) as a potential successor.   This time around I found those 
> seem to have been  superseded by LTI 1.1  going to LTI 1.3.
> 
> In the documents I have found I see that one of the advantages of LTI 1.3 is 
> that it can be used with desktop and mobile apps.  LTI 1.1 only worked with 
> web based applications.
> 
> " Mobile Ready—The model is independent of web browsers, a better solution 
> for server-to-server, native desktop and mobile applications.”
> https://www.imsglobal.org/why-platforms-and-tools-should-adopt-lti-13 
> 
> 
> I am looking for examples of people doing this but have not found any 
> online.(I don’t want to spend time on idly ddl  I looks like it would be 
> possible to use it in an LiveCode application.  It uses oAuth 2 for 
> authentication and JSON for messages both of which are available on the the 
> latest version of LiveCode.
> 
> First I just want to confirm it has been done for a desktop application in 
> general so I know that is a viable approach for integrating an App into an 
> LMS.
> 
> Second I wonder if people have done it using LiveCode.
> 
> Thanks
> 
> 
> 
> Martin Koob
> 
> ___
> use-livecode mailing list
> use-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: Linking to a LC desktop app with a URL

2020-05-21 Thread Peter Bogdanoff via use-livecode
This is great! Thank you Trevor!


> On May 20, 2020, at 5:01 PM, Trevor DeVore via use-livecode 
>  wrote:
> 
> On Wed, May 20, 2020 at 5:12 PM Peter Bogdanoff via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> Has anyone worked on the idea of accessing a LiveCode application from a
>> web browser, such as happens with Zoom? With a URL link to a zoom.us
>> page, the webpage shows a dialog:
>> 
>> “Do you want to allow this page to open ‘zoom.us’?”
>> 
>> which then opens the local app zoom.us.
>> 
>> My use for this would be for enabling a user using an online LMS (learning
>> management system) to directly access a location in my application on their
>> local machine.
>> 
>> I see a few methods described online, but was wondering if anyone has
>> experience with this.
>> 
> 
> ScreenSteps uses this technique for sending actions from our web app to our
> desktop. Extensive testing has been done on macOS and Windows. The Levure
> framework has the file_system helper which does most of the work for you
> on Windows, macOS, and iOS so you can look at that code for guidance. You
> can find the source code at the link below. I will link to specific code
> examples below as well.
> 
> https://github.com/trevordevore/levure/tree/develop/framework/helpers/file_system
> 
> There are three parts that make up a working solution - registration,
> processing requests, and triggering requests. Here is a description of
> each. Hopefully I'm not missing anything. I coded this a long time in
> Levure and haven't had to think about it much since.
> 
> 1. Tell the operating system your app can handle a url protocol.
> 
> ## Windows
> 
> You will need to modify the registry. Here is a link to the command that
> updates the registry in the file_system helper:
> https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L193
> 
> The command uses levureStandaloneFilename(), a framework function that
> returns the full path to the standalone application. Just replace that with
> a similar function so that you can add the full path to your app to the
> registry.
> 
> This command can be called each time your application launches if you want
> to make sure that the version the user just launched is the one the OS will
> send a url request to.
> 
> ## macOS and iOS
> 
> Add the URL protocol you want to add to your Info.plist file. It will look
> something like this (taken from the ScreenSteps Info.plist file) :
> 
> 
>  http://www.apple.com/DTDs/PropertyList-1.0.dtd;>
> 
> 
> ... OTHER STUFF
>  
>
>  CFBundleURLName
>  ScreenSteps URL
>  CFBundleURLSchemes
>  
>x-screensteps-app
>screensteps
>screensteps-4
>  
>
>  
> 
> 
> 2. Process URL requests sent by the OS to your app
> 
> ## Windows
> Process `relaunch` command, extract command line arguments looking for url.
> 
> `relaunch` is handled within main Levure script:
> https://github.com/trevordevore/levure/blob/develop/framework/levure.livecodescript#L46
> 
> The file_system helper processes the parameters though:
> https://github.com/trevordevore/levure/blob/develop/framework/levure.livecodescript#L46
> 
> ## macOS
> Process the appleEvent with pClass "GURL" AND pID "GURL".
> 
> https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L111
> 
> ## iOS
> Process `urlWakeUp`.
> 
> https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L65
> 
> 3. Triggering requests
> 
> Triggering requests is as simple as using your custom protocol in an 
> tag in your web page.
> 
> Click me
> 
> Hopefully this helps you implement the behavior in your own app.
> 
> -- 
> Trevor DeVore
> ScreenSteps - https://www.screensteps.com
> Levure App Framework for LiveCode - https://github.com/trevordevore/levure/
> LiveCode Repos -
> https://github.com/search?q=user%3Atrevordevore+topic:livecode
> LiveCode Builder Repos -
> https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder
> ___
> use-livecode mailing list
> use-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


Linking to a LC desktop app with a URL

2020-05-20 Thread Peter Bogdanoff via use-livecode
Hi,

Has anyone worked on the idea of accessing a LiveCode application from a web 
browser, such as happens with Zoom? With a URL link to a zoom.us page, the 
webpage shows a dialog:

“Do you want to allow this page to open ‘zoom.us’?” 

which then opens the local app zoom.us.

My use for this would be for enabling a user using an online LMS (learning 
management system) to directly access a location in my application on their 
local machine.

I see a few methods described online, but was wondering if anyone has 
experience with this.

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: Sad truth about iOS apps

2020-05-15 Thread Peter Bogdanoff via use-livecode
Hi Graham,

You might want to look at these kinds of articles:

How to install Catalina on older Mac, update macOS on an old MacBook
https://www.macworld.co.uk/how-to/mac-software/install-catalina-old-mac-3654960/


Peter

> On May 15, 2020, at 9:02 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> As many of you will know, I have been struggling to create an iPhone app - 
> very unfamiliar territory for  me. It’s been an education. Without help from 
> this list and the mother ship I would have been dead in the water long ago. 
> Finally I can see the (beta version of) the app running on my iPhones - 
> yipee! The next step is to get it out there via TestFlight so that a few 
> friends can mess with it.
> 
> I just went through all the hoops with the Apple App Store to reach the magic 
> TestFlight stage, using the XCode Application Loader. Things looked good 
> until this:
> 
>> ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS 12.1 
>> SDK. New apps for iPhone or iPad must be built with the iOS 13 SDK or later.”
> 
> My iMac can only run High Sierra, and High Sierra can only run XCode 10.1, 
> and AFAIK that version of XCode only runs SDK 12.1. I think that means I get 
> a new Mac or give up.
> 
> Please tell me if I’m wrong.
> 
> Graham
> 
> PS I would really like a new Mac, but the budget is the problem!
> ___
> use-livecode mailing list
> use-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


Accessibility in LC projects

2020-04-30 Thread Peter Bogdanoff via use-livecode
Hi,

I’m looking at modifying my Music in the Air application to enhance its 
accessibility, specifically for the sight impaired. I would be using text to 
speech to make it what is called in the accessibility world-- “self voicing.” 
The goal is to not only speak the text (which is the easy part in LiveCode), 
but allow the user to identify and control the UI elements by a combination of 
keyboard strokes and speech-to-text identification of the semantic hierarchy of 
objects on the LC card.

Does anyone have experience with this before I jump in and try to invent the 
wheel?

There are screen reader applications, including the built-in VoiceOver on 
MacOS, and a couple of applications for Windows that work with web browsers and 
certain common applications. But as far as I know, I have to script everything 
to emulate a screen reader with a LC application.

Any insight would be much appreciated!

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: Groups placed on cards

2020-04-24 Thread Peter Bogdanoff via use-livecode
In testing with a new stack, I see that what I am asking for actually does 
happen. The various placements of the group do  have the same ID and 
configuration. So, I’ll work with my stack to make it happen that way.

Thanks all for your help!

Peter


> On Apr 24, 2020, at 1:43 PM, Brian Milby via use-livecode 
>  wrote:
> 
> Is the group getting a new object ID?  With the place command it should not 
> and you only really have one group.  It will appear on each card that it is 
> placed on.  You do not need to select background behavior, you just need to 
> make the group shared.
> 
> Thanks,
> Brian
> On Apr 24, 2020, 4:01 PM -0400, Peter Bogdanoff via use-livecode 
> , wrote:
>> On the contrary, I want each instance of the group to be exactly the same. 
>> I’m not seeing that when I place a group—it now seems to be a new object.
>> 
>> Peter
>> 
>>> On Apr 24, 2020, at 12:51 PM, dunbarx--- via use-livecode 
>>>  wrote:
>>> 
>>> Peter.
>>> If you have a stack with one card, create a group, and set the 
>>> backGroundBehavior of the group, then any new card you create will 
>>> automatically contain a copy of the group.
>>> If you already have a stack with multiple cards, and create a group 
>>> somewhere, then if you want to copy it to other cards it to be done with 
>>> the "place" command.
>>> You can always add or delete groups with LC gadgetry.
>>> What you really asked, though, was whether the same group that appears on 
>>> multiple cards can each have unique scripts based on the particular 
>>> instance of any of them. I am not sure that group scripts can be so 
>>> compartmentalized. That is why I invited others to chime in. The workaround 
>>> I mentioned is just that, a workaround, unless some combination of 
>>> properties will allow the "same" group to hold its own unique script.
>>> Craig
>>> 
>>> 
>>> -Original Message-
>>> From: Peter Bogdanoff via use-livecode 
>>> To: How to use LiveCode 
>>> Cc: Peter Bogdanoff 
>>> Sent: Fri, Apr 24, 2020 3:22 pm
>>> Subject: Re: Groups placed on cards
>>> 
>>> Thanks Craig,
>>> 
>>>> On Apr 24, 2020, at 12:14 PM, dunbarx--- via use-livecode 
>>>>  wrote:
>>>> 
>>>> Hi.
>>>> You can certainly create a group and set its backgroundbehjavior, then 
>>>> "place" it on any or all existing cards. This assumes that the group comes 
>>>> after the multi-card stack.
>>> 
>>> “...comes after the multi-card stack” Do you mean have the group on its own 
>>> card, then place it elsewhere after that?
>>> 
>>> 
>>>> Then any changes to the physical structure of your group will appear in 
>>>> all instances.
>>>> But I am not sure how you would separate the scripts of such a group. 
>>>> Others may know better.
>>>> You can always, however, tailor the group script to detect the card it is 
>>>> on, and execute only what is pertinent to that card. In the group script:
>>>> on mouseUp switch the number of this cd case 1 answer random(999) break 
>>>> case 2 answer any item of "cat, dog,42" break end switchend mouseUp
>>>> Craig
>>>> 
>>>> 
>>>> -Original Message-
>>>> From: Peter Bogdanoff via use-livecode 
>>>> To: How to use LiveCode 
>>>> Cc: Peter Bogdanoff 
>>>> Sent: Fri, Apr 24, 2020 2:07 pm
>>>> Subject: Groups placed on cards
>>>> 
>>>> Hi,
>>>> 
>>>> I have a stack with multiple cards (not part of a background) and I want 
>>>> to place a group on each card—the same group--AND be able to edit a single 
>>>> group script. And ideally, I would be able to configure as needed the 
>>>> controls of all instances of the group from a single location.
>>>> 
>>>> For example, I have a glossary in a separate stack in another window, but 
>>>> now want to incorporate that stack to display as a pop-down in the main 
>>>> stack window on each (non-background) card.
>>>> 
>>>> In testing, I’m seeing each placement of the group now as a new object.
>>>> 
>>>> This is for both Mac and Windows.
>>>> 
>>>> What would be my options to manage this?
>>>> 
>>>> Thanks,
>>>> 
>>>> Peter Bogdanoff
>>>> _

Re: Groups placed on cards

2020-04-24 Thread Peter Bogdanoff via use-livecode
On the contrary, I want each instance of the group to be exactly the same. I’m 
not seeing that when I place a group—it now seems to be a new object.

Peter 

> On Apr 24, 2020, at 12:51 PM, dunbarx--- via use-livecode 
>  wrote:
> 
> Peter.
> If you have a stack with one card, create a group, and set the 
> backGroundBehavior of the group, then any new card you create will 
> automatically contain a copy of the group.
> If you already have a stack with multiple cards, and create a group 
> somewhere, then if you want to copy it to other cards it to be done with the 
> "place" command.
> You can always add or delete groups with LC gadgetry.
> What you really asked, though, was whether the same group that appears on 
> multiple cards can each have unique scripts based on the particular instance 
> of any of them. I am not sure that group scripts can be so compartmentalized. 
> That is why I invited others to chime in. The workaround I mentioned is just 
> that, a workaround, unless some combination of properties will allow the 
> "same" group to hold its own unique script.
> Craig 
> 
> 
> -Original Message-
> From: Peter Bogdanoff via use-livecode 
> To: How to use LiveCode 
> Cc: Peter Bogdanoff 
> Sent: Fri, Apr 24, 2020 3:22 pm
> Subject: Re: Groups placed on cards
> 
> Thanks Craig, 
> 
>> On Apr 24, 2020, at 12:14 PM, dunbarx--- via use-livecode 
>>  wrote:
>> 
>> Hi.
>> You can certainly create a group and set its backgroundbehjavior, then 
>> "place" it on any or all existing cards. This assumes that the group comes 
>> after the multi-card stack.
> 
> “...comes after the multi-card stack” Do you mean have the group on its own 
> card, then place it elsewhere after that?
> 
> 
>> Then any changes to the physical structure of your group will appear in all 
>> instances.
>> But I am not sure how you would separate the scripts of such a group. Others 
>> may know better.
>> You can always, however, tailor the group script to detect the card it is 
>> on, and execute only what is pertinent to that card. In the group script:
>> on mouseUp  switch the number of this cd    case 1  answer random(999)   
>>breakcase 2  answer any item of "cat, dog,42"  break  end 
>> switchend mouseUp
>> Craig  
>> 
>> 
>> -Original Message-
>> From: Peter Bogdanoff via use-livecode 
>> To: How to use LiveCode 
>> Cc: Peter Bogdanoff 
>> Sent: Fri, Apr 24, 2020 2:07 pm
>> Subject: Groups placed on cards
>> 
>> Hi,
>> 
>> I have a stack with multiple cards (not part of a background) and I want to 
>> place a group on each card—the same group--AND be able to edit a single 
>> group script.  And ideally, I would be able to configure as needed the 
>> controls of all instances of the group from a single location.
>> 
>> For example, I have a glossary in a separate stack in another window, but 
>> now want to incorporate that stack to display as a pop-down in the main 
>> stack window on each (non-background) card. 
>> 
>> In testing, I’m seeing each placement of the group now as a new object.
>> 
>> This is for both Mac and Windows.
>> 
>> What would be my options to manage this?
>> 
>> Thanks,
>> 
>> Peter Bogdanoff
>> ___
>> use-livecode mailing list
>> use-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: Groups placed on cards

2020-04-24 Thread Peter Bogdanoff via use-livecode
Thanks Craig, 

> On Apr 24, 2020, at 12:14 PM, dunbarx--- via use-livecode 
>  wrote:
> 
> Hi.
> You can certainly create a group and set its backgroundbehjavior, then 
> "place" it on any or all existing cards. This assumes that the group comes 
> after the multi-card stack.

“...comes after the multi-card stack” Do you mean have the group on its own 
card, then place it elsewhere after that?


> Then any changes to the physical structure of your group will appear in all 
> instances.
> But I am not sure how you would separate the scripts of such a group. Others 
> may know better.
> You can always, however, tailor the group script to detect the card it is on, 
> and execute only what is pertinent to that card. In the group script:
> on mouseUp  switch the number of this cdcase 1  answer random(999)
>   breakcase 2  answer any item of "cat, dog,42"  break  end 
> switchend mouseUp
> Craig  
> 
> 
> -Original Message-
> From: Peter Bogdanoff via use-livecode 
> To: How to use LiveCode 
> Cc: Peter Bogdanoff 
> Sent: Fri, Apr 24, 2020 2:07 pm
> Subject: Groups placed on cards
> 
> Hi,
> 
> I have a stack with multiple cards (not part of a background) and I want to 
> place a group on each card—the same group--AND be able to edit a single group 
> script.  And ideally, I would be able to configure as needed the controls of 
> all instances of the group from a single location.
> 
> For example, I have a glossary in a separate stack in another window, but now 
> want to incorporate that stack to display as a pop-down in the main stack 
> window on each (non-background) card. 
> 
> In testing, I’m seeing each placement of the group now as a new object.
> 
> This is for both Mac and Windows.
> 
> What would be my options to manage this?
> 
> Thanks,
> 
> Peter Bogdanoff
> ___
> use-livecode mailing list
> use-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


Groups placed on cards

2020-04-24 Thread Peter Bogdanoff via use-livecode
Hi,

I have a stack with multiple cards (not part of a background) and I want to 
place a group on each card—the same group--AND be able to edit a single group 
script.  And ideally, I would be able to configure as needed the controls of 
all instances of the group from a single location.

For example, I have a glossary in a separate stack in another window, but now 
want to incorporate that stack to display as a pop-down in the main stack 
window on each (non-background) card. 

In testing, I’m seeing each placement of the group now as a new object.

This is for both Mac and Windows.

What would be my options to manage this?

Thanks,

Peter Bogdanoff
___
use-livecode mailing list
use-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: Go to card has become slow

2020-04-02 Thread Peter Bogdanoff via use-livecode
Also, any audio/video files that load?


> On Apr 2, 2020, at 1:46 PM, Pi Digital via use-livecode 
>  wrote:
> 
> Hi Terry
> 
> Are there any big images on the first card? Any layer effects or blend modes? 
> Anything graphic based that could be attributed to the slow down. 
> 
> Sean Cole
> Pi
> 
>> On 2 Apr 2020, at 20:27, Terence Heaford via use-livecode 
>>  wrote:
>> 
>> I have a project that opens at a particular card.
>> 
>> When I go to another card (any card) it’s very snappy.
>> 
>> When I return to the original card (from any card) I have noticed a second 
>> or two delay before it happens.
> ___
> use-livecode mailing list
> use-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: DataGrid question...

2020-03-30 Thread Peter Bogdanoff via use-livecode
Does anyone have a link to obtain Bernd's modTableField ?

Peter Bogdanoff


> On Mar 30, 2020, at 1:07 PM, Jerry Jensen via use-livecode 
>  wrote:
> 
> In modTableField there’s a function for that:
> mtfDataItemClicked pColumnClicked, pLineClicked, pItemContent, pGroupName
> 
>> On Mar 30, 2020, at 3:49 AM, Alex Tweedly via use-livecode 
>>  wrote:
>> 
>> I don't know of a simple way to do it.
>> 
>> However, Bernd's modTableField does do it, and it uses regular fields, and 
>> it's open source - so I took a very quick look there.
>> 
>> It's not simple :-)
>> 
>> But there's a function 'gatherItemClickedInfo' that (with some 
>> modifications) might be the foundation of a general handler for you.
> 
> ___
> use-livecode mailing list
> use-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: Finding words with diacriticals

2020-03-16 Thread Peter Bogdanoff via use-livecode
Craig,

This is exactly what I was needing. 

“the number of words in char 1 to char x of the field" does it.

Thank you!!!

Peter

> On Mar 15, 2020, at 2:48 PM, dunbarx--- via use-livecode 
>  wrote:
> 
> Hi.
> I may not really understand what you want, but doesn't the "Find string" 
> variant solve your problem?
> If you have a field 1 with "cat" on line 1, with "cât" on line 2 and "cat" on 
> line 3, that is, the line 2 "cat" has charToNum(137) in place of the standard 
> "a".
> on mouseUpfind string numToChar(137) in fld 1put the number of words in char 
> 1 to word 2 of the foundChunk of fld 1 into tempanswer "Word" && temp && 
> "="&& word temp of fld 1end mouseUp
> The point being that once you have the result of "find String", you can 
> engineer all the other stuff you need, such as the words that contain the odd 
> char, the lines they reside in, etc.
> Craig
> 
> 
> 
> -Original Message-
> From: Peter Bogdanoff via use-livecode 
> To: How to use LiveCode 
> Cc: Peter Bogdanoff 
> Sent: Sat, Mar 14, 2020 7:48 pm
> Subject: Finding words with diacriticals
> 
> Hi,
> 
> I have a text search that in which I’m trying to improve the UI.
> 
> I have this text:
> 
> Edgard Varèse (Poème électronique) was a pioneer in the application of tape 
> recording technology to composition.
> 
> The search database, built with Scott McDonald’s rrpSearch plugin, can only 
> be searched using the exact characters. So, I’m building a supplementary 
> array of words with alternate spellings that the user might type in the 
> search box. I would reference the array to get an equivalent word and so 
> provide the user with a usable result.
> 
> So if the user types in “poeme” — I would find “poeme” in the array and its 
> equivalent “Poème” and I would actually search for “Poème” — and the user 
> would get a result that included “Poème”.
> 
> 
> So I want to build this array of word equivalents. The search database is 
> built by rrpSearch from text on cards, so I have to go back to these cards to 
> get my data. I’m using the find command to search cards to find every 
> instance of  “è” or “é” or “ü” or “î” or whatever. There are many non-English 
> words in the text. The foundText function should give me the words that 
> contain that character—except it doesn’t in every case. It only finds words 
> that BEGIN with the search text. So
> 
> électronique — found (char begins the word)
> Varèse — not found (char is in middle of the word)
> Poème — not found (char is in middle of the word)
> 
> I’m using “find” and “the foundText” which returns the whole word that 
> contains the search character. No other form of find will return the whole 
> word. The dictionary for foundText:
> 
>  string "hurl", such as "hurling" or "hurler". In this case, the entire word 
> --not just the portion specified in the find command --is surrounded by a 
> box, and the foundText returns the entire word.>
> 
> Is there another relatively simple way to get the whole word in which the 
> desired characters live? There are dozens of fields on thousands of cards to 
> search.
> 
> (I realize that there are far better ways to handle a search, and in the 
> future, I will have a database that I will design myself--but not yet.)
> 
> Thanks,
> 
> 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
> ___
> use-livecode mailing list
> use-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


Finding words with diacriticals

2020-03-14 Thread Peter Bogdanoff via use-livecode
Hi,

I have a text search that in which I’m trying to improve the UI.

I have this text:

Edgard Varèse (Poème électronique) was a pioneer in the application of tape 
recording technology to composition.

The search database, built with Scott McDonald’s rrpSearch plugin, can only be 
searched using the exact characters. So, I’m building a supplementary array of 
words with alternate spellings that the user might type in the search box. I 
would reference the array to get an equivalent word and so provide the user 
with a usable result.

So if the user types in “poeme” — I would find “poeme” in the array and its 
equivalent “Poème” and I would actually search for “Poème” — and the user would 
get a result that included “Poème”.


So I want to build this array of word equivalents. The search database is built 
by rrpSearch from text on cards, so I have to go back to these cards to get my 
data. I’m using the find command to search cards to find every instance of  “è” 
or “é” or “ü” or “î” or whatever. There are many non-English words in the text. 
The foundText function should give me the words that contain that 
character—except it doesn’t in every case. It only finds words that BEGIN with 
the search text. So

électronique — found (char begins the word)
Varèse — not found (char is in middle of the word)
Poème — not found (char is in middle of the word)

I’m using “find” and “the foundText” which returns the whole word that contains 
the search character. No other form of find will return the whole word. The 
dictionary for foundText:



Is there another relatively simple way to get the whole word in which the 
desired characters live? There are dozens of fields on thousands of cards to 
search.

(I realize that there are far better ways to handle a search, and in the 
future, I will have a database that I will design myself--but not yet.)

Thanks,

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: Progressive Web App (PWA)

2020-02-18 Thread Peter Bogdanoff via use-livecode
Does anyone have a reply to Ingar’s original question?


> On Feb 18, 2020, at 6:16 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Aren't all discussions political? ;-)
> 
> Bob S
> 
> 
>> On Feb 16, 2020, at 13:33 , doc hawk via use-livecode 
>>  wrote:
>> 
>> On Feb 16, 2020, at 5:15 AM, Paul Dupuis via use-livecode 
>>  wrote:
>>> 
>>> "A progressive web application is a type of application software delivered 
>>> through the web, built using common web technologies including HTML, CSS 
>>> and JavaScript. It is intended to work on any platform that uses a 
>>> standards-compliant browser.”
>> 
>> 
>> And foolish me thought we were going to have a political discussion . . .
>> 
>> :)
> 
> ___
> use-livecode mailing list
> use-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: player bug

2020-02-18 Thread Peter Bogdanoff via use-livecode
And I’ll add that the bug truly manifests itself when the file is non-existent 
on your local machine, if that makes any sense!

If you’re trying to read a non-existent file from a remote server, there seems 
to be slow downs while the file is being requested, but not the 
non-responsiveness of the other.

Peter


> On Feb 18, 2020, at 8:04 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> I’ve experienced this for some time now. I haven’t reported it, though.
> 
> Peter
> 
>> On Feb 18, 2020, at 6:38 PM, Neville via use-livecode 
>>  wrote:
>> 
>> Has this been reported already?
>> 
>> if I try to play a non-existent audio file in the player object (LC 9.5.1 on 
>> Mac) LC stop responding to events - no menus or input work except for moving 
>> windows ; not exactly a hang, since the Activity Monitor says LiveCode is 
>> still working. Force Quit is the only way out.
>> 
>> Neville
>> ___
>> use-livecode mailing list
>> use-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: player bug

2020-02-18 Thread Peter Bogdanoff via use-livecode
I’ve experienced this for some time now. I haven’t reported it, though.

Peter

> On Feb 18, 2020, at 6:38 PM, Neville via use-livecode 
>  wrote:
> 
> Has this been reported already?
> 
> if I try to play a non-existent audio file in the player object (LC 9.5.1 on 
> Mac) LC stop responding to events - no menus or input work except for moving 
> windows ; not exactly a hang, since the Activity Monitor says LiveCode is 
> still working. Force Quit is the only way out.
> 
> Neville
> ___
> use-livecode mailing list
> use-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: YouTube video synchronisation

2020-02-15 Thread Peter Bogdanoff via use-livecode
Yes, that is right.

> On Feb 15, 2020, at 12:29 PM, JJS via use-livecode 
>  wrote:
> 
> Hopefully it will help you.
> 
> I did not work with thes yet, but i remembered there were some commands when 
> i was checking the API out some time ago because of some bug which seems not 
> to happen as of Android 8.
> 
> In Android when user pushes the Power button, a Youtube movie should stop and 
> sound should stop. This was not the case with an Android lower than 8 and 
> thus Google refused the app, until i increased the target. There is a bug 
> report for it.
> 
> But i guess yours is for desktop.
> 
> 
> Op 15-2-2020 om 17:47 schreef Peter Bogdanoff via use-livecode:
>> No, I’m wrong, I DO see very useful functions in the IFrame Player API page 
>> like these:
>> 
>> player.getCurrentTime():Number
>> player.getDuration():Number
>> player.getPlayerState():Number
>> player.getVideoUrl():String
>> https://developers.google.com/youtube/player_parameters 
>> <https://developers.google.com/youtube/player_parameters> 
>> <https://developers.google.com/youtube/player_parameters 
>> <https://developers.google.com/youtube/player_parameters>>
>> 
>> Also parameters such as:
>> 
>> startThis parameter causes the player to begin playing the video at 
>> the given number of seconds from the start of the video.
>> https://developers.google.com/youtube/player_parameters 
>> <https://developers.google.com/youtube/player_parameters> 
>> <https://developers.google.com/youtube/player_parameters 
>> <https://developers.google.com/youtube/player_parameters>>
>> 
>> I’ll try this out!
>> 
>> Peter Bogdanoff
>> ArtsInteractive
>> 
>> 
>>> On Feb 15, 2020, at 11:19 AM, Peter Bogdanoff via use-livecode 
>>>  wrote:
>>> 
>>> Thanks, I looked at the APIs there, but I’m not seeing anything appropriate.
>>> 
>>> Peter
>>> 
>>> 
>>>> On Feb 15, 2020, at 9:35 AM, JJS via use-livecode 
>>>>  wrote:
>>>> 
>>>> perhaps by using the youtube api in some way
>>>> 
>>>> https://developers.google.com/youtube/v3
>>>> 
>>>> 
>>>> Op 14-2-2020 om 06:39 schreef Peter Bogdanoff via use-livecode:
>>>>> Hi,
>>>>> 
>>>>> Along the lines of the other conversation about sync of sound and vision:
>>>>> 
>>>>> Is there a way when I've loaded a YouTube page in the browser widget to 
>>>>> capture the current time from the YouTube page video player 
>>>>> (".html5-video-player”) as it plays?
>>>>> 
>>>>> 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
>>>> ___
>>>> use-livecode mailing list
>>>> use-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 <mailto:use-livecode@lists.runrev.com>
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode 
>> <http://lists.runrev.com/mailman/listinfo/use-livecode>
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> <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: YouTube video synchronisation

2020-02-15 Thread Peter Bogdanoff via use-livecode
No, I’m wrong, I DO see very useful functions in the IFrame Player API page 
like these:

player.getCurrentTime():Number
player.getDuration():Number
player.getPlayerState():Number
player.getVideoUrl():String
https://developers.google.com/youtube/player_parameters 
<https://developers.google.com/youtube/player_parameters>

Also parameters such as:

start   This parameter causes the player to begin playing the video at the 
given number of seconds from the start of the video.
https://developers.google.com/youtube/player_parameters 
<https://developers.google.com/youtube/player_parameters>

I’ll try this out!

Peter Bogdanoff
ArtsInteractive


> On Feb 15, 2020, at 11:19 AM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Thanks, I looked at the APIs there, but I’m not seeing anything appropriate.
> 
> Peter
> 
> 
>> On Feb 15, 2020, at 9:35 AM, JJS via use-livecode 
>>  wrote:
>> 
>> perhaps by using the youtube api in some way
>> 
>> https://developers.google.com/youtube/v3
>> 
>> 
>> Op 14-2-2020 om 06:39 schreef Peter Bogdanoff via use-livecode:
>>> Hi,
>>> 
>>> Along the lines of the other conversation about sync of sound and vision:
>>> 
>>> Is there a way when I've loaded a YouTube page in the browser widget to 
>>> capture the current time from the YouTube page video player 
>>> (".html5-video-player”) as it plays?
>>> 
>>> 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
>> 
>> ___
>> use-livecode mailing list
>> use-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: YouTube video synchronisation

2020-02-15 Thread Peter Bogdanoff via use-livecode
Thanks, I looked at the APIs there, but I’m not seeing anything appropriate.

Peter


> On Feb 15, 2020, at 9:35 AM, JJS via use-livecode 
>  wrote:
> 
> perhaps by using the youtube api in some way
> 
> https://developers.google.com/youtube/v3
> 
> 
> Op 14-2-2020 om 06:39 schreef Peter Bogdanoff via use-livecode:
>> Hi,
>> 
>> Along the lines of the other conversation about sync of sound and vision:
>> 
>> Is there a way when I've loaded a YouTube page in the browser widget to 
>> capture the current time from the YouTube page video player 
>> (".html5-video-player”) as it plays?
>> 
>> 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
> 
> ___
> use-livecode mailing list
> use-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


YouTube video synchronisation

2020-02-13 Thread Peter Bogdanoff via use-livecode
Hi,

Along the lines of the other conversation about sync of sound and vision:

Is there a way when I've loaded a YouTube page in the browser widget to capture 
the current time from the YouTube page video player (".html5-video-player”) as 
it plays?

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: HyperCard: the Myst story

2020-02-12 Thread Peter Bogdanoff via use-livecode
Hi Graham,

I congratulate you on your ambition to do this! It seems that the days are long 
gone when people will pay attention to a content product because it is just 
that. All the attention (i.e. funding) has moved on to scalable platforms 
rather than individual works of artifice!

Yes, when we started showing people our desktop Music In the Air program they 
would ask immediately about web delivery, and I looked into LC’s HTML 5. But it 
definitely turns out that desktop is more doable, cheaper, and technically 
capable for our program, so we’re sticking with that for the present. 

Most of our customers have their own personal machine, but school labs can be 
problematic when the lab admin doesn’t want to install an application. I don’t 
have enough experience with this to say definitely, but very likely schools 
with younger students will rely on lab computers with possible restrictions. 
Also, an app with its required installation probably will have less 
discoverability by potential users compared to a web application which can be 
tried out and used immediately.

I’ll address your questions about sync in your other posting.

Peter
ArtsInteractive

> On Feb 12, 2020, at 5:11 AM, Graham Samuel via use-livecode 
>  wrote:
> 
> Thanks Peter
> 
> It’s encouraging to know about the re-configuring. When I first thought of my 
> project, some years ago, I could not get any sensible response out of the 
> original publisher, and eventually gave up, but now I am thinking of reviving 
> the idea. I think sadly the copyright holder of the CD-ROM is the actual book 
> publisher, which means I will have to re-do the weary round of trying to get 
> them to respond. I have an ancient Mac running OS 7 I believe, just to enable 
> me to look at the CD-ROM in its original form. Better do something before it 
> stops working!
> 
> I am interested in the fact that you are re-configuring your CD-ROM material 
> as desktop applications. That was my original idea for my project, but now I 
> wonder if it should be an app, or indeed whether HTML5 would actually work 
> (using LiveCode of course, as you say!). My target audience are probably 
> ordinary folks interested in poetry, and schools. Are your users happy with 
> the desktop solution?
> 
> Hope this isn’t getting too OT.
> 
> Graham
> 
>> On 11 Feb 2020, at 19:26, Peter Bogdanoff via use-livecode 
>>  wrote:
>> 
>> Hi Graham,
>> 
>> It might be easier to track down the copyright holder of the CD-ROM and 
>> offer to re-publish on a different platform. Copyrights on the design of the 
>> program/disc itself will definitely apply for a long time.
>> 
>> We are re-configuring some of our earlier work HC into LiveCode as desktop 
>> applications. Some things can be, of course, done in as HTML 5. Copyright is 
>> always an issue, especially for licensed, recorded music.
>> 
>> There is obviously a quite large body of great-quality CD-ROM content discs 
>> from the 1990-2000s that have slipped into the dustbin of history—no longer 
>> compatible with digital content delivery methods today—with no easy path to 
>> their revival. Authors and companies have moved on, licensing has expired, 
>> original files used to create the stuff are on old media (Zip drives) or 
>> have disappeared. But with effort, it can be done, and in LiveCode, of 
>> course!
>> 
>> Peter Bogdanoff
>> ArtsInteractive
>> 
>>> On Feb 11, 2020, at 12:58 PM, Graham Samuel via use-livecode 
>>>  wrote:
>>> 
>>> That’s excellent information - I would still have to tackle any missed out 
>>> (obviously I haven’t checked yet) and presumably all the recordings of the 
>>> poet speaking which are much more recent than the composition dates (though 
>>> I don’t understand US copyright laws). And there’s Richard Wilbur’s essay… 
>>> (sigh). Would what one might call the “production design” of a CD-ROM (the 
>>> look, the graphics, the order of presentation etc) be subject to copyright? 
>>> I suppose it’s intellectual property. Sorry, this is getting OT.
>>> 
>>> Graham
>>> 
>>>> On 11 Feb 2020, at 15:49, dev via use-livecode 
>>>>  wrote:
>>>> 
>>>> https://publicdomain4u.com/as-of-january-1-2019-these-robert-frost-poems-are-public-domain/
>>>> 
>>>> 
>>>>> On Feb 11, 2020, at 2:56 AM, Graham Samuel via use-livecode 
>>>>>  wrote:
>>>>> 
>>>>> Personally I have a pet project to re-purpose a very elaborate CD-ROM 
>>>>> about Robert Frost, published by Henry Holt in 1997, but I can never get 
>>>>> anyone to tal

Re: HyperCard: the Myst story

2020-02-11 Thread Peter Bogdanoff via use-livecode
Hi Graham,

It might be easier to track down the copyright holder of the CD-ROM and offer 
to re-publish on a different platform. Copyrights on the design of the 
program/disc itself will definitely apply for a long time.

We are re-configuring some of our earlier work HC into LiveCode as desktop 
applications. Some things can be, of course, done in as HTML 5. Copyright is 
always an issue, especially for licensed, recorded music.

There is obviously a quite large body of great-quality CD-ROM content discs 
from the 1990-2000s that have slipped into the dustbin of history—no longer 
compatible with digital content delivery methods today—with no easy path to 
their revival. Authors and companies have moved on, licensing has expired, 
original files used to create the stuff are on old media (Zip drives) or have 
disappeared. But with effort, it can be done, and in LiveCode, of course!

Peter Bogdanoff
ArtsInteractive

> On Feb 11, 2020, at 12:58 PM, Graham Samuel via use-livecode 
>  wrote:
> 
> That’s excellent information - I would still have to tackle any missed out 
> (obviously I haven’t checked yet) and presumably all the recordings of the 
> poet speaking which are much more recent than the composition dates (though I 
> don’t understand US copyright laws). And there’s Richard Wilbur’s essay… 
> (sigh). Would what one might call the “production design” of a CD-ROM (the 
> look, the graphics, the order of presentation etc) be subject to copyright? I 
> suppose it’s intellectual property. Sorry, this is getting OT.
> 
> Graham
> 
>> On 11 Feb 2020, at 15:49, dev via use-livecode 
>>  wrote:
>> 
>> https://publicdomain4u.com/as-of-january-1-2019-these-robert-frost-poems-are-public-domain/
>> 
>> 
>>> On Feb 11, 2020, at 2:56 AM, Graham Samuel via use-livecode 
>>>  wrote:
>>> 
>>> Personally I have a pet project to re-purpose a very elaborate CD-ROM about 
>>> Robert Frost, published by Henry Holt in 1997, but I can never get anyone 
>>> to talk to me about the copyright issues.
>> 
>> ___
>> use-livecode mailing list
>> use-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: HyperCard: the Myst story

2020-02-10 Thread Peter Bogdanoff via use-livecode
Colin was a monster programmer at Voyager!

I myself worked on the Voyager music titles #9, 21, 37, 38, 39, producing the 
first two, the Stravinsky and Mozart programs, and I’m still working with 
Robert Winter, the author, after 30 years. All HyperCard with custom Xcommands 
for music score animation and CD-ROM/video disc player control.

Peter Bogdanoff
ArtsInteractive


> On Feb 11, 2020, at 12:07 AM, Colin Holgate via use-livecode 
>  wrote:
> 
> Thanks for that. Voyager did well in the list, 15 out of the 50. 10 of which 
> were in HyperCard. #1 I programmed on my own, and I also did some work on #4 
> and #15.
> 
> 
>> On Feb 10, 2020, at 3:53 PM, Alejandro Tejada via use-livecode 
>>  wrote:
>> 
>> Hi Colin,
>> 
>> I found this Mac User magazine!
>> https://vintageapple.org/macuser/pdf/MacUser_9311_November_1993.pdf
>> 
>> Al
>> 
>> On Tue, Feb 4, 2020 at 9:21 PM
>> Colin Holgate wrote:
>>> In 1993 Mac User magazine had a review
>>> of the top 50 CD-ROMs, and of those there
>>> was an overall winner.
>>> The A Hard Day’s Night CD-ROM I made
>>> in HyperCard was the overall winner.
>>> I was lucky that it was before Myst was
>>> released. It would have easily won!
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: LiveCode won't recognize my stack

2019-12-27 Thread Peter Bogdanoff via use-livecode
Hi Bill,

In LC 9.04 issue a command

go stack tURL

where tURL is the directory path and it opens the stacks. My stacks don’t have 
a suffix at all.

Peter Bogdanoff 



> On Dec 27, 2019, at 5:51 PM, Bill Vlahos via use-livecode 
>  wrote:
> 
> List,
> 
> Version 9.x of LiveCode doesn’t recognize stacks unless the file name ends 
> with either .rev or .livecode. Previous versions (I don’t know when this 
> changed) were able to.
> 
> I use a stack file as the Preferences file for InfoWallet but the file name 
> is “LicenseKey.IW”. When I execute the following command to read custom 
> properties in the stack it fails with an error. Type: Chunk: can't find stack
> 
> put the uDefaultWallet of stack "LicenseKey.IW" into vDefault
> 
> 
> I can also see this when opening a stack from LiveCode. the LicenseKey.IW 
> file is greyed out unless I look for All Files when then opens it correctly.
> 
> How can I open the stack file in LiveCode 9.5.1 without changing the name of 
> the file?
> 
> Thank you,
> Bill Vlahos
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-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: A Windows 10 WTF

2019-12-26 Thread Peter Bogdanoff via use-livecode
I’m on a quad-core Intel Xeon E5 (Mac Pro) and LC 8 could definitely lock up 
the machine. Only with difficulty could I eventually force LC to quit.

Peter Bogdanoff


> On Dec 26, 2019, at 3:31 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> I ahould have saif multiple cores not both. 
> 
>> On Dec 26, 2019, at 14:14 , Bob Sneidar via use-livecode 
>>  wrote:
>> 
>> On the machine, or on the core? LC should only be using a single core on 
>> Multi-core systems. Any other process using that core may be affected, but 
>> not necessarily processes using the other core. It may be academic though, 
>> as most apps today are probably using both cores simultaneously. 
>> 
>> Bob S
>> 
>> 
>>> On Dec 26, 2019, at 11:16 , J. Landman Gay via use-livecode 
>>>  wrote:
>>> 
>>> It may be the issue with repeat loops that do not yield to the engine 
>>> periodically. This was an issue all the way back to MetaCard and I am not 
>>> sure if it has been changed since then.
>>> 
>>> Basicaly, running a lengthy repeat loop locks up the entire CPU until the 
>>> loop exits. If this is the problem then it isn't just your standalone that 
>>> comes to a halt, it's everything currently running on the machine.
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: How do I select graphics that are on top of each other with mousedown?

2019-11-25 Thread Peter Bogdanoff via use-livecode
William,

You could try working with the mouseControl.

Peter

> On Nov 25, 2019, at 10:19 AM, William de Smet via use-livecode 
>  wrote:
> 
> Hi there,
> 
> I have to square graphics (line style) on top of each other.
> They have the same width and height and form a letter X.
> 
> How do I select the different graphics?
> 
> Mousedown, MouseLoc and points of graphic?
> Any pointers are welcome.
> 
> 
> greetings,
> 
> William
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Can I find out what handler I am in?

2019-10-25 Thread Peter Bogdanoff via use-livecode
Have you looked at executionContexts?

Peter

> On Oct 25, 2019, at 1:00 PM, Tom Glod via use-livecode 
>  wrote:
> 
> Hey you guys, I have searched high and low and I am pretty sure the answer
> is no , but I wanted to make sure before I did a feature request and a
> workaround.
> 
> But is there a function that I can call inside a handler that will tell me
> the name of the handler?
> 
> Just like the params() tells me the parameters of the current handler?
> 
> -- 
> Tom Glod
> Founder & Developer
> MakeShyft R.D.A (www.makeshyft.com)
> Office:226-706-9339
> Mobile:226-706-9793
> ___
> use-livecode mailing list
> use-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: RE Video Player LiveCode on Windows

2019-10-23 Thread Peter Bogdanoff via use-livecode
Roland,

You might try setting filename of the player to empty before going to edit mode 
(catching the editScript message). In the past, if a player couldn’t find the 
referenced file it often causes LC to freeze or slow way down, similarly to 
what you’re reporting.

Peter Bogdanoff
ArtsInteractive


> On Oct 23, 2019, at 12:28 PM, R.H. via use-livecode 
>  wrote:
> 
> @ Paul Dupuis
> 
> Thank you very much, Paul, for your detailed answer. I removed my other
> Codec package and installed the LAV package as recommended by you. It works
> well! Great. All the videos I have in MP4, etc. are playing now. This makes
> me happy.
> 
> But the other biggest problem:
> 
> My IDE starts hanging (Windows 64, Version Indy 9.05 and 9.5) when working
> with the player and being in edit mode, mainly using the script editor.
> This happens all the time. There is no exact recipe. After some time, I
> already notice LC is slowing down (it takes long time for anything to
> happen) , and soon after that all freezes, and then I have to force-quit
> and restart all over again.
> 
> As long as the user mode is on and as long as the player is just playing,
> it seems to be ok . Except, of course, there is a huge bug list that you
> mentioned.
> 
> If anybody else has experienced hanging/freezing LiveCode using the player
> in edit mode, I would then create a but report because I could not find a
> similar report there. Unfortunately, there is no very clear recipe yet.
> 
> Roland
> ___
> use-livecode mailing list
> use-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: Push Card

2019-10-22 Thread Peter Bogdanoff via use-livecode
Hi Andrew,

I think the problem is having very many cards—in the thousands, each with text, 
images, etc.—that I experience slowdowns. The stack taking a long time to open, 
save, go to cards, and just wanting to freeze for awhile.

When I changed my method to just a few cards with the text and the data used to 
display it stored in arrays, page loading is lighting fast. Creating fields and 
buttons, formatting them and filling with text on the fly, then deleting them 
when I load the next “page" is really fast. I put images on a web server that I 
pre-download to memory so they display quickly when needed is also part of the 
plan. These images could otherwise be stored as files on disk, or in a LC 
stack. Images in a LC stack can be referenced by using a button and setting its 
icon to ID of the stored image.

Using these kinds of techniques I went from a 600 MB collection of stacks down 
60 MB— 1/3 text and other data, 1/3 images used as thumbnail images embedded in 
text fields, and 1/3 the LC engine runtime, and I moved several hundred MB of 
images to the server.

LC is really fast with small stacks, and it’s really convenient just to lay out 
bunches of cards with stuff, but after  awhile, LC just isn’t fast anymore.

Peter Bogdanoff
artsinteractiveinc.com


> On Oct 22, 2019, at 2:01 PM, Andrew Bell via use-livecode 
>  wrote:
> 


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


Re: Where do we want LiveCode to go? (was "Re: Where LiveCode is Now")

2019-10-09 Thread Peter Bogdanoff via use-livecode
Yes Sean, that looks good!

Already when I see the table, I’m blind typing, trying the page up/down keys on 
the keyboard, resizing the window while it is loading, trying to stress it…

Peter

> On Oct 8, 2019, at 10:21 PM, Brian Milby via use-livecode 
>  wrote:
> 
> I'll say that is a good job so far.  The grid is very responsive (but I am
> using a pretty fast laptop).  Second time to the page was much faster than
> the first.  And I'll agree that some of the corporate web apps that I have
> to use can take time to get themselves ready for anything.  Even the SAP
> desktop client can be slow to load.
> 
> Thanks for posting this.
> 
> Brian
> 
> On Tue, Oct 8, 2019 at 8:18 PM Pi Digital via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>>> On 8 Oct 2019, at 19:37, JJS via use-livecode <
>> use-livecode@lists.runrev.com> wrote:
>>> 
>>> So that's why i say, the HTML5 export is a nice thing to experiment, but
>> no visitor is going to return after the first time of long waiting, not
>> even if the 2nd time is somewhat quicker
>> 
>> 
>> Again, this only potentially applies to the landing page, not a web app
>> which any visitor would or could expect a loading time, especially if
>> warned. Our clients are already happy with this. It’s still less or about
>> the same as they experienced with the desktop app.
>> 
>> HTML5 deployment from LC is not intended for making web pages.
>> 
>> Have you loaded MS Dynamics or any other CRM for that matter in a browser.
>> And yet they are used day in day out by thousands of businesses globally.
>> Each MSD window is tedious - loading takes 16-20sec and inconsistent. LC
>> html is a dream in comparison (despite its current bugs and screwups).
>> 
>> https://tariffanalyser.porrima.co.uk
>> 
>> Double click the circle icon to see some demo data and display 28k+
>> records in a custom built DataGrid (coz datagrid2 is broken and mega slow
>> at the moment).
>> 
>> That’s what I’m working on and it loads pretty fast in comparison. 10
>> seconds to download the app and engine, run, Connect to a list from MySQL
>> via php, resize to fit the screen and display. (Note: this is not designed
>> for mobile platforms)
>> 
>> Each sales agent will have a link on their desktop that will open up
>> Chrome to this page as if opening a desktop app. And they can leave it open
>> over night if they wish and come back to it the next morning after logging
>> back into their machine.
>> 
>> This ‘experiment’ seems to be working.
>> 
>> Sean Cole
>> Pi Digital Prod Ltd
>> 
>> ___
>> use-livecode mailing list
>> use-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: Recommended specs for Windows Development computer.

2019-10-06 Thread Peter Bogdanoff via use-livecode
I work on text-heavy e-book-like, multi-language applications where layout is 
important.

I use fields instead of buttons as it is much easier to control the text 
display.

For field length, I often set the height of the field to the formatted height 
since Windows text (and other languages) will flow differently than Mac. 
However the card has to be showing to do this; you can’t do that from another 
card.

Also a difference between Mac/Windows is that for fields who’s textHeight is 
not set (fixed line height not checked), the default spacing between lines is 
different between Mac & Windows. I use images inline (image source set to an 
image’s ID) and you can’t fix the line height when that is happening.

So, to make Mac and Windows look as similar as possible in a paragraph of text 
where the text continues on to another page, I add carriage returns after every 
line of the Mac text (my development platform) and then export the htmlText to 
the database. Then when Windows loads the text in, the line breaks look more or 
less the same—I do have to make the field a little wider for Windows display. 
The height of Windows fields will need to be some 10% taller.

Also I use standard fonts, Georgia and Helvetica.

There’s a free version of my music application, Music In the Air, available to 
see this:
https://artsinteractiveinc.com


Peter Bogdanoff
ArtsInteractive

> On Oct 6, 2019, at 4:22 PM, dsc--- via use-livecode 
>  wrote:
> 
> I tend to use a lot of whitespace in layout and keep label fields and text 
> buttons long.
> 
> And, since I am often the LiveCode programmer's programmer, building 
> libraries & LCB extensions and such, I sometimes just throw controls onto the 
> card. (Which might contribute to the notion that Dar can't GUI.)
> 
> Platform, window size, display size, and font availability are all in the 
> environment. Perhaps these can be handled in a uniform manner as one might do 
> a stack resize.
> 
> If I need to, I use raw primitive controls and use appropriate graphics.
> 
> So, to address the question, for simple stacks, I design for Mac and adjust 
> for Windows.
> 
>> On Oct 4, 2019, at 11:50 AM, Jjs via use-livecode 
>>  wrote:
>> 
>> How do you people cope with the differences on fields and knobs having text 
>> in it on the different OS-es? If i only build on windows even for Linux and 
>> Macos, text and such never fits in the fields.And i have to adjust it and 
>> maintain a stack for each OS.
>> 
>> Dar Scott Consulting via use-livecode  
>> schreef op 4 oktober 2019 19:40:16 CEST:
>>> The original question mentioned testing and debugging. 
>>> 
>>> I tend to develop on the Mac and test on Windows. At times I need to
>>> develop on Windows because there are unknowns in the environment or I'm
>>> using some Windows specific hardware. Especially internal hardware.
>>> 
>>> It is a big pain to have multiple programming stations, so I set up
>>> Windows workstations with monitors, keyboards and mice as needed. I
>>> prefer to have my big wide monitor on my Mac and then remote in. I
>>> currently use no-machine to access Windows machines.
>>> 
>>> The focus in the discussion has been on processor, RAM and disk. For me
>>> however, other hardware is important. That is, that which makes it hard
>>> to test with virtualization needs to be in the real hardware. And often
>>> one needs real hardware. Virtual Box has been good to me as far as
>>> emulating hardware, but I need to test on real stuff.
>>> 
>>> So, for me, the most important part is not so much processor-RAM-disk,
>>> but I/O. I want lots of USB and a variety of such, front and back. I
>>> want board slots. I want multiple NICs. RS-232 is a big plus. A
>>> powerful GPU is a plus, but I hope to build a computation server
>>> someday. Multiple kinds of video is good as well as handling multiple
>>> monitors. I want Bluetooth and Wifi. I want WoL. Though I use
>>> no-machine, I want to be able to remote desktop in, so W8.1 needs to be
>>> Pro. As soon as I get a computer, a customer will come up with
>>> something I neglected, so those slots are important. I get Pro for
>>> everything if I can.) For a different machine, I might want something
>>> with a touch screen that I can carry around.
>>> 
>>> In my last buy, I compromised. I did not get high performance or slots.
>>> 
>>> And speaking of Pro, Windows 10 Pro is, out of the box, friendly to us
>>> old guys.
>>> 
>>> As far as development on the Mac, Bootcamp does not work well for me, I
>>> want to see all of my screens on all of my computers. Parallels is
>>> good, but I have found that when Parallels and VMWare say no, Virtual
>>> Box says yes. What good is higher RPM when you can't get it into
>>> reverse? In general, virtualization allows me to swap out hardware or
>>> display sizes quickly, bing, bing, bing. Network configuration testing?
>>> No searching for switches, routers and cables. 
>>> 
>>> Just going by my memory (I recommend against trusting it), I 

Re: Stacks and Sub Stacks

2019-09-25 Thread Peter Bogdanoff via use-livecode
Mark, you can easily use the send command for this. There is also the dispatch 
command. The call would go directly to the object, bypassing any hierarchy. 
Thus you can have the same-named handlers is other stacks without a conflict. 
Sometimes it is a good thing to have a same-named handler in various stacks. 
For example, if you have multiple stacks for data entry and you want to 
initialize the fields in the various stacks, you could:

# Where tStacksToInitialize is a list of stacks
# Each stack contains a handler emptyFields that knows exactly which fields to 
empty

repeat for each line tLine in tStacksToInitialize
send emptyFields to stack tLine
end repeat

Peter Bogdanoff
ArtsInteractive

> On Sep 25, 2019, at 12:06 PM, Mark Smith via use-livecode 
>  wrote:
> 
> Do you ever have to call a substack from a main stack? If you do, do you have 
> to preface the handler with a substack reference or does LC know where to 
> look? Can you have 2 handlers by the same name in different sub stacks? How 
> about in the main stack and a substack (that would really get confusing). Any 
> recommendations on what NOT to put in a substack?
> 
> Thanks
> Mark
> 
>> On Sep 25, 2019, at 2:54 PM, dunbarx--- via use-livecode 
>>  wrote:
>> 
>> Hi.
>> You probably mean script-only stacks.
>> Substacks are just stacks, but they live in the same file as the mainStack. 
>> It helps with organization, and when you save one, you save them all. You 
>> can only have one mainStack, but as many subStacks as you like.
>> For me, I have projects that use substacks for, say, data entry. The 
>> subStack is built just for that purpose.
>> When making a standalone, substacks are included in the final package.
>> Just practice a bit. 
>> Craig
>> 
>> -Original Message-
>> From: Patrick Roza via use-livecode 
>> To: use-livecode 
>> Cc: Patrick Roza 
>> Sent: Wed, Sep 25, 2019 9:18 am
>> Subject: Stacks and Sub Stacks
>> 
>> Looking for some good examples of the Main stack used with sub stacks.
>> Looking for best practices on usage. Also using text-only stacks.
>> 
>> Thanks,
>> 
>> Patrick
>> ___
>> use-livecode mailing list
>> use-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: inter-app communication to LiveCode?

2019-09-20 Thread Peter Bogdanoff via use-livecode
Thank you Scott and Trevor! Trevor, I think what you wrote certainly puts me in 
the right direction.

Peter

> On Sep 19, 2019, at 9:12 PM, Trevor DeVore via use-livecode 
>  wrote:
> 
> On Thu, Sep 19, 2019 at 5:25 PM Peter Bogdanoff via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> 
>> A user asked about “linking” to my desktop LC app from a PDF. Is there
>> anything in the PDF spec that does this? His idea was that it the link
>> would do more than just opening up my app, but contain data that indicates
>> a specified “page” in my app.
>> 
>> My application is Mac/Windows.
>> 
> 
> You can define a url protocol (e.g. myapp://) which can be configured on
> Mac or Windows to launch your application. This works with links in a
> browser so that a web page can contain a link that launchers your
> application. I don't know if it will work from a PDF file, though. It may
> depend on the PDF viewer or other variables. It is probably worth trying as
> you can embed the "page" number in the url.
> 
> On Windows you need to update the Windows Registry. Here is a link to some
> code in a library that ships with Levure that will set the appropriate
> values in the registry:
> 
> https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L193
> 
> You can run this code when your application first launches.
> 
> On Mac/iOS you need to add some keys to your Info.plist file. The README
> for the library has an example:
> 
> https://github.com/trevordevore/levure/tree/develop/framework/helpers/file_system#url-protocols
> 
> Once you've set the registry/Info.plist files up (you will need to launch
> the app at least once on macOS so it picks up the settings in the plist
> file) your app will be launched when the URL protocol is triggered. On
> macOS you will handle an appleEvent. You can look at the code in the
> library for hints:
> 
> https://github.com/trevordevore/levure/blob/develop/framework/helpers/file_system/file_system.livecodescript#L83
> 
> For Windows you can read the `commandArguments` when the app launches or,
> if the application is already running, handle the `relaunch` command and
> use the parameters passed to it.
> 
> Hopefully that is enough to get you started.
> 
> -- 
> 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


inter-app communication to LiveCode?

2019-09-19 Thread Peter Bogdanoff via use-livecode
Hi,

A user asked about “linking” to my desktop LC app from a PDF. Is there anything 
in the PDF spec that does this? His idea was that it the link would do more 
than just opening up my app, but contain data that indicates a specified “page” 
in my app. 

My application is Mac/Windows.

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


Re: "template" stack in custom property

2019-08-02 Thread Peter Bogdanoff via use-livecode
Possibly related to this inability to focus properly is this bug I just filed:

Bug 22285 - Can't focus on script window with property inspector custom 
properties tab open


Only showing in LC 9.5.

This can really create havoc if you don’t watch where the characters you are 
typing or pasting actually end up.

Peter Bogdanoff
ArtsInteractive


> On Aug 2, 2019, at 11:30 AM, Klaus major-k via use-livecode 
>  wrote:
> 
> Hi Jaque,
> 
>> Am 02.08.2019 um 20:24 schrieb J. Landman Gay via use-livecode 
>> :
>> ...
>> The "can't find handler" error, as well as not finding controls or cards, 
>> has been around for a while but I see it more oftn in the last few versions 
>> of LC 9. I haven't got a repeatable recipe yet so haven't reported it.
>> 
>> Anyway, that sounds like what you are experiencing.
> 
> no, I don't think so, because LC obviously neglects the rest of the script
> but ONLY if the stack-to-be-opened has a pre-/openstack handler.
> 
> Works if I add -> lock messages!
> 
> And this only happens when I open a stack from within a custom property.
> If I do the same with a stack from my HD, everything works as exspected, so 
> it does not sound
> like LC is not finding "the defaultstack".
> 
>> -- 
>> Jacqueline Landman Gay | jac...@hyperactivesw.com
>> HyperActive Software   | http://www.hyperactivesw.com
> 
> Best
> 
> Klaus
> 
> --
> Klaus Major
> https://www.major-k.de
> kl...@major-k.de
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

Re: increasing column width of DG keeps running

2019-08-01 Thread Peter Bogdanoff via use-livecode
I have seen this particular behavior in the property inspector when adjusting 
numbers in the Position tab. It happens sometimes, without any particular 
recipe that I’ve noticed. Closing the PI stops it. 

Peter Bogdanoff


> On Aug 1, 2019, at 10:23 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> That's a long standing issue and I think it has to do with the way the 
> TreeView widget is implemented. Correct me if I am wrong. When I create a 
> column in the Datagrid, after naming it, I then have to click the column 
> AGAIN to get it to refresh. Really frustrating. 
> 
> Bob S
> 
> 
>> On Aug 1, 2019, at 08:08 , Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> I did see a bug when editing column names. Add a column. Type in the Column 
>> name. The click on the Column label field of the PI and types a label. Press 
>> tab, get an error "object does not have that property" and the Col # name 
>> references as the object. I think the closeField handler in the PI for the 
>> column name is broken.
>> 
>> I report the bug I found to the Quality Center as 
>> https://quality.livecode.com/show_bug.cgi?id=22281
> 
> 
> ___
> use-livecode mailing list
> use-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: Why does this not work ?

2019-06-10 Thread Peter Bogdanoff via use-livecode
I think that 'item 1 of t1’ has to be resolved to an object reference before it 
can be used with the vis property. The earlier lines are doing that, but not 
the last. 

It seems that LiveCode has gotten stricter with this in recent versions, 
requiring “of me” or such when referring directly to a control. Some later 
version of 8.1 was breaking my existing scripts for this very reason.

Peter

> On Jun 10, 2019, at 8:44 PM, Alex Tweedly via use-livecode 
>  wrote:
> 
> OK, this code produces an error - but I can't see why (and I worry about that 
> :-)
> 
> I have a field inside a group inside a group ,
> 
> and the following code :
> 
>> on mouseup
>>local tName, t1, t2
>>put the long name of fld "F" into tName
>>put tName & ",12,13" into t1
>>put "t1" && t1  after msg
>> 
>>put item 1 of t1 into t2
>>set the vis of t2 to TRUE
>>put "t2 was OK"  after msg
>> 
>>set the vis of (item 1 of t1) to TRUE
>>put "using parens OK"  after msg
>> 
>>set the vis of item 1 of t1 to TRUE   -- this line fails !!
>>put "here"  after msg
>> 
>> end mouseup
> that line fails, with the error message
> 
>> button "Button": execution error at line 14 (Chunk: error in object 
>> expression) near "field "F" of group id 1005 of group id 1007 of card id 
>> 1002 of stack "/Users/alextweedly/Dropbox 
>> (Personal)/Apps/objectchunk.livecode"
>> 
> 
> I just cant see why that doesn't work :-)
> 
> If I use parentheses, or if copy the first item over to a different 
> variable), then it is all OK. But doing it directly (AFAICT) should work, and 
> doesn't. What am I misunderstanding ?
> 
> Thanks
> 
> Alex.
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: Design questions...

2019-06-06 Thread Peter Bogdanoff via use-livecode
We use a height of 728—that’s in compensation for a variety of issues—some 
laptops have very small screens:
LC window title bar (can be hidden by LC if necessary)
Windows Task bar (can be hidden by LC if necessary)

You can get the height of the screen: 
(item 4 of the working screenRect) - (item 2 of the working screenRect)

You can also easily resize the window by using scaleFactor. We do some auto 
resizing when opening the program to scale it down for very small screens, and 
have a preference setting for the user to scale it up to maximum available 
height.

Peter Bogdanoff
ArtsInteractive


> On Jun 6, 2019, at 11:09 AM, Glen Bojsza via use-livecode 
>  wrote:
> 
> Bob, thanks for the info...I will start with 1024x768 as a minimal screen
> resolution for now and see what happens. As for the combo of menus and
> buttons I will try to find if there is a benefit of both and also usability
> space within the app.
> 
> My target platforms are Windows 10 and OS X 10.X
> 
> Glen
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: LC application running on lab computers

2019-03-28 Thread Peter Bogdanoff via use-livecode
Yes, I see that the /Library requires elevated permission which is way beyond 
me.

Terry, it does look like I could write to the temporary folder, but I read that 
that folder may get cleared on restart. However, the Users/Shared folder seems 
available, so Bob and Richmond seem to be right. This works:

put specialFolderpath("usrs") & "/Shared/ArtsInteractive" into tURL

I’ll work with that.

Peter

> On Mar 28, 2019, at 8:19 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Any user has write permissions to the users//library folder. No 
> one, even administrators has write permissions to the /library folder. You 
> would need to elevate the process somehow. That has come up before, and I am 
> not sure what came of it. There is a shared folder that all users have write 
> access to, but this is not the typical place to put prefs files. 
> 
> Bob S
> 
> 
>> On Mar 27, 2019, at 23:45 , Peter Bogdanoff via use-livecode 
>>  wrote:
>> 
>> I get "can't create that directory (13)”
>> 
>> The challenge is to write a pref file to a non-user directory so the file is 
>> available to all users in a lab setting.
>> 
>> Peter
>> 
>>> On Mar 27, 2019, at 11:36 PM, Richard Gaskin via use-livecode 
>>>  wrote:
>>> 
>>> Peter Bogdanoff wrote:
>>> 
>>>> In attempting to create this folder in MacOS:
>>>> 
>>>> put specialFolderpath("asup") & “/My Folder" into tURL
>>>> 
>>>>[which yields tURL: /Library/Application Support/My Folder ]
>>>> 
>>>> create folder tURL
>>>> 
>>>>returns a result: can't create that directory
>>>> 
>>>> 
>>>> Why the error?
>> 
> 
> ___
> use-livecode mailing list
> use-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 application running on lab computers

2019-03-28 Thread Peter Bogdanoff via use-livecode
I see that error 13 is a permissions issue.

I’m looking at this page "How to enable the root user on your Mac or change 
your root password”
https://support.apple.com/en-us/HT204012

which I haven’t yet figured out…

So, I suppose, lab admins would have to enable root user to install my 
application?

Peter

> On Mar 27, 2019, at 11:45 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> I get "can't create that directory (13)”
> 
> The challenge is to write a pref file to a non-user directory so the file is 
> available to all users in a lab setting.
> 
> Peter
> 
>> On Mar 27, 2019, at 11:36 PM, Richard Gaskin via use-livecode 
>> mailto:use-livecode@lists.runrev.com>> wrote:
>> 
>> Peter Bogdanoff wrote:
>> 
>>> In attempting to create this folder in MacOS:
>>> 
>>> put specialFolderpath("asup") & “/My Folder" into tURL
>>> 
>>> [which yields tURL: /Library/Application Support/My Folder ]
>>> 
>>> create folder tURL
>>> 
>>> returns a result: can't create that directory
>>> 
>>> 
>>> Why the error?
>> 
>> All file I/O is best accompanied with an error check. If that includes a 
>> call to sysError you'll see exactly what the OS is trying to tell you.
>> 
>>  create folder tURL
>>  if the result is not empty then
>>  answer the result &" ("& sysError() &")"
>>  exit to top
>>   end if
>> 
>> 
>> I'd wager permissions. /Library is a system folder. 
>> /Users//Library should be writable, though.
>> 
>> -- 
>> Richard Gaskin
>> Fourth World Systems
>> Software Design and Development for the Desktop, Mobile, and the Web
>> 
>> ambassa...@fourthworld.com <mailto:ambassa...@fourthworld.com> 
>> <mailto:ambassa...@fourthworld.com <mailto:ambassa...@fourthworld.com>>  
>>   http://www.FourthWorld.com <http://www.fourthworld.com/> 
>> <http://www.fourthworld.com/ <http://www.fourthworld.com/>>
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com> 
>> <mailto:use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode 
>> <http://lists.runrev.com/mailman/listinfo/use-livecode> 
>> <http://lists.runrev.com/mailman/listinfo/use-livecode 
>> <http://lists.runrev.com/mailman/listinfo/use-livecode>>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> <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 application running on lab computers

2019-03-28 Thread Peter Bogdanoff via use-livecode
I get "can't create that directory (13)”

The challenge is to write a pref file to a non-user directory so the file is 
available to all users in a lab setting.

Peter

> On Mar 27, 2019, at 11:36 PM, Richard Gaskin via use-livecode 
>  wrote:
> 
> Peter Bogdanoff wrote:
> 
> > In attempting to create this folder in MacOS:
> >
> > put specialFolderpath("asup") & “/My Folder" into tURL
> >
> >  [which yields tURL: /Library/Application Support/My Folder ]
> >
> > create folder tURL
> >
> >  returns a result: can't create that directory
> >
> >
> > Why the error?
> 
> All file I/O is best accompanied with an error check. If that includes a call 
> to sysError you'll see exactly what the OS is trying to tell you.
> 
>   create folder tURL
>   if the result is not empty then
>   answer the result &" ("& sysError() &")"
>   exit to top
>end if
> 
> 
> I'd wager permissions. /Library is a system folder. /Users//Library 
> should be writable, though.
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for the Desktop, Mobile, and the Web
> 
> ambassa...@fourthworld.com 
> http://www.FourthWorld.com 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode 
> 
___
use-livecode mailing list
use-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 application running on lab computers

2019-03-28 Thread Peter Bogdanoff via use-livecode
I’m doing this on my own Mac, and I am an Admin.

Peter

> On Mar 27, 2019, at 11:29 PM, Phil Davis via use-livecode 
>  wrote:
> 
> Hi Peter,
> 
> Is it possible you're running LC in a user account that doesn't have "admin" 
> permissions? I suggest this because they are lab computers.
> 
> You can check Apple menu > System Preferences > Users & Groups > [username] 
> to find out.
> 
> Phil Davis
> 
> 
> On 3/27/19 11:20 PM, Peter Bogdanoff via use-livecode wrote:
>> In attempting to create this folder in MacOS:
>> 
>> put specialFolderpath("asup") & “/My Folder" into tURL
>> 
>>  [which yields tURL: /Library/Application Support/My Folder ]
>> 
>> create folder tURL
>> 
>>  returns a result: can't create that directory
>> 
>> 
>> Why the error?
>> 
>> Peter
>> ArtsInteractive
>> 
>> 
>>> On Mar 27, 2019, at 2:38 PM, Peter Bogdanoff via use-livecode 
>>>  wrote:
>>> 
>>> Thanks all! I’ll check these out.
>>> 
>>> Peter
>>> 
>>> 
>>>> On Mar 27, 2019, at 2:28 PM, Ralph DiMola via use-livecode 
>>>>  wrote:
>>>> 
>>>> These are the public ones on Win 10:
>>>> 
>>>> 25 C:/Users/Public/Desktop
>>>> 46 C:/Users/Public/Documents
>>>> 53 C:/Users/Public/Music
>>>> 54 C:/Users/Public/Pictures
>>>> 55 C:/Users/Public/Videos
>>>> 
>>>> Used this in the message box:
>>>> 
>>>> put empty into msg;repeat with i = 1 to 100;if specialFolderPath(i) 
>>>> contains "public" then put i&(i)  after msg;end repeat
>>>> 
>>>> 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 Klaus major-k via use-livecode
>>>> Sent: Wednesday, March 27, 2019 5:04 PM
>>>> To: How to use LiveCode
>>>> Cc: Klaus major-k
>>>> Subject: Re: LC application running on lab computers
>>>> 
>>>> Hi Peter,
>>>> 
>>>>> Am 27.03.2019 um 21:59 schrieb Peter Bogdanoff via use-livecode 
>>>>> :
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> My application is being installed on Windows machines in a school lab. 
>>>>> The admin is having trouble because I’m writing preference files to the 
>>>>> Users\\ folder and when another user logs in, the file is not 
>>>>> available. This may be a problem in the future for Macs as well. These 
>>>>> same preference files should be accessed by all users.
>>>>> 
>>>>> The specialFolderPath functions don’t seem to have one for a root level 
>>>>> Library/Preferences folder. Is there otherwise a best, or even workable 
>>>>> practice for this scenario?
>>>> you could use these 2 undocumented specialfolderpath() codes for Windows:
>>>> -> specialFolderPath(35) -> prefs folder for ALL users
>>>> -> specialfolderpath(26) -> dito for the current user only!
>>>> 
>>>> Not sure this is still working on Win 10, but worth a try. :-) Check this 
>>>> in the IDE with the messagebox:
>>>> put specialFolderPath(35)
>>>> 
>>>>> Peter Bogdanoff
>>>>> ArtsInteractive
>>>> Best
>>>> 
>>>> Klaus
>>>> 
>>>> --
>>>> Klaus Major
>>>> http://www.major-k.de
>>>> kl...@major-k.de
>>>> 
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>>> 
>>>> 
>>>> ___
>>>> use-livecode mailing list
>>>> use-livecode@lists.runrev.com
>>>> Please visit this url to subscribe, unsubscribe and manage your 
>>>> subscription preferences:
>>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-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
> 
> -- 
> 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: LC application running on lab computers

2019-03-28 Thread Peter Bogdanoff via use-livecode
In attempting to create this folder in MacOS:

put specialFolderpath("asup") & “/My Folder" into tURL

 [which yields tURL: /Library/Application Support/My Folder ]

create folder tURL

 returns a result: can't create that directory


Why the error? 

Peter
ArtsInteractive


> On Mar 27, 2019, at 2:38 PM, Peter Bogdanoff via use-livecode 
>  wrote:
> 
> Thanks all! I’ll check these out.
> 
> Peter
> 
> 
>> On Mar 27, 2019, at 2:28 PM, Ralph DiMola via use-livecode 
>>  wrote:
>> 
>> These are the public ones on Win 10:
>> 
>> 25 C:/Users/Public/Desktop
>> 46 C:/Users/Public/Documents
>> 53 C:/Users/Public/Music
>> 54 C:/Users/Public/Pictures
>> 55 C:/Users/Public/Videos
>> 
>> Used this in the message box:
>> 
>> put empty into msg;repeat with i = 1 to 100;if specialFolderPath(i) contains 
>> "public" then put i&(i)  after msg;end repeat
>> 
>> 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 Klaus major-k via use-livecode
>> Sent: Wednesday, March 27, 2019 5:04 PM
>> To: How to use LiveCode
>> Cc: Klaus major-k
>> Subject: Re: LC application running on lab computers
>> 
>> Hi Peter,
>> 
>>> Am 27.03.2019 um 21:59 schrieb Peter Bogdanoff via use-livecode 
>>> :
>>> 
>>> Hi,
>>> 
>>> My application is being installed on Windows machines in a school lab. The 
>>> admin is having trouble because I’m writing preference files to the 
>>> Users\\ folder and when another user logs in, the file is not 
>>> available. This may be a problem in the future for Macs as well. These same 
>>> preference files should be accessed by all users.
>>> 
>>> The specialFolderPath functions don’t seem to have one for a root level 
>>> Library/Preferences folder. Is there otherwise a best, or even workable 
>>> practice for this scenario?
>> 
>> you could use these 2 undocumented specialfolderpath() codes for Windows:
>> -> specialFolderPath(35) -> prefs folder for ALL users
>> -> specialfolderpath(26) -> dito for the current user only!
>> 
>> Not sure this is still working on Win 10, but worth a try. :-) Check this in 
>> the IDE with the messagebox:
>> put specialFolderPath(35)
>> 
>>> Peter Bogdanoff
>>> ArtsInteractive
>> 
>> Best
>> 
>> Klaus
>> 
>> --
>> Klaus Major
>> http://www.major-k.de
>> kl...@major-k.de
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-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

  1   2   3   >