Control Container?

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
2hup
Posts: 24
Joined: Tue Nov 17, 2015 8:03 pm

Control Container?

Post by 2hup » Thu Dec 03, 2015 9:28 pm

Hello LiveCoders!
I have a new problem I hope you can guide me in solving. I have an image below to illustrate.
I need to be able to query a database, and have text from matching records displayed in controls. I am using scrolling fields in the illustration. There is a scrollbar (which I haven't used yet, but can probably find an example), allowing user to scroll through a list of controls. For now, I plan to define the size of these objects to all be uniform, as shown.
I don't want to use a grid control, unless I can achieve basic look and feel as shown in illustration.


Image

Thanks! Any samples or hints are appreciated!

Brad

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

Re: Control Container?

Post by dunbarx » Thu Dec 03, 2015 9:54 pm

Hi.

So you intend to group these fields so that you can scroll through any number of them as required? Not a problem; do you know how to do that?

If the list gets overly long, though, you will want to either page the data, or change the interface. How many fields do you anticipate? And are you sure that a table field is not appropriate? Multi-line entries, for example, might say "no".

Craig Newman

2hup
Posts: 24
Joined: Tue Nov 17, 2015 8:03 pm

Re: Control Container?

Post by 2hup » Thu Dec 03, 2015 10:15 pm

Craig - you are so smart. Yes, the data will be multi-line text. I want this to look/feel a bit like note cards. The number could become large and I will tackle how I will page through the data once I get through the interface. I could, I suppose, have a fixed number of visible cards and give the effect of scrolling, by moving the data.

No, I don't know how to use the scrollbar yet.

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

Re: Control Container?

Post by dunbarx » Fri Dec 04, 2015 2:44 am

Smart?

John Von Neumann was smart. I just like to play around with xTalk.

Have you thought of a "rolodex" style of interface? In other words, is it necessary, or pleasing, to see a group of fields in a glance? With a rolodex (which is how HC was originally presented, 30 years ago), there is no limit to the number of fields, and scrolling occurs sort of vertically into the page, instead of the usual up and down.

Just a thought.

Craig

sritcp
Posts: 431
Joined: Tue Jun 05, 2012 5:38 pm

Re: Control Container?

Post by sritcp » Fri Dec 04, 2015 3:35 pm

dunbarx wrote:Smart?
John Von Neumann was smart. ........
Craig
Just a week after the hundredth anniversary of what is considered the greatest theory to come out of the human mind, I would have thought the name of a certain disheveled guy might have occurred to you. :D

Regards,
Sri

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

Re: Control Container?

Post by dunbarx » Fri Dec 04, 2015 4:04 pm

Sri.

Einstein was pretty bright, all right, but he had to ask mathematicians Tulio Levi-Cevita and Gregorio Ricci-Curbastro how to implement his ideas in a formal manner. He had the idea, they had the tools (the differential calculus, the tensor). Like Newton, Einstein had to develop a new mathematics in order to frame his idea. That sort of thing is only required by the finest minds.

The idea itself was indeed likely the highest achievement, of all time, in human thought. An entirely new world view. It has been said that if Einstein never lived, we might well have had the Special Theory (Poincare was a possible candidate) but we might never have had the General Theory. This statement may be apocryphal, but it sounds nice, and makes one feel good about being part of the human race. We need that sort of thing now and again.

John von Neumann was probably smarter, though.

Craig

sritcp
Posts: 431
Joined: Tue Jun 05, 2012 5:38 pm

Re: Control Container?

Post by sritcp » Fri Dec 04, 2015 4:55 pm

dunbarx wrote:Sri.
....... he had to ask mathematicians Tulio Levi-Cevita and Gregorio Ricci-Curbastro how to implement his ideas in a formal manner.........
Craig
Sure, and he sought the assistance of his classmate Marcel Grossman, too, to be tutored on some math. In the context of the grandeur of his discovery, this is like asking a friend who knows how to drive to take you to a place no one knew existed and only you knew how to get to. All great men stand tall and see far because they stand on the shoulders of giants, but few depended on others for their greatness as little as Einstein. To quote C.P. Snow (sorry for the long quote)

"Einstein, twenty-six years old, only three years away from crude privation, still a patent examiner, published in the Annalen der Physik in 1905 five papers on entirely different subjects. Three of them were among the greatest in the history of physics. One, very simple, gave the quantum explanation of the photoelectric effect—it was this work for which, sixteen years later, he was awarded the Nobel prize. Another dealt with the phenomenon of Brownian motion, the apparently erratic movement of tiny particles suspended in a liquid: Einstein showed that these movements satisfied a clear statistical law. This was like a conjuring trick, easy when explained: before it, decent scientists could still doubt the concrete existence of atoms and molecules: this paper was as near to a direct proof of their concreteness as a theoretician could give. The third paper was the special theory of relativity, which quietly amalgamated space, time, and matter into one fundamental unity. This last paper contains no references and quotes to authority. All of them are written in a style unlike any other theoretical physicist's. They contain very little mathematics. There is a good deal of verbal commentary. The conclusions, the bizarre conclusions, emerge as though with the greatest of ease: the reasoning is unbreakable. It looks as though he had reached the conclusions by pure thought, unaided, without listening to the opinions of others. To a surprisingly large extent, that is precisely what he had done."
if Einstein never lived, we might well have had the Special Theory (Poincare was a possible candidate) but we might never have had the General Theory. This statement may be apocryphal
No, it is not. C.P. Snow is the culprit, again.
John von Neumann was probably smarter, though.
Einstein himself said "Imagination is more important than knowledge".

As an aside, personally, I think smartness is overrated; (and goodness, underrated.)

Regards,
Sri.

2hup
Posts: 24
Joined: Tue Nov 17, 2015 8:03 pm

Re: Control Container?

Post by 2hup » Fri Dec 04, 2015 5:19 pm

OMG - let's try to stay on topic guys :D
Now I feel really stupid!

2hup
Posts: 24
Joined: Tue Nov 17, 2015 8:03 pm

Re: Control Container?

Post by 2hup » Fri Dec 04, 2015 5:24 pm

dunbarx wrote: Have you thought of a "rolodex" style of interface?
Craig

So, I am planning to use tags to help organize these items, so I was thinking I could create stacks of items, by tag. Say I queried on tag A, I might have stacks of items that also contain Tag E, Tag Y and Other (3 stacks). Could help me limit by say 4-6 stacks - whatever seems to fit best - and avoid the scrolling.

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

Re: Control Container?

Post by dunbarx » Fri Dec 04, 2015 7:28 pm

Why use multiple stacks? Why not just multiple cards on one stack?

Craig

2hup
Posts: 24
Joined: Tue Nov 17, 2015 8:03 pm

Re: Control Container?

Post by 2hup » Mon Dec 07, 2015 8:13 pm

Sorry Craig - I didn't mean LC stacks and cards. I meant conceptually, I could stack these items like cards - kind of the rolodex concept you pitched.

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

Re: Control Container?

Post by dunbarx » Mon Dec 07, 2015 9:46 pm

Ah,

The "rolodex" metaphor is perfect for certain displays of data. You can sweep from one to another with special effects if you like, and management is very simple. BackGrounds are powerful tools in this sort of thing, and that fields can share (or not share) their text is a real pleasure. Finding information is a snap. The only possible issue is that, unlike HC, which basically did not care, LC starts to get sluggish if you have more than a handful or two of thousands of cards.

Craig

Post Reply