Search found 6609 matches

by dunbarx
Thu May 28, 2020 7:24 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Modifying what MouseText returns
Replies: 4
Views: 119

Re: Modifying what MouseText returns

Well, it just shows what you can think of in the middle of the night. Put this into the field script: on mouseWithin if the mouseText contains "_" then answer word (the number of words of char 1 to (word 4 of the mouseChunk) of me) of me end mouseWithin This one is less prolix. I used "_" (ASCII 95)...
by dunbarx
Wed May 27, 2020 11:42 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Modifying what MouseText returns
Replies: 4
Views: 119

Re: Modifying what MouseText returns

LC greatest "basic" strength is text wrangling. Sure there are single commands that can download the entirety of the internet, but for me, the real fun is kludging. I originally started that handler with "mouseMove", which works, but thought that mouseWithin was more local, and therefore more approp...
by dunbarx
Wed May 27, 2020 5:41 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Group Script to Manipulate Child Controls
Replies: 9
Views: 187

Re: Group Script to Manipulate Child Controls

Jacque wrote:
The usual advice is to keep handlers as close to the things they work with as possible.
Surely can be convenient when one suddenly needs to debug; the script that likely holds the handlers of interest is close by.

Craig
by dunbarx
Wed May 27, 2020 3:40 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Group Script to Manipulate Child Controls
Replies: 9
Views: 187

Re: Group Script to Manipulate Child Controls

Since you are an old HC'r, like many here, know that HC really did not care if you had a stack with many thousands of cards. It did not impede searches or general navigation at all. But LC starts to bog down significantly after a few thousand cards. That is why many use an external file to hold that...
by dunbarx
Wed May 27, 2020 3:35 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Group Script to Manipulate Child Controls
Replies: 9
Views: 187

Re: Group Script to Manipulate Child Controls

Great. Get going. It seems that simply placing that mouseUp handler in the stack script would do, no? And then why group at all, unless it is convenient to create new cards, with the group's backGroundBehavior set. As for whether you might have one card per set, or a single card that you load with s...
by dunbarx
Wed May 27, 2020 1:51 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Group Script to Manipulate Child Controls
Replies: 9
Views: 187

Re: Group Script to Manipulate Child Controls

Hi. When I get the feeling I am doing a lot of seeming extra and kludgy work, I give up. No, no. I mean I rethink what I am doing. I made a card with five locked fields, named "F1, F2...F5". I put some short text into each field. I grouped the five fields. In the script of the group: on mouseUp put ...
by dunbarx
Wed May 27, 2020 5:46 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Modifying what MouseText returns
Replies: 4
Views: 119

Re: Modifying what MouseText returns

Hi. In LiveCode, you can do anything. The mouseText has limitations in that it does not "read" across spaces or punctuation. It really cannot grok the "format" of the text that you are interested in. Ah, but the mouseChunk does not return text, it returns something much more powerful. Make two field...
by dunbarx
Mon May 25, 2020 9:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can LC set an objet to the top laye of a group with script? - Solved
Replies: 12
Views: 257

Re: Can LC set an objet to the top laye of a group with script?

David. I don't see how "set the screenMouseLoc to the loc of last control" is going to change a layer property. It doesn't. I guess I misunderstand what you are trying to do. You said you wanted to set the pointer to the loc of the most recent control, which is created by the user. My only point was...
by dunbarx
Mon May 25, 2020 3:29 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Can LC set an objet to the top laye of a group with script? - Solved
Replies: 12
Views: 257

Re: Can LC set an objet to the top laye of a group with script?

Richmond. That was adorable. David. But is it necessary to do anything more than: set the screenMouseLoc to the loc of last control (You have to do the usual calcs to adjust loc of the card window to screen "0,0".) This begs whatever method you use adding the newly created control to the group. The ...
by dunbarx
Sat May 23, 2020 3:11 pm
Forum: Talking LiveCode
Topic: Livecode Mailing List and Livecode Forums
Replies: 24
Views: 852

Re: Livecode Mailing List and Livecode Forums

I am not sure I like, overmuch, that some contributors on this forum are as silly as I am. I find it disconcerting. It would be more palatable to me were we not all so old.

Craig
by dunbarx
Sat May 23, 2020 1:21 am
Forum: Talking LiveCode
Topic: Livecode Mailing List and Livecode Forums
Replies: 24
Views: 852

Re: Livecode Mailing List and Livecode Forums

Mark.

You had zeros?????

Craig
by dunbarx
Fri May 22, 2020 1:51 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sharing and synchronziing backgrounds among substacks
Replies: 3
Views: 132

Re: Sharing and synchronziing backgrounds among substacks

Hi. BackGround groups only live in a single stack, whether main or sub Do changes in the substack groups never take place on their own, they are just mirrors? In other words the subStacks groups have no functionality of any kind, at least anything that changes them in any way? You already have propo...
by dunbarx
Thu May 21, 2020 5:19 pm
Forum: Talking LiveCode
Topic: Livecode Mailing List and Livecode Forums
Replies: 24
Views: 852

Re: Livecode Mailing List and Livecode Forums

I have responded, now and then, on Stack Overflow for a few years. I find it only slightly more friendly that the use-list, that is, not very. Your answers can either be applauded or be pummeled with fruit. But there is little activity there, only a few posts per month. Give me the Forum every time....
by dunbarx
Thu May 21, 2020 3:36 am
Forum: Talking LiveCode
Topic: odd scrolling behaviour of text field
Replies: 12
Views: 1042

Re: odd scrolling behaviour of text field

Nobody has ever interpreted me correctly.

I am sure everyone sees what you do. I certainly do.

This small but noticeable effect ought to cause others to chime in. Everyone know what the issue is?

Craig
by dunbarx
Wed May 20, 2020 8:24 pm
Forum: Talking LiveCode
Topic: Livecode Mailing List and Livecode Forums
Replies: 24
Views: 852

Re: Livecode Mailing List and Livecode Forums

Richard.

I would likely prefer just the opposite. What is the "other" way, not the nabble archive, to, er, use the use-list?

Craig

Go to advanced search