Re: Quick IDE question

2020-04-29 Thread dunbarx--- via use-livecode
Can you explicitly set the rect of the SE? I do this all the time because I 
have it located on a large vertically oriented monitor adjacent to my main 
screen, and the loc needs to be refreshed now and then depending on other stuff 
I use them for.
Craig


-Original Message-
From: Graham Samuel via use-livecode 
To: How to use LiveCode 
Cc: Graham Samuel 
Sent: Wed, Apr 29, 2020 9:13 am
Subject: Quick IDE question

Since yesterday, running either LC 9.5.1  or 9.6.0 dp4 on a Mac, every time I 
open the Script Editor window, it overfills my screen, so I can’t see the 
bottom of the window. There are no decorations, so I can’t resize or minimise 
the window; and dragging the window by the title bar doesn’t work either. I’ve 
restarted both versions but no joy. Everything else seems to be working 
normally and the other LC windows have decorations.

I don’t believe I’ve ever seen this before. Does anyone know how I can get out 
of it?

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


Re: Three very simple questions

2020-04-28 Thread dunbarx--- via use-livecode
The user guide?
It certainly is searchable. I do it all the time.
Craig


-Original Message-
From: Graham Samuel via use-livecode 
To: How to use LiveCode 
Cc: Graham Samuel 
Sent: Tue, Apr 28, 2020 3:44 pm
Subject: Re: Three very simple questions

Bill, I think you’re right about the Guide not being searchable. I was going to 
point it out myself, but I began to think that I had used up my grumbling 
allowance, or at least I had not much left and needed to use it for other 
things.

Of course the Giude should be searchable!

Graham

Re grumbling - I have always been delighted by the way people on this list come 
to each other’s aid. This ‘invisible college’ is a really essential part of the 
LiveCode experience, I believe. I hope I say ‘thank you’ enough.



> On 26 Apr 2020, at 23:52, prothero--- via use-livecode 
>  wrote:
> 
> Folks:
> I think Graham is doing LiveCode a favor by pointing out some of the ways a 
> newby (even though he isn’t) might get messed up when learning LiveCode. We 
> all get used to various approaches and newbies (even tho Graham isn’t) alert 
> us to impediments for that very vital population of potential or new users.
> 
> One thing that has bugged me is that when I click on the dictionary, I get a 
> nice display of commands, etc, searchable. But when I click on the “Guide” 
> tab, I get what looks like a very informative document. However, if I’m 
> looking for a particular task and want to do a search, there is none. So, it 
> seems to me like a very valuable newby document is crippled by the omission 
> of a very basic feature.
> 
> Or have I just missed something?
> 
> Best,
> Bill
> 
> William A. Prothero
> Santa Barbara, CA. 93105
> http://earthlearningsolutions.org/
> 
>> On Apr 26, 2020, at 12:23 PM, Mark Wieder via use-livecode 
>>  wrote:
>> 
>> On 4/26/20 12:09 PM, Sannyasin Brahmanathaswami via use-livecode wrote:
>>> "globals are evil"
>>> But we use  one array
>>> Global gConfigA
>>> and we stuff it with all manner of "things" including another arrays
>>> it turns about to quite useful
>> 
>> Yes, I do what you and Jacque do as a workaround, of course. I recently 
>> implemented a feature management infrastructure the same way, given the lack 
>> of globally available constants.
>> 
>> on preOpenStack
>> global gFeatures
>> put "feature1,feature2,feature3" into gFeatures
>> end preOpenStack
>> 
>> ...some other stack
>> 
>> global gfeatures
>> if "feature2" is among the items of gfeatures then
>> ...
>> 
>> on closeStackRequest
>> delete variable gFeatures
>> end closestackRequest
>> 
>> great for A/B testing, rolling out new features without messing with 
>> existing code, being able to roll back unwanted or not-working features 
>> after beta testing... and would be so much cleaner if we didn't have to 
>> resort to global variables and remember to put a reference to them in each 
>> place they're referenced...
>> 
>> -- 
>> Mark Wieder
>> ahsoftw...@gmail.com
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Counting unique items in a file

2020-04-27 Thread dunbarx--- via use-livecode
Hi.
You are getting empty because the information returned from the function is an 
array.
"combine " the array with "return and "comma"
Craig


-Original Message-
From: Skip Kimpel via use-livecode 
To: Dan Friedman 
Cc: Skip Kimpel ; How to use LiveCode 

Sent: Mon, Apr 27, 2020 1:52 pm
Subject: Re: Counting unique items in a file

Thanks Dan!

Upon very quick implementation, I am getting empty results back.  I think I
need to play around with this a little bit more but I feel you got me on
the right track.

Thanks again,

SKIP

On Mon, Apr 27, 2020 at 1:34 PM Dan Friedman 
wrote:

> Skip,
>
> Haven't tested, but pope about this...
>
> function getUniqueNames inData,pColumn
>  put "" into uNames
>  set the itemDel to tab
>  repeat for each line l in inData
>    add 1 to uNames[item pColumn of l]
>  end repeat
>
>  return uNames
> end getUniqueNames
>
> You should get back an array keyed by the unique names, and how many
> instances of each one
>
>
> -Dan
>
>
>
> On 4/27/20, 10:25 AM, "use-livecode on behalf of Skip Kimpel via
> use-livecode"  use-livecode@lists.runrev.com> wrote:
>
>    Good afternoon LC'ers,
>
>    I am loading a tab delimited file into a variable and I need to pull
> out
>    all unique names from a certain column (let's say column 10) and count
> how
>    many times that name appears in that column.
>
>    I know there has to be an easy way of doing it.  Every time I try to
> start
>    coding this it get wyyy too long :)
>
>    Simple approach?
>
>    SKIP
>    ___
>    use-livecode mailing list
>    use-livecode@lists.runrev.com
>    Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
>    http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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 format a handler in the use-List?

2020-04-27 Thread dunbarx--- via use-livecode
Jacque.
Came over just fine. I will try to reset the use-list to my business eMail.
Thanks,
Craig


-Original Message-
From: J. Landman Gay via use-livecode 
To: How to use LiveCode 
Cc: J. Landman Gay 
Sent: Mon, Apr 27, 2020 2:34 am
Subject: Re: How do I format a handler in the use-List?

On 4/26/20 2:20 PM, dunbarx--- via use-livecode wrote:
> Try as I might, I cannot format a handler example copied from the SE. The 
> result is always run-on, even though I add spaces and returns where 
> appropriate. The text seems readable when I send, but reverts to a run-on 
> string when I read in the list.
> Why is this so much more difficult than the forum?
> Is AOL the culprit?

Maybe. The list may be expecting different line endings than AOL provides. What 
we usually see 
when people paste here from the SE is a bunch of markup symbols, but the 
carriage returns 
generally come through okay.

Here's a copy/paste test from my LC editor, let's see what happens:

on mouseUp
  hide me
end mouseUp

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

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


Re: Wildcard? replaceText, offset?

2020-04-27 Thread dunbarx--- via use-livecode
You are welcome.
Er, my offering IS a one liner.
Craig


-Original Message-
From: Rick Harrison via use-livecode 
To: How to use LiveCode 
Cc: Rick Harrison 
Sent: Mon, Apr 27, 2020 12:20 am
Subject: Re: Wildcard? replaceText, offset?

Thanks for the suggestions!

I was hoping that perhaps there was a very simple one liner or character that 
would do it for me.

I think I have a solution now.

Rick

> On Apr 26, 2020, at 3:15 PM, dunbarx--- via use-livecode 
>  wrote:
> 
> on mouseUpput offset("(",yourString) into startCharput offset(")", 
> yourString) into endCharput random(999) into char (startChar + 1) to (endChar 
> -1) of yourStringend mouseUp

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


How do I format a handler in the use-List?

2020-04-26 Thread dunbarx--- via use-livecode
Try as I might, I cannot format a handler example copied from the SE. The 
result is always run-on, even though I add spaces and returns where 
appropriate. The text seems readable when I send, but reverts to a run-on 
string when I read in the list.
Why is this so much more difficult than the forum?
Is AOL the culprit?
Craig
___
use-livecode mailing list
use-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: Wildcard? replaceText, offset?

2020-04-26 Thread dunbarx--- via use-livecode
Pay no attention to the previous post, which only dealt with a single integer. 
Sloppy.
THIS old fashioned method works, though:
on mouseUpput offset("(",yourString) into startCharput offset(")", yourString) 
into endCharput random(999) into char (startChar + 1) to (endChar -1) of 
yourStringend mouseUp

Craig

-Original Message-
From: doc hawk via use-livecode 
To: How to use LiveCode 
Cc: doc hawk 
Sent: Sun, Apr 26, 2020 2:41 pm
Subject: Re: Wildcard? replaceText, offset?


On Apr 26, 2020, at 11:24 AM, Rick reasoned

> In the middle-end part of the string I have “(x)” where x represents some 
> integer.
> it could be (4) or (10) or (5) etc.


If you’re certain that this is the only, or even the first, integer, a regular 
expression search and replace or [0-9]+  would  do the trick.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Wildcard? replaceText, offset?

2020-04-26 Thread dunbarx--- via use-livecode
Or, more oil-fashioned, and again assuming that the integer in question is 
always the very first one in parentheses:
on mouseUpput random(99) into char offset("(",yourString) + 1 of yourStringend 
mouseUp
You will get tired of running this after only a few invocations.
Craig

-Original Message-
From: Rick Harrison via use-livecode 
To: How to use LiveCode 
Cc: Rick Harrison 
Sent: Sun, Apr 26, 2020 2:26 pm
Subject: Wildcard? replaceText, offset?

I have a very long string.

In the middle-end part of the string I have “(x)” where x represents some 
integer.
it could be (4) or (10) or (5) etc.

I just want to replace the number inside the () with whatever other number I 
need to.

I have been trying to find an easy way to do this.  Ideally a wildcard 
character like ? or *
would probably do it, but after going through the dictionary and getting lost 
with
filter, matchText, …  I finally decided perhaps one of you could make a better
suggestion.  It seems like this one should be very easy, but it’s not so easy 
if you
don’t do this kind of thing all the time.

Thanks,

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


Re: What is a real?

2020-04-25 Thread dunbarx--- via use-livecode
I am a little confused. I do not sea "real" as a valid LC word, unless the 
dictionary entry for "real number". in the  "synonyms", needs a comma after the 
word "real" in the string "real number".
Craig


-Original Message-
From: Mark Waddingham via use-livecode 
To: How to use LiveCode 
Cc: Mark Waddingham 
Sent: Sat, Apr 25, 2020 1:14 pm
Subject: Re: What is a real?

The ‘is strictly’ operators allow you to detect what the actual internal 
storage type of a value is. Some things generate numbers which are stored as 
int32s but most will store them as doubles - arithmetic operators included.

I don’t know what the docs say about ‘is strictly an integer’ but the operators 
themselves are definitely doing as they should so the docs might need some 
refinement :)

Mark

P.S. The ‘is strictly’ operators were not really added for general use as they 
are tied to internal mechanisms. They were added to help with doing faithful 
export of values (lcVCS way back IIRC).

Sent from my iPhone

> On 25 Apr 2020, at 17:44, Brian Milby via use-livecode 
>  wrote:
> 
> In your initial example, they are all strings.  1.1+0 would be strictly a 
> real.  What is troubling is that I’m seeing that 1+200 is not strictly an 
> integer yet the docs say it should be.
> 
> Thanks,
> Brian
>> On Apr 25, 2020, 12:06 PM -0400, Mark Wieder via use-livecode 
>> , wrote:
>>> On 4/25/20 7:40 AM, Bob Sneidar via use-livecode wrote:
>>> Apparently nothing is a real. Neither is anything strictly a real.
>>> 
>>> put 1 is strictly a real — false
>>> put 1.1 is strictly a real — false
>>> put 1.1 is a real — compilation error
>> 
>> If it helps any (hint: it doesn't) it's the currency of Brazil.
>> You're welcome.
>> 
>> --
>> Mark Wieder
>> ahsoftw...@gmail.com
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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


Re: Groups placed on cards

2020-04-25 Thread dunbarx--- via use-livecode
Peter.
I am intrigued that you have a particular stack where this (standard) behavior 
does not happen. Can you change the group script at each instance? Can you 
change the locs of the controls that comprise it? That sort of thing.
Such a stack might be of real interest to the team.
Craig

-Original Message-
From: Peter Bogdanoff via use-livecode 
To: How to use LiveCode 
Cc: Peter Bogdanoff 
Sent: Fri, Apr 24, 2020 8:22 pm
Subject: Re: Groups placed on cards

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 t

Re: Groups placed on cards

2020-04-24 Thread dunbarx--- via use-livecode
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
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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 dunbarx--- via use-livecode
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. 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
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Scrollbar scale value not showing in Windows

2020-04-22 Thread dunbarx--- via use-livecode
Hi.
I thought this was a bug in the control years ago, until I inadvertently 
stretched it, and the values simply appeared. Eureka! This on a Mac.
Craig


-Original Message-
From: Michael Lew via use-livecode 
To: use-livecode@lists.runrev.com 
Cc: Michael Lew 
Sent: Tue, Apr 21, 2020 11:37 pm
Subject: Scrollbar scale value not showing in Windows

I have a small app that I've written for my lockdown-affected class, and the 
students with Windows can not see the value of 'scale' type scrollbar controls 
that have their showValue property set to true, but the Macs can.  Is there a 
cross-platform trick that I don't know?

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


Re: Visual Effect

2020-04-18 Thread dunbarx--- via use-livecode
Hi.
I never use visual effects, but I think you may need to go to the dictionary.
One thing it says is:
 "The visual effect command affects only navigation within a window. If you 
want to create a transition effect when moving between stacks, use the go...in 
window form of the go command :
visual effect wipe downgo stack Index in window Part 2 -- replaces stack on 
screen
So I think it is a matter of usage. I bet you will find your way through.
Craig

-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Sat, Apr 18, 2020 2:48 pm
Subject: Visual Effect

I’m having trouble wrapping my head around visual effects. I’ trying to hide 
and show stacks using visual effects. 

Consider this in a button:

on mouseUp
  wait 1 second
  set the visible of homeStack() to false 
  lock screen
  set the visible of homeStack() to true
  unlock screen with visual effect reveal down very slow
  breakpoint
end mouseUp

homestack() simply returns the file path of the main stack, which this button 
is on. 

The visual result is indistinguishable from simply showing and hiding the 
stack. 

Bob S

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


Re: Long Standing Issue with the defaultStack

2020-04-18 Thread dunbarx--- via use-livecode
Hi.
I know that doing the simplest things, breathing, going down to the message 
box, can upset the defaultStack. I see this often when trying to change 
properties in open inspector(s).
My example may have been unfair to your issue, because I wound it so tightly 
within a single short handler. There was no room for fiddling around, by you or 
LC.
When one is roaming around the IDE, I think I have seen the same things you 
have.
Craig


-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Sat, Apr 18, 2020 2:35 pm
Subject: Re: Long Standing Issue with the defaultStack

Not sure at this point. When I open a sub stack called “Devices” (or any sub 
stack) of my main stack “Forms Generator” and I enter “put the defaultStack” in 
the message box, I get “Forms Generator”. 

If I put the command “put the defaultStack” in the last line of the openStack 
handler of stack devices, I get “Devices”. 

Right afterwards, if I enter “put the defaultStack” in the message box, I get 
“Forms Generator” again! 

Not entirely sure what is doing it. Had the same issue with another much 
simpler stack. If I went invisible to a database setup stack, then went back to 
the stack that called it, the defaultStack remained the database setup stack, 
and THAT wasn’t even a sub stack! 

Until I can figure out what is causing it, I cannot trust the defaultStack. 

Bob S


> On Apr 18, 2020, at 9:53 AM, dunbarx--- via use-livecode 
>  wrote:
> 
> Bob.
> I make a new stack "XXX", and a substack "YYY", and save the lot. To be sure, 
> I quit LC and open "XXX" from the desktop.
> There is a single button on "XXX" that:on mouseUp  go stack"yyy"answer the 
> defaultStackend mouseUp
> I get "YYY"
> What are you seeing?
> Craig

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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 Standing Issue with the defaultStack

2020-04-18 Thread dunbarx--- via use-livecode
Bob.
I make a new stack "XXX", and a substack "YYY", and save the lot. To be sure, I 
quit LC and open "XXX" from the desktop.
There is a single button on "XXX" that:on mouseUp   go stack"yyy"answer the 
defaultStackend mouseUp
I get "YYY"
What are you seeing?
Craig

-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Fri, Apr 17, 2020 7:19 pm
Subject: Long Standing Issue with the defaultStack

Hi all. 

I think I have stumbled across what appears to be a bug. When I open a sub 
stack from a main stack script, the main stack remains the defaultStack. This 
is causing any number of issues with me. I have a closeStackRequest handler for 
instance that auto saves the stack. It never gets triggered because the 
closeStack message never gets sent to it! 

If I open a stack, shouldn’t THAT STACK become the default, barring modal or 
system stacks? 

MacOS Community 9.5.1

Bob S

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


Re: LiveCode useless seems to be Junk

2020-04-12 Thread dunbarx--- via use-livecode
Richmond.
I was going to lay into you, until I saw that "useless" was actually "use-list"
Close one.
Craig


-Original Message-
From: Richmond via use-livecode 
To: Skip Kimpel via use-livecode 
Cc: Richmond 
Sent: Sun, Apr 12, 2020 2:12 pm
Subject: LiveCode useless seems to be Junk

This is a real pain-in-the-bum, but Thunderbird has recently started 
marking posts from
the Use-list as junk.

I wonder if anyone knows whay, and whether there is something that can 
be done: either at my end, or server-side?

Richmond.

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


Re: Disabled objects semi translucent??

2020-03-26 Thread dunbarx--- via use-livecode
Bob.
Yep, disabled objects are translucent. The default blendLevel is 0, so no help 
there.
You can fool around with the backColor, of course.
Craig



-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Thu, Mar 26, 2020 11:46 am
Subject: Disabled objects semi translucent??

Hi all. 

I’m noticing (for the first time it seems) that disabled objects are 
semi-transparent! Is this intentional?? This means any background pattern I set 
for the card shows through the disabled objects! Boo! 

Bob S

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


Re: DataGrid question...

2020-03-24 Thread dunbarx--- via use-livecode
I am with Bob on this.
Oftentimes, just out of stubbornness, I will try to create a "native" solution 
to some problem. Native here means that I try to force, bend, cajole, whatever, 
the built-in functionality of LC to make an effect the way I want it. The 
stubbornness comes from trying to be as lean a possible.
All that when, say, one more field placed in the right spot, and acting nicely 
will do the same thing. And usually with far less management and with far 
smaller scripts.
I am trying to get better.
Craig


-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Tue, Mar 24, 2020 5:21 pm
Subject: Re: DataGrid question...

I did something along these lines some time ago. I needed check boxes to the 
left of a data grid that scrolled with the grid but remained visible.

Yes your idea of a second object that scrolls with the data grid is the way to 
go. There is a message that gets sent to a data grid called scrollBarDrag. Trap 
for that then scroll your other object accordingly.

Bob S


On Mar 24, 2020, at 2:12 PM, Paul Dupuis via use-livecode 
mailto:use-livecode@lists.runrev.com>> wrote:

Has anyone come up with a way to configure a DataGrid (LC9) so that the left 
most column remains visible when the other columns are scrolled horizontally?

Or is the only way to to do this is to have a separate field to the left of the 
DataGrid that holds the left column?

Anyone solved this already?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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't download 6.3.1

2020-03-23 Thread dunbarx--- via use-livecode
Glad to hear it.
But it was from the website that I could not find the version you mentioned. 
Doesn't matter, though.
Craig


-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Mon, Mar 23, 2020 3:56 pm
Subject: Re: Can't download 6.3.1

Okay so downloading from the updater failed twice. Going to the website and 
downloading from there succeeded. 

Bob S


> On Mar 23, 2020, at 12:28 PM, Bob Sneidar via use-livecode 
>  wrote:
> 
> Sorry 9.6 dp3 brain fart
> 
>> On Mar 23, 2020, at 12:24 PM, dunbarx--- via use-livecode 
>>  wrote:
>> 
>> Bob.
>> 6.1.3?
>> I do not see 6.3.1 as an option.
>> Craig
>> 
>> 
>> -Original Message-
>> From: Bob Sneidar via use-livecode 
>> To: How to use LiveCode 
>> Cc: Bob Sneidar 
>> Sent: Mon, Mar 23, 2020 2:14 pm
>> Subject: Can't download 6.3.1
>> 
>> I am getting Error downloading Livecode 6.3.1. It gets all the way through 
>> the download then throws the error. 
>> 
>> Bob S
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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't download 6.3.1

2020-03-23 Thread dunbarx--- via use-livecode
Bob.
6.1.3?
I do not see 6.3.1 as an option.
Craig


-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Mon, Mar 23, 2020 2:14 pm
Subject: Can't download 6.3.1

I am getting Error downloading Livecode 6.3.1. It gets all the way through the 
download then throws the error. 

Bob S


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


Re: Tab In Field

2020-03-19 Thread dunbarx--- via use-livecode
A bit of LC lore from the dictionary:

If the user presses the  key while editing a field, normally the
insertion point moves to the next control whose traversalOn property is
true. If the tabStops property is not empty, the user can enter tab
characters in the field. Each time the Tab key is pressed, the insertion
point moves to the next tab stop on the current line.

Craig


-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Wed, Mar 18, 2020 6:35 pm
Subject: Re: Tab In Field

NVM! Set the tabstops to empty! Shoutout to revNavigator by Geoff Canyon who 
once again saves the day! 

Bob S


> On Mar 18, 2020, at 15:13 , Bob Sneidar via use-livecode 
>  wrote:
> 
> This is probably something really simple, but I have two fields whose 
> properties so far as I can tell are exactly the same, but if I tab in one 
> field it inserts a tab, and if I tab the other field it focuses on the next 
> field! 
> 
> Bob S


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


Re: Finding words with diacriticals

2020-03-15 Thread dunbarx--- via use-livecode
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:



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


Re: Stacks and Custom properties

2020-03-10 Thread dunbarx--- via use-livecode
Sure. Any object that has an inspector, and that means everything, can hold 
custom properties. Open the stack inspector and check it out.
The trick is to know where to place these things. It depends on what is going 
to need them. In a sense, you might think they ought to fall into some sort of 
"message hierarchy", but since they are always explicitly referenced, this is 
not strictly true. You generally place them according you your own sense of 
structure.
Craig


-Original Message-
From: Kaveh Bazargan via use-livecode 
To: How to use LiveCode 
Cc: Kaveh Bazargan 
Sent: Tue, Mar 10, 2020 6:39 am
Subject: Re: Stacks and Custom properties

Absolutely. I keep most of my variables in stack custom properties.

On Tue, 10 Mar 2020 at 10:36, Richmond via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Can a stack have custom properties?
>
> Richmond.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies  • Twitter
 • LinkedIn

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Diagnosing a crasher (was Re: Quality, reputation, and improving both)

2020-02-21 Thread dunbarx--- via use-livecode
All.
It did just occur to me that ALL my crashes occur when the SE is open. Never 
just playing with the stack. I am trying to remember now whether I am modifying 
code or not when the crash occurs. The problem, (actually the beauty, of 
course) of LiveCode is that one can jump in a and out of the SE rapidly as one 
develops.
 I will have to pay more attention.
Aha.
Craig


-Original Message-
From: J. Landman Gay via use-livecode 
To: How to use LiveCode 
Cc: J. Landman Gay 
Sent: Fri, Feb 21, 2020 3:24 pm
Subject: Re: Diagnosing a crasher (was Re: Quality, reputation, and improving 
both)

On 2/21/20 2:44 AM, Richard Gaskin via use-livecode wrote:
> J. Landman Gay jacque wrote:
>  > We're about to submit the iOS app now and my testers have had several
>  > intermittent crashes we can't repeat, even though I built that one
>  > with 9.5.1 stable. I submitted crash logs but the team could only
>  > repeat the problem once and there's no real recipe. How
>  > would you trace something like that?
> 
> Only iOS or in development too?

Never in the IDE, frequently in the iOS standalone, sometimes in the Android 
app. It seems to 
depend on how long you use the app. I have never had a crash because I do unit 
testing and then 
quit. The testers pound on it hard and they get most of the crashes because 
they're at it for 
hours. On the other hand, my client took the Android app to a trade show and 
demo'ed it for 8 
hours a day and never crashed. So maybe it's device-dependent? Who knows. My 
primary tester has 
a budget Moto phone, my client has a Pixel 2. That's why I'm thinking it may be 
memory-related.

> 
> I'd consider running a logger, but if it's not merely intermittent but also 
> rare, the challenge 
> is that a logger will slow things down a little bit while you're working, 
> writing giant log 
> files that most of the time aren't needed.

Both intermittent, not reproducible on demand, and never consistent. A logger 
would probably be 
difficult to deal with on a mobile device, but more importantly, it could only 
tell us what 
actions the user took before the crash. Since we've tried repeating the same 
actions many times 
without any problem, there's really nothing to point a finger at.

> 
>  > It feels like a memory leak to me but that could happen anywhere in
>  > the app. Wherever it is, it goes back a ways.
> 
> How far back?  In which version did you first start seeing this?

The earliest build I did was in 9.0-something but the testers never got the 
mobile app until I 
built with 9.5.1 so I'm not sure. I should have said "goes back at least to 
9.5.1."

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


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


Re: Diagnosing a crasher (was Re: Quality, reputation, and improving both)

2020-02-21 Thread dunbarx--- via use-livecode
Curry.
We are all fortunate in that you found the culprit in a single command in a 
line of code.
It crashes LC 9.5.1 in Mac OS. If I change the second parameter (tDel) to a 
single char, all is well,
The issues I am having with my project occur in random places in different 
handlers at random times.
This is not stopping me. Saving often allows me to forge ahead, with good 
results. Been doing this for at least two years.
Craig

-Original Message-
From: Curry Kenworthy via use-livecode 
To: use-livecode 
Cc: Curry Kenworthy 
Sent: Fri, Feb 21, 2020 1:55 pm
Subject: Re: Diagnosing a crasher (was Re: Quality, reputation, and improving 
both)


Chiming in again since it dovetails with today's work:

Crashing bugs (and others) sometimes require a missing 
factor/context/detail in the original real-world project that is tricky 
to reproduce in independent test stacks. You have to compensate for that.

I filed this crasher today, but had to use a slightly more "extreme" 
example compared to the original real-project-crasher to get 100% 
reliable open-click-crash independent test stack:

(Save work before running)

https://quality.livecode.com/show_bug.cgi?id=22586

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


Re: Diagnosing a crasher (was Re: Quality, reputation, and improving both)

2020-02-20 Thread dunbarx--- via use-livecode
Richard.
 I will keep a eye out to see if something I do or some particular section of 
code which causes a crash. 
I have no issue with sending you my stack; it is only for internal use. But 
there are many handlers in many controls on many cards, all in a mainStack and 
a handful of substacks. I do feel, though, that the problem occurs when 
handlers in the mainStack are being worked on.
So I am fascinated; how would you even start? It isn't one handler that causes 
the problem. You would not even know how to use the thing, and therefore could 
not really put it through its paces.
I feel this would be a waste of your time, and though the offer is priceless, I 
have always felt that, in particular, your time is far more priceless.
Craig

-Original Message-
From: Richard Gaskin via use-livecode 
To: use-livecode 
Cc: Richard Gaskin 
Sent: Thu, Feb 20, 2020 9:08 pm
Subject: Diagnosing a crasher (was Re: Quality, reputation, and improving both)

dunbarx wrote:

 > Richard wrote:
 >> Crashers are of course serious, but the good news is that you're only
 >> seeing it in one project.  Feel free to email me directly if you're
 >> in a position to allow me to review the errant code, and I'll see
 >> what we can do to both find a workaround to keep your progress moving
 >> along well, and submit a report for the underlying cause once we find
 >> it. This happens all over the place, and seems to occur only after
 >> the stack has been fiddled with for a while.
 >
 > This happens all over the place, and seems to occur only after the
 > stack has been fiddled with for a while.

Apparently I was mistaken.  When I read:

  "I must add that I am working mainly on a single project when this
    happens, and am conditioned to save often. The other projects I
    have currently do not exhibit this at all, though that may be
    simply due to the fact that I am involved in them much less
    intensely.
    I suppose it is less worrisome that this is a problem in only a
    single project, than if it happened here and there, everywhere.

...I got the impression that it was a problem in only one single 
project, less worrisome than if it happened in others.

Do you see a pattern to the crashes that might lead to a recipe?


 > I cannot imagine that anything can be gleaned from the code base,
 > which is 9000 lines of straight LC, with only a smattering of
 > printing, printing to PDF, creating text files and reading and writing
 > to them.

Software is code. I already have the engine code.

I'm of the opinion that crashers are something that ideally should never 
happen in any scripting language.  So even if there's something we can 
change in your code to eliminate the crash, I'd still submit a bug 
report to see if a more graceful degradation is possible.

You're not obliged to accept the help.


 > In fact, none of those "outside LC" gadgets have ever caused a crash.

That may be useful diagnostic info.  What is an "'outside LC' gadget"?


 > The bugaboo is inside somewhere; I do not believe it is something I
 > wrote.

If you wrote nothing no crash would occur. :)

I'm not interested in seeking blame, only in seeking solutions.  And as 
I've said above, if there needs to a be any sort blaming we can always 
blame crashes on the engine.  So even if we find a workaround in which 
we change your script to stop the crash, that it resulted in a crash and 
not an error dialog implies an opportunity to further refine LC's 
exception handling.  And along the way you'd see the end to a 
long-standing crasher that's been interrupting your workflow.


 > Can I say "bugaboo" which is not a bug, but rather something that just
 > bugs me?

Sure, feel free to say anything you like.  But to me, any crash in any 
scripting language is a serious issue that merits further diagnosis.

If I can help diagnose this one I'd be happy to lend a hand.

-- 
  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: Quality, reputation, and improving both (was Re: text copied form LC generated PDF, WTF?)

2020-02-20 Thread dunbarx--- via use-livecode


Crashers are of course serious, but the good news is that you're only 
seeing it in one project.  Feel free to email me directly if you're in a 
position to allow me to review the errant code, and I'll see what we can 
do to both find a workaround to keep your progress moving along well, 
and submit a report for the underlying cause once we find it.
Richard.
This happens all over the place, and seems to occur only after the stack has 
been fiddled with for a while. I cannot imagine that anything can be gleaned 
from the code base, which is 9000 lines of straight LC, with only a smattering 
of printing, printing to PDF, creating text files and reading and writing to 
them.
In fact, none of those "outside LC" gadgets have ever caused a crash. The 
bugaboo is inside somewhere; I do not believe it is something I wrote.
I have seen this in my other projects. They are not free of this issue. They 
just are not worked as hard,
Can I say "bugaboo" which is not a bug, but rather something that just bugs me?
I save often, and thereby save myself a lot of trouble.
Craig


-Original Message-
From: Richard Gaskin via use-livecode 
To: use-livecode 
Cc: Richard Gaskin 
Sent: Thu, Feb 20, 2020 2:57 pm
Subject: Quality, reputation, and improving both (was Re: text copied form LC 
generated PDF, WTF?)

dunbarx wrote:

 > Several threads on the forum have bemoaned what is labeled an
 > overarching bug issue in LC.
...
 > I am really only concerned that LC not get a reputation for being
 > unstable.

Most of us share that concern.  To assess the issue soberly compels us 
to examine the nature and sources of reputation.

Reputation is only partly a reflection of actual technical fitness. The 
rest is a mix of factors that lie far outside of computer science, into 
the realms of psychology, sociology, and political science.

This thread is a good example:  What might have seemed at first like a 
bug in LC turned out to be a limitation inherent in the nature of PDF 
itself.

On the forums we see a another, with surprising frequency:  when the 
behavior of a script is not understood, the poster will sometimes 
surmise that the cause is somehow file format corruption. Many cases 
turn out to be just syntax errors, and IIRC few or none of those have 
turned out to be file format corruption.

We see a similar pattern with the documentation: many posts point to a 
need for additional information being added to the docs, with 
recommendations for learning basics linking to any of a wide range of 
resources spread out across the web, but on further examination we find 
that the fairly comprehensive 655-page User Guide included with the 
install hadn't yet been consulted at all.


None of this is to suggest that LiveCode is the world's first 
million-line code base that's completely bug-free.

But neither is it a roach motel when we consider the scope and 
complexity of the system with common metrics like bugs/kloc.


In the vast gulf between needlessly contentious allegations of 
"apologists" at one extreme and "Henny Pennys" on the other is a middle 
ground where meaningful product improvement can actually happen:

- Let questions be questions:  When an unexpected outcome is observed, 
we can keep an open mind about possible causes until the issue is 
diagnosed.  If we keep telling new users in advance that every 
unexpected outcome is a bug in LC they'll eventually believe it, even in 
the many cases where that isn't true.

- Let learning happen right in the box: We are blessed with a great many 
contributions from community members all across the web.  But to be 
clear, many of these predate the expanded documentation effort the team 
undertook several versions ago.  Moreover, those written after LC 
adopted an open source workflow missed the opportunity for greater 
readership, keeping them in a relatively small corner of the 
possibly-discoverable web rather than submitting them to the core docs 
every user is directed to right in the Help menu.  The docs are good, 
and can always be made even better.  We can help. Of course we want to 
see as much LC info everywhere, but core basics might just as well be in 
the box, and we do a good service to the learner to let them know when 
they already are.

- Let pre-release builds realize their value:  use them, whenever 
practical.  Putting off trying a new version until after Stable is the 
one choice that guarantees any issues affecting your specific work won't 
be fixed in that version.  We know from our own experiences and decades 
of industry literature that the earlier in the process bugs are 
identified, the less impact they have, and thus the total systemic cost 
to address them is much lower.


These are just suggestions, and certainly not any attempt at 
establishing any sort of "rules".  I have no authority to require anyone 
to do anything, nor would I even try, as I understand that from time to 
time there can be good reason to ignore each of these, and any other 

Re: text copied form LC generated PDF, WTF?

2020-02-18 Thread dunbarx--- via use-livecode
@Curry, mainly.
The easy one. WTF has lost most of its bite due to simple continued usage. As 
Lenny Bruce noted 60 years ago, if you use a bad word often enough, it loses 
its badness.
The hard one. Several threads on the forum have bemoaned what is labeled an 
overarching bug issue in LC. There have been calls for a complete halt to 
development until most of the existing ones are squashed. For my part, I only 
notice that LC 9x crashes intermittently, though regularly. I must add that I 
am working mainly on a single project when this happens, and am conditioned to 
save often. The other projects I have currently do not exhibit this at all, 
though that may be simply due to the fact that I am involved in them much less 
intensely.
I suppose it is less worrisome that this is a problem in only a single project, 
than if it happened here and there, everywhere. At least I tell myself that.
I am really only concerned that LC not get a reputation for being unstable. 
That would turn off new users long before they ever actually experienced such a 
thing.
Craig


-Original Message-
From: Curry Kenworthy via use-livecode 
To: use-livecode 
Cc: Curry Kenworthy 
Sent: Tue, Feb 18, 2020 5:29 pm
Subject: Re: text copied form LC generated PDF, WTF?


 > Not to forget SpreadLib. ;)

Since you mention it, SpreadLib is not forgotten at all! Proud that 
SpreadLib was first, and is best, of its type. SpreadOut, especially, 
has come a long way since last public release. Looking forward very much 
to that update.

Most addons have progressed with features and fixes privately, and are 
waiting for official release, but releases take some time in themselves, 
and client deadlines always have to come first. We have some clients 
here that could vouch for both parts of that statement. :)

(I'm physically handicapped with some taxing health limitations, thus my 
active time is finite, determined by actual daily energy/strength and 
endurance, without anywhere near as much choice or freedom over my 
remaining time as most people take for granted. So clients get heavy 
priority, but addons are never forgotten and the work continues. Nor is 
this list ever forgotten, although I can't afford to be very vocal here 
beyond the occasional quick joke or brief comment. Mostly I'm a reader! 
Not by choice.)

LC's "infinite bugs" increasing in tempo since LC7 and frequent breaking 
changes have outpaced me at times, providing an ever-shifting foundation 
for building upon. Breaking things is usually easier and faster than 
cleaning up. In fact, I've devoted an amazing amount of my entire career 
to finding, documenting, and developing high-quality workarounds for 
these IDE and engine bugs - and it seems that we're just getting started.

But here's the good news - I'm adjusting strategies and tactics to that 
reality, having finally accepted it as the norm to expect now and 
perhaps forever. So I'm also developing new tools to gain the upper hand 
again in this Age of IDE Bugs, and therefore confident that I will 
indeed have the last laugh on this subject of my delayed progress (ha 
ha) and get addon updates back on a much more regular schedule, among 
other things that are likely to cause a big splash - perhaps even shake 
up the industry a bit! :D

Another high priority for update release this year is WordReport - quite 
a lot of inquiries lately, which are pushing it toward the top of my 
list. Yep, it's coming, and it's going to reach new heights. Thanks to 
all for your feedback and support! Exciting things are on the way.

--

About the subject of copying and pasting to/from LC, here's a current 
bug that's easy to workaround, but also easy to forget to workaround - 
and can cause mayhem:

https://quality.livecode.com/show_bug.cgi?id=22172

--

BTW, it's a tad difficult to completely ignore "WTF" posts, and my post 
here was a joke on two levels, the first of which Klaus immediately 
acknowledged.

But the second level had a more serious undercurrent, and it's why I 
posted a reply in the first place: is WTF considered completely 
squeaky-clean and shock-free nowadays? Has it, along with its component 
words, been completely sanitized for all ages and audiences? And if so, 
then logically: why unfailingly abbreviate, without ever using the 
component words every now and then for variety, and also why not use 
something a little more risque and exciting than a plain-old 
unprovocative WTF? :)

Thus the WTF file format, since it is so often mentioned here lately.

Take care and enjoy coding, everyone

Best wishes,

Curry Kenworthy

WordLib: Take charge of MS Word and OpenOffice documents
SpreadLib: "Excel-lent" spreadsheet import/export for LC
http://livecodeaddons.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: revprintfield and RIGHT tabalign?

2020-02-14 Thread dunbarx--- via use-livecode
So I tried it. Works fine, though you have to use gadgetry to print only the 
field of interest.
on mouseUpopen printing to pdf ("/users/yourPathNameHere/desktop/xxx"& 
".pdf")print this cdclose printingendmouseUp
Craig


-Original Message-----
From: dunbarx--- via use-livecode 
To: use-livecode 
Cc: dunbarx 
Sent: Fri, Feb 14, 2020 11:52 am
Subject: Re: revprintfield and RIGHT tabalign?

This is done with "revPrintField", where it is only in the print dialog that I 
can divert the process to make a PDF.
What is the story with "open printing to "PDF"...?


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Fri, Feb 14, 2020 11:17 am
Subject: Re: revprintfield and RIGHT tabalign?

Hi Richard,

added a test stack to the report and some more infos.

> Am 14.02.2020 um 17:09 schrieb Richard Gaskin via use-livecode 
> :
> 
> Klaus wrote:
> 
> > Hm, I applied the fix here, but now the last column is completely GONE
> > (not visible in the printout)!?
> Hmmm...It worked when I tested here, but I can imagine a scenario where the 
> tabstops may result in a boundary outside the bounds of the field, such as if 
> your field is wider than the field used in the printed page.
> For that you may need to add one last tabstop to make sure right-aligned text 
> isn't rendered outside the object's rect.

OK, will try that!

> > And if the TABALIGN was not repected, why did the columns (NOT the
> > TOTAL Line) appear correctly aligned?
> 
> tabAlign is like textAlign but for a given column (tabstop), not to be 
> confused with tabStops, which govern the boundaries of columns.

Go figure! :-D

> Left alignment is the default so those columns render well without 
> modification.

Yes, but as you can see in my picture, you DID take a look, didn't you 8-),
the third columns ARE in fact right aligned but only the TOTAL... lines are not!

> -- 
> Richard Gaskin

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: revprintfield and RIGHT tabalign?

2020-02-14 Thread dunbarx--- via use-livecode
This is done with "revPrintField", where it is only in the print dialog that I 
can divert the process to make a PDF.
What is the story with "open printing to "PDF"...?


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Fri, Feb 14, 2020 11:17 am
Subject: Re: revprintfield and RIGHT tabalign?

Hi Richard,

added a test stack to the report and some more infos.

> Am 14.02.2020 um 17:09 schrieb Richard Gaskin via use-livecode 
> :
> 
> Klaus wrote:
> 
> > Hm, I applied the fix here, but now the last column is completely GONE
> > (not visible in the printout)!?
> Hmmm...It worked when I tested here, but I can imagine a scenario where the 
> tabstops may result in a boundary outside the bounds of the field, such as if 
> your field is wider than the field used in the printed page.
> For that you may need to add one last tabstop to make sure right-aligned text 
> isn't rendered outside the object's rect.

OK, will try that!

> > And if the TABALIGN was not repected, why did the columns (NOT the
> > TOTAL Line) appear correctly aligned?
> 
> tabAlign is like textAlign but for a given column (tabstop), not to be 
> confused with tabStops, which govern the boundaries of columns.

Go figure! :-D

> Left alignment is the default so those columns render well without 
> modification.

Yes, but as you can see in my picture, you DID take a look, didn't you 8-),
the third columns ARE in fact right aligned but only the TOTAL... lines are not!

> -- 
> Richard Gaskin

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: revprintfield and RIGHT tabalign?

2020-02-14 Thread dunbarx--- via use-livecode
Klaus.
Yep, I get the same thing you did as pdf.
Craig

-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Fri, Feb 14, 2020 8:24 am
Subject: Re: revprintfield and RIGHT tabalign?



> Am 13.02.2020 um 20:30 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi friends,
> 
> I am trying to print a field, but when it comes to a right aligned TAB
> things go awray in the resulting PDF/printout.
> 
> LC 9.5.1, macOS 10.14.6
> 
> Please take a look here:
> 
> LC field on the right, PDF on the left.
> At the bottom the TAB align and TAB stops of the field to be printed
> 
> Please note the unwanted wrapping of the first two "TOTAL für..." lines!?
> But it only wraps if the text exceeds a certain length? 
> No wrapping if I only supply the actual SUM in the TOTAL line. 
> What am I missing?
> 
> Thanks for any hints!

addition: Everything looks just fine if I -> print this cd
Completely puzzled...


--
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: revprintfield and RIGHT tabalign?

2020-02-13 Thread dunbarx--- via use-livecode
Sssh.
OK.
Craig


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Thu, Feb 13, 2020 3:50 pm
Subject: Re: revprintfield and RIGHT tabalign?

Hi Craig,

> Am 13.02.2020 um 21:43 schrieb dunbarx--- via use-livecode 
> :
> 
> Klaus.
> I made a test stack and printed to pdf. Mine had a long string at the right 
> side of one line.
> Everything came out fine. Mac 10.13.4, LC 9.5.1

h... :-/

> Why are you not in the forum, where it is so easy to post screen shots?

Sometimes I need a quick answer, which is not always the case in the forum.
OTH, I often do not get a helpful answer here on the list!

P.S.
Maybe I can send you the my stack privately and you send me the PDF back?

> Craig

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: revprintfield and RIGHT tabalign?

2020-02-13 Thread dunbarx--- via use-livecode
Klaus.
I made a test stack and printed to pdf. Mine had a long string at the right 
side of one line.
Everything came out fine. Mac 10.13.4, LC 9.5.1
Why are you not in the forum, where it is so easy to post screen shots?
Craig


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Thu, Feb 13, 2020 2:30 pm
Subject: revprintfield and RIGHT tabalign?

Hi friends,

I am trying to print a field, but when it comes to a right aligned TAB
things go awray in the resulting PDF/printout.

LC 9.5.1, macOS 10.14.6

Please take a look here:

LC field on the right, PDF on the left.
At the bottom the TAB align and TAB stops of the field to be printed

Please note the unwanted wrapping of the first two "TOTAL für..." lines!?
But it only wraps if the text exceeds a certain length? 
No wrapping if I only supply the actual SUM in the TOTAL line. 
What am I missing?

Thanks for any hints!


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: Nested numeric lists that include number of parent list item

2020-02-11 Thread dunbarx--- via use-livecode
Trevor.
I am helping You??
I don't see anything in the dictionary about progressive indentation. Never 
used any of these, but it looks like you have to roll your own.
Craig


-Original Message-
From: Trevor DeVore via use-livecode 
To: How to use LiveCode 
Cc: Trevor DeVore 
Sent: Tue, Feb 11, 2020 4:31 pm
Subject: Nested numeric lists that include number of parent list item

Hi all,

I am working with nested lists in LiveCode using listStyle and listDepth.
When using a "numeric" listStyle I get this output in a field:

1. asdf ajsdf asf
      1. adsfasdfasdf
              1. asdfasdfasdf

I would like to get the following output but I'm not seeing a property that
enables it. Am I missing something or is not possible using listStyle and
listDepth?

1. asdf ajsdf asf
      1.1. adsfasdfasdf
              1.1.1. asdfasdfasdf

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


Re: the fontnames and special names like (Menu)

2020-02-04 Thread dunbarx--- via use-livecode
Here is some unhelpful information from the dictionary:
The list of font names includes a set of special-purpose names which 
automatically select the matching font for the platform. You can use these to 
request "the font used for buttons" without having to hard-code 
platform-specific font names. These fonts are:   
   - (Text) - the font used for fields and other controls with editable content 
   - (Menu) - the font used for menu items
   - (Message) - the font used for buttons, labels and other communication from 
the app
   - (Styled Text) - the font used by default for rich text
   - (System) - the font for controls not covered by another category
   - (Tooltip) - the font used for displaying tooltips
   - (Default) - selects one of the UI fonts automatically based on the control 
type


-Original Message-
From: Paul Dupuis via use-livecode 
To: How to use LiveCode 
Cc: Paul Dupuis 
Sent: Tue, Feb 4, 2020 12:28 pm
Subject: the fontnames and special names like (Menu)

The fontnames() function returns certain special font names like:
(Default)
(Styled Text)
(Menu)
(Text)
(Message)
(Tooltip)
(System)

How do I find out what fonts these really are on a given platform. The 
effective textFont does not seem to work.

For example the following code on Windows 10,

set the textFont of fld 1 to "(Text)"
put the effective textFont of fld 1

outputs "(Text)" when I would have expected it to output "Segoe UI"

Is this a bug?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Automating User Input

2020-02-03 Thread dunbarx--- via use-livecode
Bob may have much of what you are asking for.
Many years ago I made a form filling stack. The user clicked on various 
controls an/or images, and either a popup of available options or a dialog 
appeared. It worked as if each image, say, was its own popUp. Once the 
selection was made, the user was brought to the next step. If that step 
sequence was not hard-coded, it was left to the user to select that next step.
Not sure about your UI, but this sort of thing is simple to implement in LC.
Craig


-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Mon, Feb 3, 2020 12:28 pm
Subject: Re: Automating User Input

Is this going to be strictly an LC app or are you going to try and use the 
browser in LC? I have functions that "remember" things typed into a field, and 
auto-complete based on what the user types. The weakness is of course that if 
you have words that are very similar, especially at the beginning, you would 
need to type a lot before you ever got to the unique word you were looking for. 

I can modify the script so that hitting the right or left (up or down??) arrows 
will cycle through the matches. 

Bob S


> On Jan 31, 2020, at 16:18 , Peter Reid via use-livecode 
>  wrote:
> 
> I'm writing an app that needs to complete a couple of forms that are being 
> displayed by a browser as if the user was doing it interactively. This is to 
> save the user from having to enter complex medical terms. If the user were to 
> interact directly with the browser, they could press the tab key repeatedly 
> to move from file to field, checkbox to checkbox etc. I'd like my app to do 
> the same tabbing etc. instead of my user who could sit back and watch the 
> form being completed interactively!
> 
> Any idea whether this is possible and if so how?
> 
> Thanks.
> 
> Peter
> --
> Peter Reid
> Loughborough, UK


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Tab Button Colors

2020-01-24 Thread dunbarx--- via use-livecode
Jacque.
You mean from, say,  the card? How would it know to set one or more colors in 
each tab?
Craig


-Original Message-
From: J. Landman Gay via use-livecode 
To: How to use LiveCode 
Cc: J. Landman Gay 
Sent: Fri, Jan 24, 2020 1:13 pm
Subject: Re: Tab Button Colors

It may be inheriting colors from the owner.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 24, 2020 9:40:31 AM Bob Sneidar via use-livecode 
 wrote:

> No I mean that with no foreground or background color set, the hilited tab 
> background is blue and the text of the first tab is green when selected, 
> and the other tabs the text is yellow when selected. Again, it's no big 
> deal it just seems odd.
>
> Bob S
>
>
>> On Jan 23, 2020, at 19:47 , dunbarx--- via use-livecode 
>>  wrote:
>>
>> Hi.
>> If you set the foregroundColor to, say, red, and the backgroundColor to, 
>> say, yellow, the text of the tabs will show one or the other as each tab is 
>> "selected".
>> Is this what you are seeing? Or did you mean that the entirety of the tab 
>> is colored? For me, each tab, when selected, is blue.
>> Craig
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Tab Button Colors

2020-01-23 Thread dunbarx--- via use-livecode
Hi.
If you set the foregroundColor to, say, red, and the backgroundColor to, say, 
yellow, the text of the tabs will show one or the other as each tab is 
"selected".
Is this what you are seeing? Or did you mean that the entirety of the tab is 
colored? For me, each tab, when selected, is blue.
Craig


-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Thu, Jan 23, 2020 6:59 pm
Subject: Tab Button Colors

Hi all. 

I n a tab button on a Mac, for some reason in the IDE, the text of the first 
tab is green and subsequent tabs are red. In a standalone, the text of the 
first button is YELLOW! No colors or effects are applied. 

Obviously not a show stopper, but people are asking me what the significance 
is. I have not found a property where I could change that (which might actually 
be cool!) 

Bob S


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


Re: Apple Mac menubar?

2020-01-21 Thread dunbarx--- via use-livecode
Mark.
Ah. Never knew the name of those.
Craig


-Original Message-
From: Mark Waddingham via use-livecode 
To: How to use LiveCode 
Cc: Mark Waddingham 
Sent: Tue, Jan 21, 2020 12:26 pm
Subject: Re: Apple Mac menubar?

On 2020-01-21 17:22, dunbarx--- via use-livecode wrote:
> @Sean
> What are the "system menu extensions" on the right side of the menubar?
> @Mark W.
> What is a "Mac Status Menu"?

They are the little icons which appear on the right hand-side of the mac
menubar - things like the keyboard selector, bluetooth status,
battery life indicator, wifi status etc.

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Apple Mac menubar?

2020-01-21 Thread dunbarx--- via use-livecode
@Sean
What are the "system menu extensions" on the right side of the menubar?
@Mark W.
What is a "Mac Status Menu"?

Craig


-Original Message-
From: Pi Digital via use-livecode 
To: How to use LiveCode 
Cc: Pi Digital 
Sent: Tue, Jan 21, 2020 11:39 am
Subject: Re: Apple Mac menubar?

Do you possibly mean the System Menu Extensions found on the right of the menu 
bar? If so then that is not currently possible from LiveCode. 

Sean Cole
Pi Digital Prod Ltd

> On 21 Jan 2020, at 16:27, Richard Gaskin via use-livecode 
>  wrote:
> 
> dunbarx wrote:
> 
> > The menubar is fully configurable when LC is in front, but I do not
> > believe it can be so modified when not.
> > Are you just asking if LC is the right tool for such a thing? There
> > must be other gadgets that perform this task.
> 
> LC added an experimental feature for this several versions back, but 
> searching the Dictionary for "menu" yielding nothing useful.
> 
> Anyone here remember the relevant keywords?
> 
> -- 
> 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
___
use-livecode mailing list
use-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: Apple Mac menubar?

2020-01-21 Thread dunbarx--- via use-livecode
Hi.
The menubar is fully configurable when LC is in front, but I do not believe it 
can be so modified when not.
Are you just asking if LC is the right tool for such a thing? There must be 
other gadgets that perform this task.
Craig


-Original Message-
From: Colin Kelly via use-livecode 
To: use-livecode@lists.runrev.com 
Cc: Colin Kelly 
Sent: Tue, Jan 21, 2020 9:44 am
Subject: Apple Mac menubar?

Does anyone know if it’s possible with livecode to add an icon and click 
options to a Mac menubar (the mac menubar at the top of the screen when no 
applications have focus)?

--
Colin Kelly
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: closeControl -- "switchable" ?

2020-01-21 Thread dunbarx--- via use-livecode
Sorry,
I meant "closeControl".
Craig


-Original Message-
From: Sannyasin Brahmanathaswami via use-livecode 

To: How LiveCode 
Cc: Sannyasin Brahmanathaswami 
Sent: Tue, Jan 21, 2020 9:12 am
Subject: closeControl -- "switchable" ?

Using text only script behavior files has advantages and disadvantages. One 
"con" is the possibility of "rapid profileration" of text scripts (behavior, 
model, libraries etc.) 

 Your app could easily become like some horrendous-humongous PHP or JS 
framework with 100's of "dependencies."

I am trying control this by working with my "stories" module/stack, by just 
using two script

model_Story.livecodescript         
    # always "on" like a library/backscript, get stuff of disk
behavior_Story.livecodescript     
    # which is assigned to the stack, handled the UI/UX for stack

This approach requires a lot "Switch cases" as you may be targeting the UI/UX 
of many different groups  on the card or different cards. 

So far I am happy that I am having to  debug  just two scripts to manage 
"everything" 

But I have question on "closeControl" for which there may be many groups on a 
single card

is it "Switchable?"  and can we use it in a single behavior that "looks at"  
many groups on one card?

on closeControl pControl
    switch pControl
        case "homeStory"
            setPref "preferences/modules/portal/story/storyTitle", pStoryTitle
            setPref "preferences/modules/portal/story/storyScene/", sLastScene
        case "storyMenu"
            put empty into fld "storyMenuFld"
        end switch
end closeControl

Of I can hack around and find out if it works. But I am thinking over otherd 
have 
"been here, done that". an have some advice...

We might as well use "on closeCard" 

any thoughts?




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: closeControl -- "switchable" ?

2020-01-21 Thread dunbarx--- via use-livecode
Hi.
"SetControl" doesn't take a parameter, as far as I know, so a switch control 
structure would have to be managed by hand, perhaps looping through all the 
groups (or other controls of interest) on the card that one just navigated away 
from.
Craig



-Original Message-
From: Sannyasin Brahmanathaswami via use-livecode 

To: How LiveCode 
Cc: Sannyasin Brahmanathaswami 
Sent: Tue, Jan 21, 2020 9:12 am
Subject: closeControl -- "switchable" ?

Using text only script behavior files has advantages and disadvantages. One 
"con" is the possibility of "rapid profileration" of text scripts (behavior, 
model, libraries etc.) 

 Your app could easily become like some horrendous-humongous PHP or JS 
framework with 100's of "dependencies."

I am trying control this by working with my "stories" module/stack, by just 
using two script

model_Story.livecodescript         
    # always "on" like a library/backscript, get stuff of disk
behavior_Story.livecodescript     
    # which is assigned to the stack, handled the UI/UX for stack

This approach requires a lot "Switch cases" as you may be targeting the UI/UX 
of many different groups  on the card or different cards. 

So far I am happy that I am having to  debug  just two scripts to manage 
"everything" 

But I have question on "closeControl" for which there may be many groups on a 
single card

is it "Switchable?"  and can we use it in a single behavior that "looks at"  
many groups on one card?

on closeControl pControl
    switch pControl
        case "homeStory"
            setPref "preferences/modules/portal/story/storyTitle", pStoryTitle
            setPref "preferences/modules/portal/story/storyScene/", sLastScene
        case "storyMenu"
            put empty into fld "storyMenuFld"
        end switch
end closeControl

Of I can hack around and find out if it works. But I am thinking over otherd 
have 
"been here, done that". an have some advice...

We might as well use "on closeCard" 

any thoughts?




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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-30 Thread dunbarx--- via use-livecode
Hi.

I have two monitors as well. And I use a key combination and a plug-in to
reset the loc of the very stacks you mentioned, plus the SE. These change
each time I save a stack. 

The point being that I never have a problem saving, only that I have to
reset the loc of the topStack and the others each time I do.

More than worth it to have two monitors, though.

Craig 


-Original Message-
From: Mark Waddingham via use-livecode 
To: How to use LiveCode 
Cc: Mark Waddingham 
Sent: Mon, Dec 30, 2019 12:22 pm
Subject: Re: LiveCode won't recognize my stack

On 2019-12-27 22:51, 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.

Nothing has changed here in any recent version.

> 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

This is most likely because you haven't got the stackFiles property set 
up, or the defaultFolder is not what you are expecting it to be - i.e. 
the engine cannot find the stack with filename "LicenseKey.IW" relative 
to the current folder.

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

The IDE still uses the form of 'answer file' which specifies a 
creator/filetype and an extension. I suspect either one of:

  A) the creator/filetype is actually recognised by more recent versions 
of macOS (i.e. they are ignored completely - I don't recall a report 
against Mojave, but it is entirely possible Catalina no longer supports 
them)

  B) The file has just lost its creator/filetype and thus is being 
filtered out (this can happen if a file is archived via a format which 
doesn't support these attributes, or has transmitted through an FS which 
doesn't).

> How can I open the stack file in LiveCode 9.5.1 without changing the
> name of the file?

Use All Files and select it that way, as you have been doing :)

Warmest Regards,

Mark.

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Table Text Livecode vs .....

2019-12-17 Thread dunbarx--- via use-livecode
Or perhaps post to the forum.
Craig


-Original Message-
From: Pi Digital via use-livecode 
To: How to use LiveCode 
Cc: Pi Digital 
Sent: Tue, Dec 17, 2019 7:13 am
Subject: Re: Table Text Livecode vs .

Hi Terence

This list doesn’t display images in the mail. Perhaps you could provide links 
to the images. 

Sean Cole
Pi Digital Prod Ltd

> On 17 Dec 2019, at 08:31, Terence Heaford via use-livecode 
>  wrote:
> 
> Can someone explain why the text in a livecode table displays more poorly on 
> screen than other native macos apps?
> 
> Here are two screen grabs that display the difference.
> 
> Thanks
> 
> Terry
> 
> 
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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 in the message path: Trapping Mouseup

2019-12-08 Thread dunbarx--- via use-livecode
Hi.
It is hard for me to understand without more info about the case statements. 
But when you have this:
# I click on button "starWidget"
-- nothing happens…hmm, no errors either…
Do you really mean nothing, not even that the:
   put the short name of the target

does not fire?
Craig

-Original Message-
From: Sannyasin Brahmanathaswami via use-livecode 

To: How LiveCode 
Cc: Sannyasin Brahmanathaswami 
Sent: Sun, Dec 8, 2019 2:56 pm
Subject: Groups in the message path: Trapping Mouseup 

I think this a old problem that is re-surfacing. Or else it is known….

9.6 dp1, in the message path different independent groups are not encapsulated.

button "starWidget"
-- has no script
-- is not a part of any group

Stack script:

on mouseup
          put the short name of the target
          put the short name of the target into tTarget
          switch tTarget
                  case(s) # various button names
                  # consolidate all UI actions that not part of a group
                  # to the stack script
          end switch
end mouseup

# the card are several groups,
# each with its own mouse handlers

# I click on button "starWidget"
-- nothing happens…hmm, no errors either…
# start profiling scripts (new trick I found)
# click on button "starWidget"
# stop profiling scripts:
          # Voila! the mouseup was trapped by one the other groups, as if they 
were in the message path.

Is there any way around this? Meanwhile I have to plug into every button 
explicit handlers. Tedious, make debugging painful…

BR







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


Re: How to revoke that bottom pane of the script editor?

2019-12-08 Thread dunbarx--- via use-livecode
Klaus.
Type CMD-F as if you were trying to simply find something. All those lower 
tools will reappear.
Craig


-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Fri, Dec 6, 2019 5:02 pm
Subject: Re: How to revoke that bottom pane of the script editor?

Do you see the two horizontal lines at the bottom of the window? That is the 
handle for those panes. Try dragging it up. If you do not see those, not sure 
what has happened. 

Bob S


> On Dec 6, 2019, at 13:21 , Klaus major-k via use-livecode 
>  wrote:
> 
> Hi all,
> 
> in the script editor we ususally have three panes:
> 1. List of handlers on the left
> 2. The actual script on the right
> 3. At the botton we see the content of variables when debugging etc.
> 
> Now I somehow managed to make the bottom pane disappear 8-), 
> how can I get it back without to quit LC and trash the LC prefs?
> 
> Thanks for any hint!
> 
> 
> 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: Achilles Heel of Livecode

2019-12-03 Thread dunbarx--- via use-livecode
I used Compile-it forever. It was faster than the compiled v.2x HC by orders of 
magnitude.
But, and this is hardly a fair test, I get over 8 million passes per second 
through a repeat loop in LC if I do not tax it overmuch, say, adding 1 to a 
variable on each pass.
The point is, how much more speed can be garnered if a new complier was 
attached to the engine?
Craig


-Original Message-
From: Rick Harrison via use-livecode 
To: How to use LiveCode 
Cc: Rick Harrison 
Sent: Tue, Dec 3, 2019 2:20 pm
Subject: Re: Achilles Heel of Livecode

Try writing a serious arcade game with LiveCode.
Sorry but it just isn’t up to the task as it isn’t fast
enough.

Remember Compile-It for Hypercard?  Perhaps
we need something similar for LiveCode that
would run at standalone creation time, or
whenever we request it for that extra-speed.

I know the system took a big hit with Unicode,
so how about the option to turn it off for programs
requiring super speed?

Just my 2 cents.  :-)

Enjoy your day!

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
___
use-livecode mailing list
use-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 dunbarx--- via use-livecode
The "mouseControl" is very straightforward. The "target" would work just as 
well. In the card script:
on mouseUp  answer the targetend mouseUp

But for a line graphic, you must click right on the line, or the function will 
not work. In other words, the extent of each graphic is the same, but only the 
lines themselves will respond.This solves the problem discussed below, sort of.
Grouping them will not help.
This harkens back to just the opposite problem, discussed a couple of years 
ago, where it was desired that a click somewhere within the "extent" of the 
graphic would trigger an event.
Craig




-Original Message-
From: Pi Digital via use-livecode 
To: How to use LiveCode 
Cc: Pi Digital 
Sent: Mon, Nov 25, 2019 2:01 pm
Subject: Re: How do I select graphics that are on top of each other with 
mousedown?

Put each one in a group control that extends one to the left and the other to 
the right

Sean Cole
Pi Digital Prod Ltd

> On 25 Nov 2019, at 18:19, 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
___
use-livecode mailing list
use-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: Identifying Un-used functions and commands

2019-11-25 Thread dunbarx--- via use-livecode
Jacque,
Ah. You may be right.
So, Steve, which way, or do you need both? The methodology is basically the 
same.
Craig


-Original Message-
From: J. Landman Gay via use-livecode 
To: How to use LiveCode 
Cc: J. Landman Gay 
Sent: Mon, Nov 25, 2019 1:09 pm
Subject: Re: Identifying Un-used functions and commands

I think he wants it the other way around, identifying handlers and 
functions that aren't called by any other handler. I've done this, but only 
one at a time, by searching for the handler name across all open stacks. If 
the only occurrence is the handler itself ("on/function whatever", ) then 
it's unused.

The method here would probably be to get a list of all handlers and 
functions and then do a global search for instances of each. If there's one 
or more that isn't the handler declaration, it's used.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 25, 2019 11:51:14 AM dunbarx--- via use-livecode 
 wrote:

> Hi.
> This was posted a couple of weeks ago, no?
> I suggested then that you could write a short handler that loops through 
> all the scripts in all the controls on all the cards, and isolate words 
> that are not preceded by either "command", "on" or "function". In this way 
> you might see, for example, that "myGadget3" may be present in scripts here 
> and there, but there is no "on myGadget3" anywhere. Then you will have 
> found an unused handler call.
> This may require tweaking. For example, LC will compile, say:
> "on        myGadget3"  -- spaces galore
>
> Craig
>
> -Original Message-
> From: Bob Sneidar via use-livecode 
> To: How to use LiveCode 
> Cc: Bob Sneidar 
> Sent: Mon, Nov 25, 2019 12:29 pm
> Subject: Re: Identifying Un-used functions and commands
>
> Since there is code in the script editor that knows the location of any 
> command or function you right click on, if you found out how they do that, 
> you would be well on your way to developing a way to grok it. Also, GLX2 
> has a "clairvoyance" (Auto-Complete) function that is handler aware. I 
> suspect Mark Wieder developed a method for getting a list of all handlers 
> in a stack that is opened. That would probably help too.
>
> Bob S
>
>
>> On Nov 12, 2019, at 09:12 , Stephen MacLean via use-livecode 
>>  wrote:
>>
>>
>> Hi All,
>>
>>
>> I’m wondering if anyone has a way or code to identify any un-used functions 
>> and commands in a set of stacks?
>>
>>
>> Best,
>> Steve MacLean
>>
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your 
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Identifying Un-used functions and commands

2019-11-25 Thread dunbarx--- via use-livecode
Hi.
This was posted a couple of weeks ago, no?
I suggested then that you could write a short handler that loops through all 
the scripts in all the controls on all the cards, and isolate words that are 
not preceded by either "command", "on" or "function". In this way you might 
see, for example, that "myGadget3" may be present in scripts here and there, 
but there is no "on myGadget3" anywhere. Then you will have found an unused 
handler call.
This may require tweaking. For example, LC will compile, say:
"on         myGadget3"  -- spaces galore

Craig

-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Mon, Nov 25, 2019 12:29 pm
Subject: Re: Identifying Un-used functions and commands

Since there is code in the script editor that knows the location of any command 
or function you right click on, if you found out how they do that, you would be 
well on your way to developing a way to grok it. Also, GLX2 has a 
"clairvoyance" (Auto-Complete) function that is handler aware. I suspect Mark 
Wieder developed a method for getting a list of all handlers in a stack that is 
opened. That would probably help too. 

Bob S


> On Nov 12, 2019, at 09:12 , Stephen MacLean via use-livecode 
>  wrote:
> 
> Hi All,
> 
> I’m wondering if anyone has a way or code to identify any un-used functions 
> and commands in a set of stacks?
> 
> Best,
> Steve MacLean
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: remove DEFAULTMENUBAR?

2019-11-22 Thread dunbarx--- via use-livecode
Hi Klaus. 

I never have worked at all with this group, and was surprised that it was a LC 
stack in the first place. 

So I do not know why one cannot set it to empty, except maybe that something 
inside LC prevents that. 

On a completely tangential note, my defaultMenubar contains ten buttons, the 
first one being button "File", and the last one (after button "help") being 
button "divider". No idea where that button is, or what it does. 

Craig


-Original Message-
From: Klaus major-k via use-livecode 
To: LiveCode Runrev.Com 
Cc: Klaus major-k 
Sent: Fri, Nov 22, 2019 8:34 am
Subject: remove DEFAULTMENUBAR?

Hi friends,

we can:
...
set the defaultmenubar to "name of any group"
...

But when I try to remove the menubar again with 
...
set the defaultmenubar to EMPTY
...
I get an error: Cannot find group (or something)

However I can set the defaultmenubar of a specific stack to EMPTY!?
...
set the defaultmenubar of this stack to EMPTY
...

So how can we remove a defaultmenubar NOT tied to a stack?
What am I missing?


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: Y coordinate for a line of text

2019-11-14 Thread dunbarx--- via use-livecode
I misStated this completely. The point being that no property of the field 
itself should be a factor at all, not its loc or rect, for example. Only the Y 
value of the selectedLine is pertinent.
Glad you have what you need, but I still do not see the value of the 
selectedLoc. This depends on the loc of the field, and otherwise has no 
relationship to the field itself, that is, the Y coordinate within that field.
Craig


-Original Message-
From: Mark Wieder via use-livecode 
To: dunbarx--- via use-livecode 
Cc: Mark Wieder 
Sent: Wed, Nov 13, 2019 11:20 am
Subject: Re: Y coordinate for a line of text

On 11/13/19 8:11 AM, dunbarx--- via use-livecode wrote:
> The selectedLoc will give the loc in window coordinates, not the "local" Y 
> coordinate within the field of interest, which is what I thought you wanted. 
> I cannot imagine what value that would have, since it depends on where the 
> stack window is currently placed.

localLoc()

-- 
  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: Y coordinate for a line of text

2019-11-13 Thread dunbarx--- via use-livecode
Mark,
Yep, that will do the translation. But I am no longer sure what the OP 
originally wanted.
OP?
Craig


-Original Message-
From: Mark Wieder via use-livecode 
To: dunbarx--- via use-livecode 
Cc: Mark Wieder 
Sent: Wed, Nov 13, 2019 11:20 am
Subject: Re: Y coordinate for a line of text

On 11/13/19 8:11 AM, dunbarx--- via use-livecode wrote:
> The selectedLoc will give the loc in window coordinates, not the "local" Y 
> coordinate within the field of interest, which is what I thought you wanted. 
> I cannot imagine what value that would have, since it depends on where the 
> stack window is currently placed.

localLoc()

-- 
  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: Y coordinate for a line of text

2019-11-13 Thread dunbarx--- via use-livecode
The selectedLoc will give the loc in window coordinates, not the "local" Y 
coordinate within the field of interest, which is what I thought you wanted. I 
cannot imagine what value that would have, since it depends on where the stack 
window is currently placed.
Craig


-Original Message-
From: scott--- via use-livecode 
To: How to use LiveCode 
Cc: sc...@elementarysoftware.com 
Sent: Tue, Nov 12, 2019 10:12 pm
Subject: Re: Y coordinate for a line of text

Thank you Craig and Paul. Your answers were what I was hoping for. Devin, it 
turned out that selectedLoc() was the easiest to implement. How did I not know 
about that function!
Thanks!

Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web      https://elementarysoftware.com/
email    sc...@elementarysoftware.com
booth    1-800-615-0867
--



> On Nov 12, 2019, at 8:46 AM, Devin Asay via use-livecode 
>  wrote:
> 
> The selectedLoc function may also be helpful.
> 
> 
>> On Nov 12, 2019, at 7:27 AM, Paul Dupuis via use-livecode 
>>  wrote:
>> 
>> You may want to look at the Dictionary entry for "measureText"
>> 
>> 
>> On 11/12/2019 1:43 AM, scott--- via use-livecode wrote:
>>> I’m needing to know the coordinate (Y is the tricky one) for a line of 
>>> text. I’m not do a very good job at calculating it. I think I remember a 
>>> newish LC command or function that achieved this but I can’t locate it in 
>>> the dictionary. Am I imagining?
>>> 
>>> --
>>> Scott Morrow
>>> 
>>> Elementary Software
>>> (Now with 20% less chalk dust!)
>>> web      https://elementarysoftware.com/
>>> email    sc...@elementarysoftware.com
>>> booth    1-800-615-0867
>>> 
>>> --
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your 
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-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
___
use-livecode mailing list
use-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: Disappearing "column lables" of Datagrid

2019-11-12 Thread dunbarx--- via use-livecode
Why not just ask Klaus?
Craig


-Original Message-
From: Klaus major-k via use-livecode 
To: Tom Glod via use-livecode 
Cc: Klaus major-k 
Sent: Tue, Nov 12, 2019 11:59 am
Subject: Disappearing "column lables" of Datagrid

Hi friends,

what might cause the fact that in my datagrids on card 2
the "column labels" disapear whenever I (re-)open that stack

NO scripting involved so far, the labels are just gone!?

"refreshline/refreshindex/refreshlist" does NOT work in a script.
I have to click "Refresh" in the inspector for these two datagrids
to make then appear again. This is driving me crazy! :-/

macOS 10.14.6, LC 9.0.5, same with LC 9.5.
Thanks for any hints.


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: Identifying Un-used functions and commands

2019-11-12 Thread dunbarx--- via use-livecode
Hi.
"unused functions and commands"?
Do you mean handlers that exist in a script somewhere but are never called from 
anywhere?
I suppose you can search all scripts, and if a certain handler name does not 
appear without being prepended by either "on" & space(s) or "function" & 
space(s) then you can say that handler is never called.
Craig


-Original Message-
From: Stephen MacLean via use-livecode 
To: How to use LiveCode 
Cc: Stephen MacLean 
Sent: Tue, Nov 12, 2019 12:14 pm
Subject: Identifying Un-used functions and commands

Hi All,

I’m wondering if anyone has a way or code to identify any un-used functions and 
commands in a set of stacks?

Best,
Steve MacLean

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Y coordinate for a line of text

2019-11-12 Thread dunbarx--- via use-livecode
How do I format a simple handler so that it is not strung out like a 1960's 
hippie? Why is there no forum-like area to post scripts? Is this because I am 
using AOL as a portal to the use list?
Craig


-Original Message-
From: dunbarx--- via use-livecode 
To: use-livecode 
Cc: dunbarx 
Sent: Tue, Nov 12, 2019 9:05 am
Subject: Re: Y coordinate for a line of text

Hi.
Assuming you have a field 1 with several lines of text in it, and have set the 
textHeight of that field, then in a button script somewhere;
on mouseUpanswer the textHeight of fld 1 * lineOffset(yourText,fld 1) + the top 
of fld 1end mouseUp
Craig

-Original Message-
From: scott--- via use-livecode 
To: How to use LiveCode 
Cc: sc...@elementarysoftware.com 
Sent: Tue, Nov 12, 2019 1:45 am
Subject: Y coordinate for a line of text

I’m needing to know the coordinate (Y is the tricky one) for a line of text. 
I’m not do a very good job at calculating it. I think I remember a newish LC 
command or function that achieved this but I can’t locate it in the dictionary. 
Am I imagining?

--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web      https://elementarysoftware.com/
email    sc...@elementarysoftware.com
booth    1-800-615-0867

--








___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Y coordinate for a line of text

2019-11-12 Thread dunbarx--- via use-livecode
Hi.
Assuming you have a field 1 with several lines of text in it, and have set the 
textHeight of that field, then in a button script somewhere;
on mouseUpanswer the textHeight of fld 1 * lineOffset(yourText,fld 1) + the top 
of fld 1end mouseUp
Craig

-Original Message-
From: scott--- via use-livecode 
To: How to use LiveCode 
Cc: sc...@elementarysoftware.com 
Sent: Tue, Nov 12, 2019 1:45 am
Subject: Y coordinate for a line of text

I’m needing to know the coordinate (Y is the tricky one) for a line of text. 
I’m not do a very good job at calculating it. I think I remember a newish LC 
command or function that achieved this but I can’t locate it in the dictionary. 
Am I imagining?

--
Scott Morrow

Elementary Software
(Now with 20% less chalk dust!)
web      https://elementarysoftware.com/
email    sc...@elementarysoftware.com
booth    1-800-615-0867

--








___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Windows, Underlines and Printing

2019-11-03 Thread dunbarx--- via use-livecode
Hi. 

I don't suppose you have tested on a Mac? If not, I will when I get to my 
office tomorrow. 

Craig


-Original Message-
From: Dan Friedman via use-livecode 
To: How to use LiveCode 
Cc: Dan Friedman 
Sent: Sat, Nov 2, 2019 1:04 pm
Subject: Windows, Underlines and Printing

Greeting!

I have a field on a stack.  In that field is some text and one word is 
underlined.  If I print the card on a windows computer, the underline isn't 
printed.  If I print the card to PDF, the underline is printed.  I tried LC 
9.0.4 Indy, 9.5.0 Business and 9.5.1 rc1 Business.

Can anyone confirm?

-Dan


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Learning from scratch - any recommendations?

2019-11-01 Thread dunbarx--- via use-livecode
I am with Richmond, mainly.
I hate to learn another language. That is why I live in the United States.
LC, if you introduce only a  handful or three of native words, controls and 
concepts, is accessible to anyone with a real desire to learn this sort of 
thing. Even a first grader; they just need more mentoring. Even someone who did 
not know they would like to build stuff in software.
The trick is the engagement, to make it seem cool and fun.
Craig


-Original Message-
From: Richmond Mathewson via use-livecode 
To: How to use LiveCode 
Cc: Richmond Mathewson 
Sent: Fri, Nov 1, 2019 12:59 pm
Subject: Re: Learning from scratch - any recommendations?

I have a radical disagreement with Scratch and its ilk as, while it does
allow one to run up simple computer games, it does not let users see the
"guts" of a program, and seems not to give children transferrable skill for
non-block programming languages. I have successfully started kids from 9
years old and upward on programming with both BBC BASIC and Livecode.

On Fri, Nov 1, 2019, 6:00 PM kee nethery via use-livecode <
use-livecode@lists.runrev.com> wrote:

> My recommendation is to have them start with scratch.mit.edu and spend a
> month making stuff with that language. Scratch is built for 1st graders to
> pick up and it is extremely satisfying as the starter language. They get
> exposed to all sorts of concepts, message passing, variables, flow control,
> multi-processing, it’s a great starter language. A month making stuff and
> then move to livecode.
>
> Kee
>
> > On Nov 1, 2019, at 3:23 AM, Graham Samuel via use-livecode <
> use-livecode@lists.runrev.com> wrote:
> >
> > I was disappointed that I only got one reply to my query about LC as a
> platform for learning programming - I thought this was a big thing with
> quite a few people on this list, some of whom are actually educators. Since
> I’ve failed in this, can someone suggest a better way of getting an answer
> (e.g. forums, mother ship)?
> >
> > TIA
> >
> > Graham
> >
> > I wrote:
> >
> >> I have been approached by one of my family to ask what would be the
> first steps for someone (a young adult) to enable them to enter the world
> of app design and programming. Obviously I need to ask more questions
> myself, such as whether this would be to get a job, or simply as an
> educational exercise, or maybe to provide a launchpad for a startup idea.
> However, even at this stage, of course my thoughts turned to LiveCode.
> >>
> >> So my question to the community is, how would such a person start off -
> assuming they’re intelligent, very familiar with consumer-level technology
> such as smart phones, tablets, laptop computers for study etc. and social
> media, but probably have never seen or thought about what is involved in
> designing, implementing and publishing an app (I would just say “a
> program”, but that shows how old I am) on any platform? If it is LC (and
> why not?), are the published lessons sufficient? What is the view of those
> on this list who do actually teach this stuff?
> >>
> >> The trouble for me is that I have been around all this for 50 years
> (more, to be truthful) and so can’t project myself well into the mind of
> that kind of newbie. One guess is that one way to start would be to find a
> cheap hardware platform (probably an Android tablet) and try to use the LC
> Community Edition to allow me to create something for that; but that idea
> may be stupid, particularly as one would need a different platform to
> actually do the development work.
> >>
> >> Hoping for some insights
> >>
> >> Graham
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
Klaus.
Now I see what you see. I cannot be sure I did not mess up the procedure 
earlier because I am getting mixed results. Sometimes the paste is formatted, 
and sometimes not. . But now when using the menu, if the formatting is indeed 
plain, nothing appears in the card field. 


-Original Message-
From: dunbarx--- via use-livecode 
To: use-livecode 
Cc: dunbarx 
Sent: Mon, Oct 28, 2019 2:25 pm
Subject: Re: past unformatted & inspector field "styled text"

Klaus.
All works for me here.
It is possible you have not placed a blinking cursor into the inspector field?


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Mon, Oct 28, 2019 1:51 pm
Subject: Re: past unformatted & inspector field "styled text"

Hi Craig,

> Am 28.10.2019 um 18:43 schrieb dunbarx--- via use-livecode 
> :
> 
> Klaus.
> Yes, from the menu. Works the same as CMD-V.
> I get something each way. But it is NOT unformatted, each way.

??? 
That works here as advertized, no formatted text after using the shortcut or 
menu!
Problem, the text does not get into the field on the card!

And when I switch back to the "stacled text" tab of the inspector, the pasted 
text is also gone!?
Too funky!?

Someone else seeing this?

> Craig

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: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
Klaus.
All works for me here.
It is possible you have not placed a blinking cursor into the inspector field?


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Mon, Oct 28, 2019 1:51 pm
Subject: Re: past unformatted & inspector field "styled text"

Hi Craig,

> Am 28.10.2019 um 18:43 schrieb dunbarx--- via use-livecode 
> :
> 
> Klaus.
> Yes, from the menu. Works the same as CMD-V.
> I get something each way. But it is NOT unformatted, each way.

??? 
That works here as advertized, no formatted text after using the shortcut or 
menu!
Problem, the text does not get into the field on the card!

And when I switch back to the "stacled text" tab of the inspector, the pasted 
text is also gone!?
Too funky!?

Someone else seeing this?

> Craig

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: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
Klaus.
Yes, from the menu. Works the same as CMD-V.
I get something each way. But it is NOT unformatted, each way.
Craig


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Mon, Oct 28, 2019 1:26 pm
Subject: Re: past unformatted & inspector field "styled text"

Hi Craig,

> Am 28.10.2019 um 18:01 schrieb dunbarx--- via use-livecode 
> :
> 
> Klaus.
> I get whatever I copied into that inspector field. But it retains the 
> formatting of the source.

sure you did "past UNformatted"?

> Craig
> 
> 
> -Original Message-
> From: Klaus major-k via use-livecode 
> To: How to use LiveCode 
> Cc: Klaus major-k 
> Sent: Mon, Oct 28, 2019 12:53 pm
> Subject: past unformatted & inspector field "styled text"
> 
> Hi all,
> 
> when I "paste unformatted"*** into the field "styled text"
> in the inspector for a field, nothing gets into that namely 
> field in the end!?
> 
> ***Via menu or shortcut
> 
> As if I did not paste anything!
> 
> Can someone please confirm this before I report this as a bug?
> Or is this an undocumented feature? 8-)
> 
> Thank you!

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: past unformatted & inspector field "styled text"

2019-10-28 Thread dunbarx--- via use-livecode
Klaus.
I get whatever I copied into that inspector field. But it retains the 
formatting of the source.
Craig


-Original Message-
From: Klaus major-k via use-livecode 
To: How to use LiveCode 
Cc: Klaus major-k 
Sent: Mon, Oct 28, 2019 12:53 pm
Subject: past unformatted & inspector field "styled text"

Hi all,

when I "paste unformatted"*** into the field "styled text"
in the inspector for a field, nothing gets into that namely 
field in the end!?

***Via menu or shortcut

As if I did not paste anything!

Can someone please confirm this before I report this as a bug?
Or is this an undocumented feature? 8-)

Thank you!


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: Learning from scratch - any recommendations?

2019-10-28 Thread dunbarx--- via use-livecode
Hi.
I have taught several newbies. I always start with a simple app, like an 
address book. I show how controls are created, and how scripts are built. 
During that process, I am off in the weeds, writing short handlers showing how 
the cursor can trigger things like mouseEnter or mouseMove, these messages 
having nothing to do with the task at hand, but  rather similar to what we are 
working on.
This is all way before the message hierarchy or anything intermediate like 
that. The point is to get them hooked, and that can only happen if the basic 
simple things appear accessible and comfortable. If you are good at this, it 
will also appear to be fun.
Craig


-Original Message-
From: Graham Samuel via use-livecode 
To: How to use LiveCode 
Cc: Graham Samuel 
Sent: Mon, Oct 28, 2019 8:53 am
Subject: Learning from scratch - any recommendations?

Hi all

I have been approached by one of my family to ask what would be the first steps 
for someone (a young adult) to enable them to enter the world of app design and 
programming. Obviously I need to ask more questions myself, such as whether 
this would be to get a job, or simply as an educational exercise, or maybe to 
provide a launchpad for a startup idea. However, even at this stage, of course 
my thoughts turned to LiveCode.

So my question to the community is, how would such a person start off - 
assuming they’re intelligent, very familiar with consumer-level technology such 
as smart phones, tablets, laptop computers for study etc. and social media, but 
probably have never seen or thought about what is involved in designing, 
implementing and publishing an app (I would just say “a program”, but that 
shows how old I am) on any platform? If it is LC (and why not?), are the 
published lessons sufficient? What is the view of those on this list who do 
actually teach this stuff? 

The trouble for me is that I have been around all this for 50 years (more, to 
be truthful) and so can’t project myself well into the mind of that kind of 
newbie. One guess is that one way to start would be to find a cheap hardware 
platform (probably an Android tablet) and try to use the LC Community Edition 
to allow me to create something for that; but that idea may be stupid, 
particularly as one would need a different platform to actually do the 
development work.

Hoping for some insights

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


Re: Red Dot Breakpoint Crashes

2019-10-27 Thread dunbarx--- via use-livecode
Just an aside.
I never experienced a "crash" of any kind with a red dot. I only found that, 
after editing a script with a dot in place, it had become disabled as if it was 
not there at all, and execution proceeded right past it. If I deleted it and 
put it back, it worked fine again. But that hardly recommends the original dot.
Craig


-Original Message-----
From: dunbarx--- via use-livecode 
To: use-livecode 
Cc: dunbarx 
Sent: Sat, Oct 26, 2019 11:14 pm
Subject: Re: Red Dot Breakpoint Crashes

My red dots are fixed in 9.0.4. Not sure about 9.5, if that might be a 
regression.
Bottom line, I am thrilled that they finally work. It is the reason I migrated 
from v.8.
Craig


-Original Message-
From: Brian Milby via use-livecode 
To: How to use LiveCode 
Cc: Brian Milby 
Sent: Fri, Oct 25, 2019 10:47 pm
Subject: Re: Red Dot Breakpoint Crashes

9.5.1 should have the fix (or whatever it is named).

9.0.5 already has the fix.

Thanks,
Brian
On Oct 25, 2019, 10:44 PM -0400, Paul Looney via use-livecode 
, wrote:
> So, to be fixed in 9.0.6?
>
>
> > On Oct 25, 2019, at 6:53 PM, Bob Sneidar via use-livecode 
> >  wrote:
> >
> > Nope my bad. Not fixed in 9.5 yet.
> >
> > Bob S
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Slowdown when printing to PDF in a loop

2019-10-23 Thread dunbarx--- via use-livecode
Terry.
Do this. Should be instantaneous:
on mouseUprepeat with y = 1 to 5put yourPathName && y into jobPathopen printing 
to pdf (jobPath & ".pdf")print this cardend repeatclose printingend mouseUp
You should get five PDF's in a flash.
Craig

-Original Message-
From: Terry Judd via use-livecode 
To: How to use LiveCode 
Cc: Terry Judd 
Sent: Wed, Oct 23, 2019 2:58 pm
Subject: Re: Slowdown when printing to PDF in a loop

Hi Craig - yes, I open and close printing for each report. I might be wrong 
(I’ve been using variations of the same printing routine for ages) but I seem 
to recall that I was unable to successfully or reliably create separate reports 
unless I closed printing after each one.

Terry...

Sent from my iPad

> On 24 Oct 2019, at 12:53 am, dunbarx--- via use-livecode 
>  wrote:
> 
> Hi.
> Are you repeatedly using "open printing to PDF"?
> Craig
> 
> 
> -Original Message-
> From: Terry Judd via use-livecode 
> To: use-livecode@lists.runrev.com 
> Cc: Terry Judd 
> Sent: Tue, Oct 22, 2019 9:11 pm
> Subject: Slowdown when printing to PDF in a loop
> 
> I'm printing a whole bunch of PDFs (multipage feedback reports generated by 
> populating a series of cards with individualised data - mix of text and 
> graphics) and it starts off fast and then inevitably slows down - a lot. 
> While it might start off printing say 14 reports per minute after a few 
> minutes it's down to only 2 or 3. When you're printing 350 reports that 
> obviously takes some time. I'm wondering whether there is something I can try 
> to 'clear the pipes' every few minutes to speed the process up a bit? I've 
> had some success in the past splitting the data up into batches and looping 
> through one batch at a time but it would be great (or at least simpler) not 
> having to do that.
> 
> Any ideas? I'm on a Mac BTW, so I'm not sure whether this is a cross-platform 
> issue. LC 9.0.5.
> 
> Terry...
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Slowdown when printing to PDF in a loop

2019-10-23 Thread dunbarx--- via use-livecode
Hi.
Are you repeatedly using "open printing to PDF"?
Craig


-Original Message-
From: Terry Judd via use-livecode 
To: use-livecode@lists.runrev.com 
Cc: Terry Judd 
Sent: Tue, Oct 22, 2019 9:11 pm
Subject: Slowdown when printing to PDF in a loop

I'm printing a whole bunch of PDFs (multipage feedback reports generated by 
populating a series of cards with individualised data - mix of text and 
graphics) and it starts off fast and then inevitably slows down - a lot. While 
it might start off printing say 14 reports per minute after a few minutes it's 
down to only 2 or 3. When you're printing 350 reports that obviously takes some 
time. I'm wondering whether there is something I can try to 'clear the pipes' 
every few minutes to speed the process up a bit? I've had some success in the 
past splitting the data up into batches and looping through one batch at a time 
but it would be great (or at least simpler) not having to do that.

Any ideas? I'm on a Mac BTW, so I'm not sure whether this is a cross-platform 
issue. LC 9.0.5.

Terry...

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


Re: Push Card

2019-10-22 Thread dunbarx--- via use-livecode
I still maintain a HC server stack, accessible by clients over a network, of 
many thousands of cards. Access to any of them using the "find" command is 
virtually instantaneous.
It is LC that starts to visibly slow after about 2000 cards. Someone like 
Richard or Jacque may know a bit about why that is, but I assume that LC simply 
carries much more baggage.
It must be remembered that HC was designed to run on a 1MB Mac. Color was out 
of the question, and the routines for finding stuff was considered 
revolutionary and was carefully guarded.
Craig


-Original Message-
From: Peter Bogdanoff via use-livecode 
To: How to use LiveCode 
Cc: Peter Bogdanoff 
Sent: Tue, Oct 22, 2019 2:40 pm
Subject: Re: Push Card

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
___
use-livecode mailing list
use-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 dunbarx--- via use-livecode
This goes back to 1987. The HC team assumed that most people would navigate
like crazy, think rolodex, and being able to retrace ones history would be a
very useful tool.

There should be a "clear recent" command, so that the piles of cards in that
history can be eliminated. But LC has things that make this simple, the
"recentCards" and "recentNames" properties.

Craig


-Original Message-
From: JB via use-livecode 
To: How to use LiveCode 
Cc: JB 
Sent: Tue, Oct 22, 2019 12:28 pm
Subject: Re: Push Card

Do you mean to also keep a track of my own card id’s and
then eliminate the ones I do not want in the list?

That would probably work but I think I will just write the
code differently for this program.  It is not a big problem
but the ending up where I did not expect just needs to
be fixed and is not going to be very difficult.

thanks for the help!

JB

> On Oct 22, 2019, at 9:14 AM, Bob Sneidar via use-livecode 
>  wrote:
> 
> One way to do this is to have a single function do the pushing and popping so 
> it always knows where it is. 
> 
> Bob S
> 
> 
>> On Oct 22, 2019, at 09:04 , JB via use-livecode 
>>  wrote:
>> 
>> I don’t have very many cards but eventually I end
>> up somewhere I didn’t expect and if I cleared the
>> list it would take care of the problem.  But if I take
>> the time to write the code better I can solve the
>> problem without using push and pop.
>> 
>> JB
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Button scripts

2019-10-05 Thread dunbarx--- via use-livecode
Hi.
The "target" tells LC which control received a message. If you had a script in 
the card, something like:
on mouseUp
set the bordercolor of the Target to "orange"
set the showBorder of the target to "true"
--- do somethingend mouseUp
You would not only have quotes in places you ought to, but need only that one 
handler in your stack.
Note that oftentimes you do not want EVERY button to react that way. There are 
two ways around that.
1- Trap "mouseUp" in the offending button.2- Set a property of some sort in 
those buttons, such that (pseudo):
on mouseUp
if the name of the target has some nice property thenset the bordercolor of the 
Target to "orange"...
Craig

-Original Message-
From: General 2018 via use-livecode 
To: use-livecode@lists.runrev.com 
Cc: General 2018 
Sent: Sat, Oct 5, 2019 12:57 pm
Subject: Button scripts

Hi ,

Have many buttons that do different operations , each one has the following 
script :-

Is the script required for each button and is the use of flush correct ?

on mouseUp
set the bordercolor of me to orange
set showBorder of me to true
--- do something
get flushEvents("mouseUp")
end mouseUp



on mouseleave
set showBorder of me to false
get flushEvents("mouseleave")
end mouseleave


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


Re: Stacks and Sub Stacks

2019-09-25 Thread dunbarx--- via use-livecode
Should, of course, be:
on mouseUp
  answer "Sub" && random(99)
  -- pass mouseUp
end mouseUp
I really, really do not like the use-list.
Craig


-Original Message-
From: dunbarx--- via use-livecode 
To: use-livecode 
Cc: dunbarx 
Sent: Wed, Sep 25, 2019 3:45 pm
Subject: Re: Stacks and Sub Stacks

Hi.

Substacks are below (Hi, Jacque) the mainStack which own them in the message
hierarchy. Try this:

Make a new stack, name it "Main1". Make a sub stack of that stack, and name
it "Sub1". Put this into the script of the main stack:

on mouseUp
  answer "Main" && random(99)
end mouseUp

Now put this into the script of the subStack:

on mouseUp
  answer "Sub" && random(99)
  -- pass mouseDown
end mouseUp

If you click in the mainStack, you will get "Main...". If you click in the
subStack, you will get "Sub..." If you uncomment the "pass" statement in the
subStack, and click in the subStack, you will get both.

So like any object in the hierarchy, you have to manage your messages.

I really do not like the use-list.

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


Re: Stacks and Sub Stacks

2019-09-25 Thread dunbarx--- via use-livecode
Hi.

Substacks are below (Hi, Jacque) the mainStack which own them in the message
hierarchy. Try this:

Make a new stack, name it "Main1". Make a sub stack of that stack, and name
it "Sub1". Put this into the script of the main stack:

on mouseUp
  answer "Main" && random(99)
end mouseUp

Now put this into the script of the subStack:

on mouseUp
  answer "Sub" && random(99)
  -- pass mouseDown
end mouseUp

If you click in the mainStack, you will get "Main...". If you click in the
subStack, you will get "Sub..." If you uncomment the "pass" statement in the
subStack, and click in the subStack, you will get both.

So like any object in the hierarchy, you have to manage your messages.

I really do not like the use-list.

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


Re: Stacks and Sub Stacks

2019-09-25 Thread dunbarx--- via use-livecode
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


Re: Test post: Its awfully quiet around here...

2019-09-16 Thread dunbarx--- via use-livecode
I hear you, Mark.
And yes it is.
Craig


-Original Message-
From: Mark Waddingham via use-livecode 
To: How to use LiveCode 
Cc: Mark Waddingham 
Sent: Mon, Sep 16, 2019 9:17 am
Subject: Test post: Its awfully quiet around here...

Testing...

-- 
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Odd paste in 9.5

2019-09-11 Thread dunbarx--- via use-livecode
Richmond.
I do not see this in either v 8 or v.9. Both methods work just fine.
I am not sure that you will see this post. I am having issues with the use 
list. If I do not see it, I will forward to the forums
Craig


-Original Message-
From: Richmond via use-livecode 
To: use-livecode 
Cc: Richmond 
Sent: Wed, Sep 11, 2019 3:23 pm
Subject: Odd paste in 9.5

This seems very odd indeed . . .

Macintosh 10.14.something-or-other

When I copy-paste an image from one card to the next with the menu and a 
mouse the image pastes correctly,
when I copy-paste with CMD-C, CMD-P the resultant image is a solid black 
colour.

Richmond

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


Re: Help with an algorithm...

2019-08-05 Thread dunbarx--- via use-livecode
Hi.
This seems like a good case for arrays (pseudo):
You have to create an array for each parent. The only way i see to find those 
is to go through the list looking for lines that DO NOT start with a space. If 
you work from the bottom up, since children are always at the bottom and they 
always have spaces in front, you can find the lastMost parent.
Set the itemDel to that parent, and isolate the last item. This will be a list 
of children of that parent.
See if there is a corresponding parent in the new list, and isolate that "item" 
list of children.
Run through the children of the old list and see if they live in the new list. 
If they do, add them:The array part is something like:
put oldChildren & return & newChildren into allChildrenrepeat for each line 
tLine in allChildrenput tLine into myArray[tLine]

Delete the last item of the old list and do it again. This way the last item 
can be isolated directly.
Craig

-Original Message-
From: Paul Dupuis via use-livecode 
To: How to use LiveCode 
Cc: Paul Dupuis 
Sent: Mon, Aug 5, 2019 11:53 am
Subject: Help with an algorithm...

Today is not my coding day. I have a problem I should be able to design 
a solution for an am struggling. Clearly I am missing "something"

I have 2 lists (LISTNEW and LISTOLD) of the following format:

ParentA
Child 1
Child 2
etc.
ParentB
Child 1
etc.
etc.

The parents are in alphabetical sorted order, the children may not be in 
sorted order

I need to hunt through LISTOLD comparing the LISTOLD Parents to the 
LISTNEW Parents
   FOR any LISTOLD Parent present in LISTNEW, check the Children of the 
matching Parents and add any Child for the LISTOLD Parent that is not 
already under its matching LISTNEW Parent
   FOR any LISTOLD Parent NOT in LISTNEW, I can ignore the Parent and 
its Children

I can not seem to write an approach to solve this today. Does any body 
have some code so solve this they may be willing to share?

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Draw a line that follows an object

2019-06-28 Thread dunbarx--- via use-livecode
A million ways to escape. One could substitute this for the optionKey the line:
if the mouse  is down then...end if
That assumes that the drawing is always done with the mouse held down. Not sure 
about that. And since "send in time" releases control to the machine 
constantly, one could add an escape handler downStream triggered by just about 
anything.
Much depends on the way the author wants this thing to work.
Craig

-Original Message-
From: Rick Harrison via use-livecode 
To: How to use LiveCode 
Cc: Rick Harrison 
Sent: Fri, Jun 28, 2019 4:54 pm
Subject: Re: Draw a line that follows an object

Double click to stop drawing?

Rick

> On Jun 28, 2019, at 4:16 PM, dunbarx--- via use-livecode 
>  wrote:
> 
> Not sure how you want to stop drawing. Let me know how you decide that.
> Craig

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Draw a line that follows an object

2019-06-28 Thread dunbarx--- via use-livecode
Hi.
So much fun. Change the handler to this:
local pointsListon mouseDown  show btn 1 at "200,200"  set the points of grc 1 
to "0,0" & comma & the loc of btn 1  put the points of grc 1  into 
pointsList  trackButtonend mouseDown
on trackButton  if the optionKey is down then exit to top -- exit here  set the 
loc of btn 1 to the mouseLoc  put the loc of btn 1 & return after pointsList  
set the points of grc 1 to pointsList  send "trackButton" to me in 1end 
trackButton
Not sure how you want to stop drawing. Let me know how you decide that.
Craig

-Original Message-
From: General 2018 via use-livecode 
To: How to use LiveCode 
Cc: General 2018 
Sent: Fri, Jun 28, 2019 2:21 pm
Subject: RE: Draw a line that follows an object

Hi ,

Thanks , so nearly - I have a line that follows the object from the top left 
corner.

What I need is just like drawing with a pen , the object being the tip. Where 
the object moves a line is drawn and remains like ink.


Regards
Camm

-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of 
dunbarxx via use-livecode
Sent: 26 June 2019 16:51
To: use-revolut...@lists.runrev.com
Cc: dunbarxx
Subject: Re: Draw a line that follows an object

Hi.

Not sure what you really want, but maybe try this. On a new card create a
button and a line graphic. Put this into the button script:

on mouseDown
  trackButton
end mouseDown

on trackButton
  if the optionKey is down then exit to top -- exit here
  set the loc of btn 1 to the mouseLoc
  set the points of grc 1 to "10,10" & return & item 1 of the loc of btn 1
& "," & item 2 of the loc of btn 1
  send "trackButton" to me in 1
end trackButton

Craig



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

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

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Rects Revisted

2019-06-26 Thread dunbarx--- via use-livecode
Probably a brain typo.
But I cannot imagine that item 4 of the rect of a stack window that lies below 
the bottom of the screen can be less  item 4 of the screenRect.
Craig


-Original Message-
From: Alex Tweedly via use-livecode 
To: use-livecode 
Cc: Alex Tweedly 
Sent: Wed, Jun 26, 2019 1:48 pm
Subject: Re: Rects Revisted

I'm lost  . how is

1198 (item 4 of the stackrect)

less than

1080 (item 4 of the screenrect) ?


On 26/06/2019 18:41, Bob Sneidar via use-livecode wrote:
> So I am dealing with the rects of stacks vs. the rects of screens, and now I 
> see what the issues people have had are all about. I have a window whose 
> bottom is partially below the screen it is on. But item 4 of the rect of the 
> stack is being reported as being LESS than item 4 of the screenRect! How can 
> that be???
>
> This by the way is a standard 1080i display, nothing fancy. Not retina or 
> anything. The screenRect is 0,0,1920,1080. The stackRect is 53,628,881,1198.
>
> Bob S
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

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

Re: Groups do not receive mouseEnter messages?

2019-06-24 Thread dunbarx--- via use-livecode
Confirmed here.
I have never really tried any of the things you mentioned, but no messages at 
all are sent to the group I just made.  Interestingly, and consistent so far, 
double clicking within the group boundary, but not in any child control, opens 
the inspector for the card.
So although the dictionary talks about many properties of groups, and states 
that it is a control in its own right, it does not seem to have much body 
outside of its children. This even though one can make the group red as a beet. 
The "object" certainly exists, and has a multitude of properties. It just 
doesn't seem to be quite there.
Craig


-Original Message-
From: Paul Dupuis via use-livecode 
To: How LiveCode 
Cc: Paul Dupuis 
Sent: Mon, Jun 24, 2019 7:28 pm
Subject: Groups do not receive mouseEnter messages?

In LC9.0.5rc1 under Windows, I have a test stack with 2 opaque groups 
with show borders  - one covering the top half of the card and one 
covering the bottom half of the card. In side the top group are a couple 
buttons with plenty of white space around them and inside the bottom 
group are a couple of graphic objects with plenty of white space around 
them.

The buttons and graphics have no scripts (currently). Each group has an 
"on mouseEnter" handler that "choose browse tool" for the top group and 
"choose pointer tool" for the bottom group.  The simple idea being when 
the user moves the mouse into the bottom group, the pointer tool is 
chosen so they could click on and resize the graphics. And when the 
mouse enter the top group, the browse tool is chosen so the user can 
click on the buttons without selecting them.

Neither group seems to receive the mouseEnter messages. Instead, the 
groups mouseEnter handler is executed for the top group only when the 
mouse is moved over one of the buttons (which has no mouseEnter handler 
and so the message is passed to the group) and likewise, the bottom 
groups mouseEnter handler is executed only when the mouse is moved over 
one of the graphics.

Do GROUPs not receive mouseEnter directly? This seems like a bug?Or is 
there some trick (property settings) for a group to receive mouseEnter 
messages?

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

Re: Setting conditional breakpoints

2019-06-21 Thread dunbarx--- via use-livecode
Not sure what you could mean.
on mouseUp  if the mouseLoc is within the rect of btn 3 then breakPoint   if 
the visible  of btn 3 then breakPoint   if the...


Surely I am missing this.
Craig

-Original Message-
From: Bob Sneidar via use-livecode 
To: How to use LiveCode 
Cc: Bob Sneidar 
Sent: Fri, Jun 21, 2019 5:43 pm
Subject: Setting conditional breakpoints

Hi all. 

How do I set a conditional breakpoint based upon a property? I tried using the 
visible of stack "Forms Generator" is true, but I cannot enable the breakpoint 
and it says there is no condition, even though there it is!

Bob S


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

Re: Help with drawing in LiveCode...

2019-06-21 Thread dunbarx--- via use-livecode
Again, my drawing gadget creates, sizes, places and dimensions graphics, 
simulating a CAD drawing.
You are still focused on tool switching and control selecting. That is fine, 
but is that the main and only issue for you? We can work on that, the goal 
being that you modify the current behavior of LC to the behavior of the old one 
you are used to. 
I do not need that, since the entirety of my drawing is created under script 
control. So may I request that you post to the forum? I am much more 
comfortable there, and we can all propose handlers that will restore the old 
way.
Did you try the handler I posted earlier? It is a good start.
Craig


-Original Message-
From: Paul Dupuis via use-livecode 
To: use-livecode 
Cc: Paul Dupuis 
Sent: Fri, Jun 21, 2019 9:29 am
Subject: Re: Help with drawing in LiveCode...

On 6/20/2019 11:34 PM, dunbarx--- via use-livecode wrote:
> I implemented a fairly complex drawing module to a stack we use all the time. 
> It isn't CAD, but it looks like it, albeit rather less professional looking 
> than, say, AutoCad or SoldWorks would produce.
> We send these drawings out daily to clients. They are based on data 
> calculated within the stack, and use graphic objects galore.
> But our drawings are one-way, that is, once drawn, they are complete, and are 
> forwarded as PDF's. You are looking to be able to manipulate objects (in CAD 
> parlance) live on screen. In a CAD environment an object that has been 
> selected remains so, regardless of tool or property changes, until either 
> nothing is selected or one or more (other or additional) objects are 
> explicitly selected.
> This should not be a problem, once some tools are in place, such as the one 
> you are asking for with auto re-selection of controls based on recent 
> activity. But that is just gadgetry, and once set up, should allow you to do 
> whatever you want to.
> I would be glad to show you what I make, if that will at least give you an 
> idea of how far you can take drawing in LC. But remember, LC is not a drawing 
> or CAD program. But you can make it act like one. You just have to change 
> some of the built-in rules.
> Craig
>

Thank you. You example sounds closes to what I am looking for. The old 
stack I have uses a technique of switching the tool from the browse tool 
(when a user need to click on tool icons or menus or whatever to the 
appropriate vector drawing tool when the mouse is over the drawing area, 
including the pointer tool for selecting, dragging, or resizing existing 
graphic objects created using other tools.

The difference is, in the old stack under LC4.6.4 of an object is 
selected (say a rectangle) and the tool is set back to browse to click 
on a color palette (or whatever), the object remains selected. However, 
under LC9 it does not. Or if it is something in the old code of the 
stack I can't figure out what. That's why I am looking for an example to 
learn from.

I'd appreciate taking a look at your stack.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: Help with drawing in LiveCode...

2019-06-20 Thread dunbarx--- via use-livecode
I implemented a fairly complex drawing module to a stack we use all the time. 
It isn't CAD, but it looks like it, albeit rather less professional looking 
than, say, AutoCad or SoldWorks would produce.
We send these drawings out daily to clients. They are based on data calculated 
within the stack, and use graphic objects galore.
But our drawings are one-way, that is, once drawn, they are complete, and are 
forwarded as PDF's. You are looking to be able to manipulate objects (in CAD 
parlance) live on screen. In a CAD environment an object that has been selected 
remains so, regardless of tool or property changes, until either nothing is 
selected or one or more (other or additional) objects are explicitly selected.
This should not be a problem, once some tools are in place, such as the one you 
are asking for with auto re-selection of controls based on recent activity. But 
that is just gadgetry, and once set up, should allow you to do whatever you 
want to.
I would be glad to show you what I make, if that will at least give you an idea 
of how far you can take drawing in LC. But remember, LC is not a drawing or CAD 
program. But you can make it act like one. You just have to change some of the 
built-in rules.
Craig


-Original Message-
From: hh via use-livecode 
To: use-livecode 
Cc: hh 
Sent: Thu, Jun 20, 2019 9:21 pm
Subject: Re: Help with drawing in LiveCode...

One of my "early LC works (2014)" may be (partially) what
you are looking for:
Raspberry Pi stacks collection #30 = SmoothDraw4.livecode

http://forums.livecode.com/viewtopic.php?p=104113#p104113

> Paul D. wrote:
> Thank you, but I have realized what I need a tutorial or
> - even better -  a sample drawing stack. Anyone on this
> list have one or can point me to one?
> 
> Not a paint stack, but one that uses graphic objects.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-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: HilitedLine of list field lost when unlocked field selected

2018-05-31 Thread dunbarx via use-livecode
Hi.

I am in v. 8.1.9 and do not see this in either locked or unlocked fields. I
made three, clicked on a line in each, which hilited correctly, and then
both tabbed and clicked all morning through them. Each hilited line stuck
unless I changed it.

Craig



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

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


Re: Navigation Widget Suppressing the hiliteChanged Message

2018-05-08 Thread dunbarx via use-livecode
Instead of locking messages, can you not include a hilitedChanged handler
that will trap and bury the message? Not sure where the best place for that
would be.

Craig



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

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


Re: Active window and mouse location

2018-05-08 Thread dunbarx via use-livecode
Hi.

The "screenMouseLoc" is a property, but the "mouseLoc" is a function.You
cannot set a function.

Why this was wrought this way is anybody's guess. I recommend that you make
a library gadget that automatically takes the open LC window properties and
does the math. Then your "newMouseLoc" property can be local to the window.

Craig Newman



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

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


Re: Background Long IDs

2018-05-06 Thread dunbarx via use-livecode
Hi.

Maybe I am not building this correctly.  I made a new stack of five cards. I
placed a BG group on card 3. It has ID 1005.

On card 1 in a button script:

on mouseUp
 put the long id of background ID 1005 of this stack into fld 2 
end mouseUp

In new sessions, whether I visit card 3 or not, I always get "group ID 1005
of "

Never "bkgnd ID 1005 of ..."

LC 8.1.7

Craig Newman



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

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


Re: Live search box

2018-05-01 Thread dunbarx via use-livecode
maybe I did not answer your question correctly.

You can conveniently:

set the rawText of btn "XYZ" to the clipBoardData

Craig



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

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


Re: Live search box

2018-05-01 Thread dunbarx via use-livecode
Hi.

When you change an ordinary property, you set it to a new value:

set the width of btn 3 to 50.

A custom property is "filled" in the same way:

set the rawText of me to chapterOneOfDonQuixote

Custom properties are created just like variables; you just do it. Try this.
make a new button named "XYZ", and:

set the albertEinstein of btn "XYZ" to "E=MC^2"

Now go into the property inspector and look at the custom property pane. Or
you can always:

answer the albertEinstein of btn "XYZ".

Custom properties can hold any value of any kind of any size. They survive
sessions, unlike global variables, and do not have to be declared.

Go practice.

Craig



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

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


Re: Live search box

2018-05-01 Thread dunbarx via use-livecode
"I already have that."

Hmmm. Then what is it that you are asking?

Craig



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

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


Re: Live search box

2018-04-30 Thread dunbarx via use-livecode
Hi.

This is fun to do. Make two fields. In the target field, the one you will
type into, set a custom property "rawText" to some long list of words,
perhaps chapter 1 of your favorite novel. It is a good idea to strip all
punctation from that text before setting the prop.

In that field, place this handler:

on keyDown tKey
   if the length of me > 2 then put line lineOffset(me,the rawText of me) of
the rawText of me into fld 2
   pass keydown
end keyDown

Craig Newman



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

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


Re: Splitting long elements into two lines in an Option Menu

2018-04-26 Thread dunbarx via use-livecode
Hi.

If I were you, with the task you laid out, I would not use an option menu.
It is not good with wide menuItems, and it is not natural, if even possible,
to select multiple lines in the way you want.

Use a list field instead. A field has many properties that are denied an
optionMenu, which is really just a button.

You can have multiple lines selected, by trapping "mouseUp", say, and with
the clickLine, select the following line as well. Or the following five. Or
the previous. That sort of thing. A field just is far more able in this
regard.

Craig Newman



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

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


Re: Enable/disable Group enables/disables all children

2018-04-26 Thread dunbarx via use-livecode
I think this is expected behavior.

If you have a group of three buttons:

1- disable one of them
2- disable the group
3 enable the group

You do get all three buttons enabled. But the thinking is likely along the
lines of: "That guy enabled the group, right? That means enable the group, 
which includes all its member controls, right?"

Or something like that.

I think this has merit, and I would just set a custom property to restore
the disabled controls.

Craig Newman





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

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


Re: Enable/disable Group enables/disables all children

2018-04-26 Thread dunbarx via use-livecode
Does it make it more palatable to think about it the other way around? There
should be no real difference:

You have a group where one button is already enabled, and one already
disabled.

By disabling the group, should the enabled button stay enabled?

Craig



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

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


Re: Enable/disable Group enables/disables all children

2018-04-26 Thread dunbarx via use-livecode
i would say this is expected behavior.

If you disable a control in a group, and then enable the group, LC assumes
you want to, er, enable the group, and that means all members of that group.

So as you mentioned, make a gadget that stores the states of all the
members, and resets when the group is enabled.

Craig Newman



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

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


Re: TOOLS ROUNDUP! TOOLS ROUNDUP!

2018-04-24 Thread dunbarx via use-livecode
I wrote:

"Randy. 

There must be something different in our setups. All I did was write a 
rawkeyUp handler to return the value of my mouse's right-click. Either you 
get a different value with that action, or something in your machine is 
intercepting that "message" before LC does. 

This was a while ago, so I had forgotten. (No "oops" emoticon in the
use-list) I have a configurable mouse, and set the right-click to simulate
"F4". Jacque uses, I think, something like "Cmd-Tab", which is similar to
how we used to toggle tools in HC. I did something like that for a while,
until I changed to using my mouse.

Craig



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

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


Re: TOOLS ROUNDUP! TOOLS ROUNDUP!

2018-04-23 Thread dunbarx via use-livecode
Randy.

There must be something different in our setups. All I did was write a
rawkeyUp handler to return the value of my mouse's right-click. Either you
get a different value with that action, or something in your machine is
intercepting that "message" before LC does.

Craig



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

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


  1   2   3   >