Re: Stack Height/Menubar

2018-11-17 Thread J. Landman Gay via use-livecode

On 11/17/18 12:49 PM, Rick Harrison via use-livecode wrote:

Does anyone have a nice routine which
will compensate for the change in layout
by moving all other objects farther down?
I thought I saw a mention this before.


on pushDown
  repeat with x = 1 to the number of bgs
set the top of bg x to the top of bg x + 22
  end repeat
  repeat with x = 1 to the number of cds
go cd x
repeat with n = 1 to the number of cd parts
  set the top of cd part n to the top of cd part n + 22
end repeat
  end repeat
end pushDown

This is from a HyperCard-to-LC conversion tutorial. "Parts" is a HC 
synonym for "controls", which you can substitute if you want. The 
default menubar height used to be 22, but change that number if you need to.


Tutorial covering menus is here:

And the above handler is here:


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

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


Re: where can I learn about macOS app Help menu Search menu item?

2018-11-17 Thread Rick Harrison via use-livecode
Hi Kee,

I found that any search term input seems to just look
at the Mac’s HelpViewer app that is located under the
system library core services.  I haven’t found where
it stores it’s files yet or if I can put my own stuff in there
somewhere.

What I do instead of that is provide links to my
user manual, website and feedback support email.
I provide a search routine on my website that
accesses my app’s user manual etc.

If you come up with a better solution, I’m all
eyes and ears on it!

Rick




> On Nov 17, 2018, at 10:11 PM, kee nethery via use-livecode 
>  wrote:
> 
> Building a macOS app and in the Help menu, the top menu item is “Search” with 
> a search field. How do I populate the data that gets searched so that answers 
> to questions about the app can live there? Trying to search for “search” and 
> “Menu” is not useful.
> 
> Thanks,
> 
> Kee Nethery

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

Re: where can I learn about macOS app Help menu Search menu item?

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

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

Paul

> On 17 Nov 2018, at 19:11, kee nethery via use-livecode 
>  wrote:
> 
> Building a macOS app and in the Help menu, the top menu item is “Search” with 
> a search field. How do I populate the data that gets searched so that answers 
> to questions about the app can live there? Trying to search for “search” and 
> “Menu” is not useful.
> 
> Thanks,
> 
> Kee Nethery
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Re: use password protected scripts on LC web server

2018-11-17 Thread Todd Fabacher via use-livecode
I finally got it to work, just don't do "include" the script, but only
do "start using"



On Sat, Nov 17, 2018 at 10:30 PM Todd Fabacher  wrote:

> I got the LC Indy web server installed and it can connect to the DB and
> return JSON.
>
> But as soon as I reference a password protected script file, it gave me an
> error.
>
>  // Database
> include "model.lc"
> include "xps_sync.livecode"
>
> --I even tried "start using", but did not help
> --was getting:  row 6, col 1: Chunk: can't find stack
> --start using stack "xps_sync"
>
> put DoesItWork() -- Simple function that returns "It Works"
> ?>
>
> This is the error I am getting:
>
> REVO7000
>
> file "/var/www/html/model.lc"
> file "/var/www/html/xps_sync_delete.lc"
> file "/var/www/html/xps_sync.livecode"
>   row 7, col 6: Function: error in function handler (DoesItWork)
>   row 7, col 6: put: error in expression
>
>
> Here is the simple password protected function:
>
> function DoesItWork
>
>return "It Works"
>
> end DoesItWork
>
> On Sat, Nov 17, 2018 at 9:26 PM Todd Fabacher  wrote:
>
>> SUPER..I FOUND IT  AND THE ANSWER IS YES!!!
>>
>> This changes my entire concept of using LiveCode online. I can do full
>> debugging in my app and just take the functionality I want and move it
>> online.
>>
>> FANTASTIC!!
>>
>> On Sat, Nov 17, 2018 at 9:21 PM Todd Fabacher 
>> wrote:
>>
>>> Quick question...we have some specific info in LC we need to put in a
>>> LiveCode web script to be run online. But we need to protect the content.
>>> Can we put that in a password protected script, drop it online and add it
>>> in as an "Include"??
>>>
>>> Thanks, this would be SUPER helpful,
>>>
>>> Todd
>>>
>>>
>>>
___
use-livecode mailing list
use-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: use password protected scripts on LC web server

2018-11-17 Thread Todd Fabacher via use-livecode
I got the LC Indy web server installed and it can connect to the DB and
return JSON.

But as soon as I reference a password protected script file, it gave me an
error.



This is the error I am getting:

REVO7000

file "/var/www/html/model.lc"
file "/var/www/html/xps_sync_delete.lc"
file "/var/www/html/xps_sync.livecode"
  row 7, col 6: Function: error in function handler (DoesItWork)
  row 7, col 6: put: error in expression


Here is the simple password protected function:

function DoesItWork

   return "It Works"

end DoesItWork

On Sat, Nov 17, 2018 at 9:26 PM Todd Fabacher  wrote:

> SUPER..I FOUND IT  AND THE ANSWER IS YES!!!
>
> This changes my entire concept of using LiveCode online. I can do full
> debugging in my app and just take the functionality I want and move it
> online.
>
> FANTASTIC!!
>
> On Sat, Nov 17, 2018 at 9:21 PM Todd Fabacher  wrote:
>
>> Quick question...we have some specific info in LC we need to put in a
>> LiveCode web script to be run online. But we need to protect the content.
>> Can we put that in a password protected script, drop it online and add it
>> in as an "Include"??
>>
>> Thanks, this would be SUPER helpful,
>>
>> Todd
>>
>>
>>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


where can I learn about macOS app Help menu Search menu item?

2018-11-17 Thread kee nethery via use-livecode
Building a macOS app and in the Help menu, the top menu item is “Search” with a 
search field. How do I populate the data that gets searched so that answers to 
questions about the app can live there? Trying to search for “search” and 
“Menu” is not useful.

Thanks,

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

Re: use password protected scripts on LC web server

2018-11-17 Thread Todd Fabacher via use-livecode
SUPER..I FOUND IT  AND THE ANSWER IS YES!!!

This changes my entire concept of using LiveCode online. I can do full
debugging in my app and just take the functionality I want and move it
online.

FANTASTIC!!

On Sat, Nov 17, 2018 at 9:21 PM Todd Fabacher  wrote:

> Quick question...we have some specific info in LC we need to put in a
> LiveCode web script to be run online. But we need to protect the content.
> Can we put that in a password protected script, drop it online and add it
> in as an "Include"??
>
> Thanks, this would be SUPER helpful,
>
> Todd
>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


use password protected scripts on LC web server

2018-11-17 Thread Todd Fabacher via use-livecode
Quick question...we have some specific info in LC we need to put in a
LiveCode web script to be run online. But we need to protect the content.
Can we put that in a password protected script, drop it online and add it
in as an "Include"??

Thanks, this would be SUPER helpful,

Todd
___
use-livecode mailing list
use-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: Array editing or Validate JSON string?

2018-11-17 Thread William Prothero via use-livecode
Folks:
I guess I could have been more clear. I am editing the JSON directly in a text 
field. If I make a mistake, then use JSONToArray, the program just fails 
silently. What I would like to do is get a dialog that the JSON wasn’t formed 
correctly. Of course, since I’m using it for my personal development of my app, 
I can know that it failed if I don’t get the answer dialog I put in after it. 
but, it seems a kludge. Shouldn’t there be some kind of an error result if the 
JSON is ill-formed?
Best,
Bill

> On Nov 16, 2018, at 1:57 PM, Mark Talluto via use-livecode 
>  wrote:
> 
> Hi Bill,
> 
> My favorite JSON validator is:  https://jsonformatter.curiousconcept.com 
> 
> 
> 
> Best regards,
> 
> Mark Talluto
> livecloud.io 
> nursenotes.net 
> canelasoftware.com 
> 
> 
> 
> 
>> On Nov 15, 2018, at 3:09 PM, William Prothero via use-livecode 
>>  wrote:
>> 
>> Hi, I’m editing a json string (for development uses) and wonder if there is 
>> an easy way to validate whether the string is a valid JSON string. 
>> 
>> Or, perhaps there is an easier way to display and edit a pretty simple array.
>> 
>> Suggestions would be helpful. Currently, I convert the array to JSON, put it 
>> in a text field, then edit the text field. It would be convenient if it 
>> could trap editing errors I might make. The simple way seems to just throw 
>> an error and stop execution of the script.
>> 
>> Best,
>> Bill
>> 
>> William A. Prothero
>> http://earthlearningsolutions.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: Radio Buttons on multiple cards

2018-11-17 Thread Peter Bogdanoff via use-livecode
I did get it to work, as you said, by setting each button individually, rather 
than trying to set the whole group. So I’m good. Thanks!

Peter

> On Nov 17, 2018, at 1:28 PM, Phil Davis via use-livecode 
>  wrote:
> 
> Hmmm. Here is what I tried, and the hilites 'stick' across all cards in the 
> stack:
> - create stack
> - add 2 radio buttons
> - group them
> - set the sharedHilite of each radio to true
> - add another generic button to the card
> - group the newest button with the group of radios
> - make new card
> - place that last group on card 2
> 
> Result:
> Radio hilites stick across both cards
> 
> I'm not sure why your experience would be different than this. Do you have 
> any scripts that fiddle with the radio hilites?
> 
> Phil
> 
> 
> On 11/17/18 8:08 AM, Peter Bogdanoff via use-livecode wrote:
>> Thanks Phil, that did it. I was trying to set the group sharedHilite, which 
>> can’t be done.
>> 
>> Peter
>> 
>>> On Nov 17, 2018, at 3:04 AM, Phil Davis via use-livecode 
>>>  wrote:
>>> 
>>> Hi Peter,
>>> 
>>> Set the sharedHilite of each button to true. That'll give you what you want.
>>> 
>>> Phil Davis
>>> 
>>> 
>>> On 11/16/18 9:28 PM, Peter Bogdanoff via use-livecode wrote:
 Hi,
 
 A question about LC mechanics:
 
 I have a stack of 10 cards, sharing the same background on each. That 
 background group contains a sub group of a 2-button radio set.
 
 When the user selects radio button 2 on any particular card, I want radio 
 button 2 of all 10 cards to be also selected. All I see is the button set 
 working independently on each card.
 
 I don’t see this universal choice as a button property. Is this to be done 
 by scripting?
 
 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
>>> -- 
>>> 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
> 
> -- 
> 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: Stack Height/Menubar

2018-11-17 Thread Rick Harrison via use-livecode
After hours of playing around with this
problem, it looks to me like a Menubar 
has to be shifted into that upward position 
in order for it to work in a standalone.
(If you can prove me wrong on this
please proceed!  I would love to see
a work around that really works!)

(This seems a bit crazy as it impacts the 
entire stack’s layout unless one planned 
for it at the very beginning of one’s design.
Most people wouldn’t do as this seems to 
be only an LC thing not really found in
other environments.)

Does anyone have a nice routine which
will compensate for the change in layout
by moving all other objects farther down?
I thought I saw a mention this before.

Thanks in advance,

Rick
___
use-livecode mailing list
use-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: Radio Buttons on multiple cards

2018-11-17 Thread Phil Davis via use-livecode
Hmmm. Here is what I tried, and the hilites 'stick' across all cards in 
the stack:

- create stack
- add 2 radio buttons
- group them
- set the sharedHilite of each radio to true
- add another generic button to the card
- group the newest button with the group of radios
- make new card
- place that last group on card 2

Result:
Radio hilites stick across both cards

I'm not sure why your experience would be different than this. Do you 
have any scripts that fiddle with the radio hilites?


Phil


On 11/17/18 8:08 AM, Peter Bogdanoff via use-livecode wrote:

Thanks Phil, that did it. I was trying to set the group sharedHilite, which 
can’t be done.

Peter


On Nov 17, 2018, at 3:04 AM, Phil Davis via use-livecode 
 wrote:

Hi Peter,

Set the sharedHilite of each button to true. That'll give you what you want.

Phil Davis


On 11/16/18 9:28 PM, Peter Bogdanoff via use-livecode wrote:

Hi,

A question about LC mechanics:

I have a stack of 10 cards, sharing the same background on each. That 
background group contains a sub group of a 2-button radio set.

When the user selects radio button 2 on any particular card, I want radio 
button 2 of all 10 cards to be also selected. All I see is the button set 
working independently on each card.

I don’t see this universal choice as a button property. Is this to be done by 
scripting?

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

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


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

Re: Radio Buttons on multiple cards

2018-11-17 Thread Peter Bogdanoff via use-livecode
Thanks Phil, that did it. I was trying to set the group sharedHilite, which 
can’t be done. 

Peter

> On Nov 17, 2018, at 3:04 AM, Phil Davis via use-livecode 
>  wrote:
> 
> Hi Peter,
> 
> Set the sharedHilite of each button to true. That'll give you what you want.
> 
> Phil Davis
> 
> 
> On 11/16/18 9:28 PM, Peter Bogdanoff via use-livecode wrote:
>> Hi,
>> 
>> A question about LC mechanics:
>> 
>> I have a stack of 10 cards, sharing the same background on each. That 
>> background group contains a sub group of a 2-button radio set.
>> 
>> When the user selects radio button 2 on any particular card, I want radio 
>> button 2 of all 10 cards to be also selected. All I see is the button set 
>> working independently on each card.
>> 
>> I don’t see this universal choice as a button property. Is this to be done 
>> by scripting?
>> 
>> 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
> 
> -- 
> 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: Bug in how LC handles sentences

2018-11-17 Thread Sannyasin Brahmanathaswami via use-livecode
On 11/16/18 2:38 PM, Tom Glod via use-livecode wrote:
> I just did a test 
>
> "Sentence 1. Sentence 2. Sentence 3. 4 sentences are here."
>
> Recognizes only 3 sentences.
 
Ha! I would *never* get my editors to let a sentence starting with a
number, to go through. It will always come back to me with markup.

"Number at beginning: spell out."

Search for "Can I begin a sentence with a number?"

Of course, it is just a "writer's convention", but it is a strongly
enforced one.

Brahmanathaswami

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


Re: updating to 64bit for Macs: standalones vs stacks opened by a standalone

2018-11-17 Thread Sannyasin Brahmanathaswami via use-livecode
The engine it the only thing that needs to be 64Bit.

The stacks you are downloading as just "documents" that are interpreted
by LC-your menu/engine stack.

BR

On 11/14/18 10:02 AM, Curt Ford via use-livecode wrote:
> I'm assuming the standalone 
> menu app will need to be repackaged with LC 9; is the same true of the 
> downloaded stacks (which were done in LC 7)? Or is the engine in the 
> standalone the only thing that needs to be 64bit?
>
> Curt




___
use-livecode mailing list
use-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: Radio Buttons on multiple cards

2018-11-17 Thread Phil Davis via use-livecode

Hi Peter,

Set the sharedHilite of each button to true. That'll give you what you want.

Phil Davis


On 11/16/18 9:28 PM, Peter Bogdanoff via use-livecode wrote:

Hi,

A question about LC mechanics:

I have a stack of 10 cards, sharing the same background on each. That 
background group contains a sub group of a 2-button radio set.

When the user selects radio button 2 on any particular card, I want radio 
button 2 of all 10 cards to be also selected. All I see is the button set 
working independently on each card.

I don’t see this universal choice as a button property. Is this to be done by 
scripting?

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


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