What to choose: Scrolling field or Basic table field

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Ultravibe
Posts: 65
Joined: Sat Jan 17, 2015 12:06 pm

What to choose: Scrolling field or Basic table field

Post by Ultravibe » Mon Jan 19, 2015 1:49 pm

Hi there!
With help of some guys (Klaus, thank U so much!) i made the interface for working with database.
Now i can:
- add the persons to database
- modify the person's data
- delete the persons
This data is stored in external file of SQLite

I'm showing this data in "Scrolling field" and here i got a problem:
When i retrieve data from database, diffrent fields separetes by "Tab" characters and different rows by "return" character.
Whole this text is placed in variable which i put in the scrolling field.
You can see how it looks in the picture attached to message.
Different cells located at different distance not as it looks in a table. What am I do?
Attachments
screenshot1.jpg

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: What to choose: Scrolling field or Basic table field

Post by Klaus » Mon Jan 19, 2015 2:04 pm

Hi Ultravibe,

if you will only DISPLAY data, then you should use a "simple" scrolling text field!
And since this is "just" an ordinary text field, you should set its TABSTOPS (the width of one TAB), see dictionary,
you can do so via script or in the Inspector for your field.

Hint: The guys are spelled:
John Cusack and Serge Gainsbourg
:D


Best

Klaus

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: What to choose: Scrolling field or Basic table field

Post by bn » Mon Jan 19, 2015 2:11 pm

Hi Ultravibe,

in the IDE in menu Development -> Plugins there is a plugin revTabRule.

Select that menu. Now in Edit mode you select your field. Then a ruler appears on top of the field and you can set the tabstops. The plugin asks you then if you want to save your settings.

That is the easiest way to set the tabstops in my opinion.

Kind regards
Bernd

Ultravibe
Posts: 65
Joined: Sat Jan 17, 2015 12:06 pm

Re: What to choose: Scrolling field or Basic table field

Post by Ultravibe » Mon Jan 19, 2015 8:31 pm

Klaus, thanks for the hint!)))))))
I choose the tabStops property and also hGrid & vGrid )))))))

Post Reply