Scrolling List loses selection when switching card

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

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

Re: Scrolling List loses selection when switching card

Post by FourthWorld » Sun Mar 25, 2018 3:38 pm

You could also use a non-lost field as a list by scripting the hilite using a graphic object set to the current hilite color. :)

Personally, I prefer to let the engine handle common behavior they've built in support for.
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: 9359
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Scrolling List loses selection when switching card

Post by richmond62 » Sun Mar 25, 2018 5:10 pm

a non-lost field
You, what?

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

Re: Scrolling List loses selection when switching card

Post by Klaus » Sun Mar 25, 2018 5:18 pm

A non-LIST field!

As one could make out from the context of this thread. 8)

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

Re: Scrolling List loses selection when switching card

Post by richmond62 » Sun Mar 25, 2018 6:47 pm

A non-LIST field!

As one could make out from the context of this thread.
Ah, but I was "list". 8)
You could also use a non-lost field as a list
Err . . . and I could also use a large lump of blue-cheese as a table.

I wonder what the point of that remark was?

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

Re: Scrolling List loses selection when switching card

Post by FourthWorld » Sun Mar 25, 2018 7:22 pm

To encourage newcomers to let the engine handle common tasks where it can, and save scripting for the things not already built into the engine.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Scrolling List loses selection when switching card

Post by bogs » Sun Mar 25, 2018 7:36 pm

FourthWorld wrote:
Sun Mar 25, 2018 7:22 pm
To encourage newcomers to let the engine handle common tasks where it can
...and to give you a nibble of table at the seat near the cheese. I can offer you a very nice Cabernet to go with that table your sitting at... :wink:
Image

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

Re: Scrolling List loses selection when switching card

Post by richmond62 » Sun Mar 25, 2018 9:18 pm

let the engine handle common tasks where it can
That would be marvellous if all the instances where the engine can handle common tasks
were adequately documented in a way that "newcomers" could understand.

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

Re: Scrolling List loses selection when switching card

Post by FourthWorld » Sun Mar 25, 2018 11:13 pm

SharedText is documented to share text within a field when the field resides in a group that's been placed on multiple cards.

The ability to share a group across multiple cards is documented as being governed by the sharedBehavior property.
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 - Complete Beginners”