clickText in scrolling List field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
clickText in scrolling List field
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?
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: clickText in scrolling List field
Hello, my name is Richmond, and I think it is a good thing to introduce oneself in one's
first posting in a forum.
first posting in a forum.
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: clickText in scrolling List field
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?
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?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: clickText in scrolling List field
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
- Attachments
-
- CLICKETTY WICKETTY.livecode.zip
- Stack.
- (1.07 KiB) Downloaded 66 times
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: clickText in scrolling List field
And a very good morning to you too.But allow others to ask support questions when all they're looking for is support.
-
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: clickText in scrolling List field
Here's another thought:
-
-
-
- Livecode Opensource Backer
- Posts: 9389
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: clickText in scrolling List field
Code: Select all
on mouseUp
put empty into fld "fCLICKED"
wait 30 ticks
put the clickText into fld "fCLICKED"
end mouseUp
Code: Select all
put empty into fld "fCLICKED"
wait 30 ticks
Re: clickText in scrolling List field
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
@ 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
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: clickText in scrolling List field
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.
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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: clickText in scrolling List field
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.
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
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.FourthWorld wrote: ↑Wed Apr 20, 2022 7:57 amRichmond, 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?
-
- VIP Livecode Opensource Backer
- Posts: 7239
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: clickText in scrolling List field
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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 9670
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: clickText in scrolling List field
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
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
-
- VIP Livecode Opensource Backer
- Posts: 9670
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: clickText in scrolling List field
But since most new members actually do receive invaluable advice, a "Thank you" is certainly proper at that time.
That invariably actually happens.
Craig
That invariably actually happens.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: clickText in scrolling List field
Glad that worked out.robinul wrote: ↑Wed Apr 20, 2022 12:43 pmWow. 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.FourthWorld wrote: ↑Wed Apr 20, 2022 7:57 amRichmond, 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?
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.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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn