clickText in scrolling List field

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
robinul
Posts: 6
Joined: Sun Apr 17, 2022 3:16 pm

clickText in scrolling List field

Post by robinul » Wed Apr 20, 2022 1:47 am

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?

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: clickText in scrolling List field

Post by richmond62 » Wed Apr 20, 2022 7:43 am

Hello, my name is Richmond, and I think it is a good thing to introduce oneself in one's
first posting in a forum.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: clickText in scrolling List field

Post by FourthWorld » 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?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: clickText in scrolling List field

Post by richmond62 » Wed Apr 20, 2022 7:59 am

Screen Shot 2022-04-20 at 9.58.03 AM.png
-
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 64 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: clickText in scrolling List field

Post by richmond62 » Wed Apr 20, 2022 8:00 am

But allow others to ask support questions when all they're looking for is support.
And a very good morning to you too. 8)
-
Screen Shot 2022-04-20 at 10.01.46 AM.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: clickText in scrolling List field

Post by richmond62 » Wed Apr 20, 2022 8:06 am

Here's another thought:
-
Screen Shot 2022-04-20 at 10.06.11 AM.png

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: clickText in scrolling List field

Post by richmond62 » Wed Apr 20, 2022 8:15 am

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.

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: clickText in scrolling List field

Post by Klaus » Wed Apr 20, 2022 9:46 am

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

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: clickText in scrolling List field

Post by FourthWorld » Wed Apr 20, 2022 10:26 am

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: clickText in scrolling List field

Post by Klaus » 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.

robinul
Posts: 6
Joined: Sun Apr 17, 2022 3:16 pm

Re: clickText in scrolling List field

Post by robinul » 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. 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.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: clickText in scrolling List field

Post by jacque » Wed Apr 20, 2022 4:32 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9578
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: clickText in scrolling List field

Post by dunbarx » Wed Apr 20, 2022 8:07 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9578
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: clickText in scrolling List field

Post by dunbarx » Wed Apr 20, 2022 8:10 pm

But since most new members actually do receive invaluable advice, a "Thank you" is certainly proper at that time.

That invariably actually happens.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: clickText in scrolling List field

Post by FourthWorld » Wed Apr 20, 2022 8:46 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”