Page 1 of 1
clickText in scrolling List field
Posted: Wed Apr 20, 2022 1:47 am
by robinul
I have multiple items in a scrolling list field field. When I click on an item, the script (which depends providing a clickText) is activated properly. If I then go back to the field and click on the same item, the script does not work. If I click on a different item, the script works fine. If I click on the original item after clicking on another item, the script works fine. If I click on the original times three times, the first time will work, the second won't, the third will. It seems that the field is not accepting a second click on the same item. Is this strange?
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 7:43 am
by richmond62
Hello, my name is Richmond, and I think it is a good thing to introduce oneself in one's
first posting in a forum.
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 7:57 am
by FourthWorld
Richmond, perhaps not everyone has the same belief. People use forums different ways. If you want to be social, use it that way. But allow others to ask support questions when all they're looking for is support.
robinul, is the toggleHilites property of the field set to true? Can you post an example so we can see the behavior and examine the field properties?
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 7:59 am
by richmond62
-
No problems round here:
Code: Select all
on mouseUp
put empty into fld "fCLICKED"
wait 30 ticks
put the clickText into fld "fCLICKED"
end mouseUp
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 8:00 am
by richmond62
But allow others to ask support questions when all they're looking for is support.
And a very good morning to you too.

-
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 8:06 am
by richmond62
Here's another thought:
-
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 8:15 am
by richmond62
Code: Select all
on mouseUp
put empty into fld "fCLICKED"
wait 30 ticks
put the clickText into fld "fCLICKED"
end mouseUp
The ONLY reason for:
Code: Select all
put empty into fld "fCLICKED"
wait 30 ticks
is so it is possible to see if a
second click on the same line works.
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 9:46 am
by Klaus
I am with Richmond here, Richard, a little "Hello" or something will never hurt for the very first posting!
@ robinul
Welcome to the forum!
I usually use -> the selectedtext in the fields script
Code: Select all
on mouseup
put the selectedtext of me into field "the clicked text"
end mosueup
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 10:26 am
by FourthWorld
Agreed, Klaus, an introduction never hurts. But I don't believe it should be presented as an expectation. I've never provided one, and I don't think most of the regulars here have either. We just spend time together. And a welcoming environment that lets people do what they want to do encourages them to come back. If they come back often, we'll get to know them. If they don't, it doesn't matter.
In a forum like this, the Profile feature is effectively the introduction. People share what they want to share. And if all they're here for is technical support, as a technical support forum that seems a good use of this resource.
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 10:47 am
by Klaus
I knew you would response something like this.
However, maybe it is my age, I was educated to introduce myself first and then ask what I want to ask.
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 12:43 pm
by robinul
FourthWorld wrote: ↑Wed Apr 20, 2022 7:57 am
Richmond, perhaps not everyone has the same belief. People use forums different ways. If you want to be social, use it that way. But allow others to ask support questions when all they're looking for is support.
robinul, is the toggleHilites property of the field set to true? Can you post an example so we can see the behavior and examine the field properties?
Wow. An immediate solution after trying for days to sort things out. The toggle setting was what I needed. Thanks so much for the clear help. As for an introduction, I am a retired professor who worked with Hypercard, MetaCard, Revolution and LiveCode, but all of this almost 20 years ago when I was developing software to help students with Ancient Greek. In retirement, I was curious with what I might be able to do with LiveCode now and was surprised at how much could be quickly done--in spite my blindness about toggle. Again, thanks everyone. I am sure I'll be back.
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 4:32 pm
by jacque
Klaus wrote: ↑Wed Apr 20, 2022 10:47 am
I knew you would response something like this.
However, maybe it is my age, I was educated to introduce myself first and then ask what I want to ask.
Sorry but I'm with Richard on this one. You rarely see social introductions on other tech forums, and when a response is only a request for one it can sound like an accusation. Maybe that's because I'm American. We do things differently.
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 8:07 pm
by dunbarx
I also think an introduction is nice, but NOT to be expected in any way.
Remember that the old-timers here see this forum as a place to schmooze, trade friendly insults and play around with LC. A new member sees it as a remote and opaque entity, hopefully useful, and likely would think such pleasantries are untoward.
Craig
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 8:10 pm
by dunbarx
But since most new members actually do receive invaluable advice, a "Thank you" is certainly proper at that time.
That invariably actually happens.
Craig
Re: clickText in scrolling List field
Posted: Wed Apr 20, 2022 8:46 pm
by FourthWorld
robinul wrote: ↑Wed Apr 20, 2022 12:43 pm
FourthWorld wrote: ↑Wed Apr 20, 2022 7:57 am
Richmond, perhaps not everyone has the same belief. People use forums different ways. If you want to be social, use it that way. But allow others to ask support questions when all they're looking for is support.
robinul, is the toggleHilites property of the field set to true? Can you post an example so we can see the behavior and examine the field properties?
Wow. An immediate solution after trying for days to sort things out. The toggle setting was what I needed. Thanks so much for the clear help.
Glad that worked out.
As for an introduction, I am a retired professor who worked with Hypercard, MetaCard, Revolution and LiveCode, but all of this almost 20 years ago when I was developing software to help students with Ancient Greek. In retirement, I was curious with what I might be able to do with LiveCode now and was surprised at how much could be quickly done--in spite my blindness about toggle. Again, thanks everyone. I am sure I'll be back.
We look forward to it. As you can see, these forums are quite active. Anytime you have a question that's stalling your work, drop it here. There are members in nearly every time zone, so you can often find an answer waiting for you when you return just an hour later, no matter what time of day that may be.