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: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Scrolling List loses selection when switching card

Post by FourthWorld »

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: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Scrolling List loses selection when switching card

Post by richmond62 »

a non-lost field
You, what?
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Scrolling List loses selection when switching card

Post by Klaus »

A non-LIST field!

As one could make out from the context of this thread. 8)
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Scrolling List loses selection when switching card

Post by richmond62 »

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: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Scrolling List loses selection when switching card

Post by FourthWorld »

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: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Scrolling List loses selection when switching card

Post by bogs »

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: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: Scrolling List loses selection when switching card

Post by richmond62 »

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: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Scrolling List loses selection when switching card

Post by FourthWorld »

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