Lots of Scrolling Text Fields

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

Post Reply
RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Lots of Scrolling Text Fields

Post by RossG » Fri May 06, 2016 6:20 pm

My programme now has 24 scrolling text fields (and counting)
which appear as necessary but the problem is getting the
visible field to close so that another can be opened.

Is it possible to have a "Close" button in these fields
or is there some other object more suitable for this?

Generally I have it to set the "visible" of all of them
to "false" when another one is to be opened but due
to space limitation not always possible.

BTW after spending some time trying to get all these
fields operating correctly I discovered the joys of
"repeat for each item..." so now they're deleted when
the prog. is closed and cloned afresh from one named
as a template when it's started.

Now if I want to mod them I only have to do it once!

Is there no limit to the joys of LC
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Lots of Scrolling Text Fields

Post by dunbarx » Fri May 06, 2016 8:20 pm

Hi.

Sometimes when you run up against things like this it is time to ask the question: "Am I going down the wrong path?"

That might lead you to think of the possibility of having a single scrolling field, and populate it with 24 different data sets, stored perhaps in a custom property.

Or not.

Currently, is there only one field showing? And when you "close" that field, how do you do that? You should be able to script a hiding gadget based on some action you take. In other words, what might do instead of having those fields have close boxes? You can do that, of course, if you make custom grouped objects.

Craig Newman

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: Lots of Scrolling Text Fields

Post by RossG » Fri May 06, 2016 9:53 pm

dunbarx wrote:Hi.

Sometimes when you run up against things like this it is time to ask the question: "Am I going down the wrong path?"

That might lead you to think of the possibility of having a single scrolling field, and populate it with 24 different data sets, stored perhaps in a custom property.

Or not.

Currently, is there only one field showing? And when you "close" that field, how do you do that? You should be able to script a hiding gadget based on some action you take. In other words, what might do instead of having those fields have close boxes? You can do that, of course, if you make custom grouped objects.

Craig Newman
"Am I going down the wrong path?"
A question I've asked myself a few times.

Only one field shows at a time and I've got a button which
sets visible to "false".

Solution 1: Add a line with item 1 = XXX say and when
clicked on sets visible.

Solution 1: Put the scrolling fields in a separate stack
(is that the right word? Never use them.) Then it would
(I presume) have a close button on the top bar.

Anyway it's not big problem but just for completeness.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

Post Reply