tab sizes

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
jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

tab sizes

Post by jalz » Tue Sep 16, 2014 11:28 pm

Hey all,

Is it possible to adjust the the tab size, in particular to increase it? I've got a field, which contains 6 rows and 2 columns and I'm trying to line the second column using a single tab. At present I am using a range of one to a couple of tabs on some rows as well as a space on another.

Many thanks

Jalz

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

Re: tab sizes

Post by dunbarx » Wed Sep 17, 2014 4:23 am

Do you have a table field? The tabstops are accessible in the inspector.

is that what you meant?

Craig Newman

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

Re: tab sizes

Post by bn » Wed Sep 17, 2014 7:29 am

Hi Jalz,

in menu "Development" -> "Plugins" choose "revTabRuler". In edit mode click the field you want to change and set the tabs. You have to select a field to make "rebTabRuler" visisble.

Otherwise as Craig says, in properties inspector for the field -> choose menu "table" and see "tabstops" at the bottom.

Kind regards
Bernd

jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

Re: tab sizes

Post by jalz » Wed Sep 17, 2014 1:03 pm

Hi Bernd,

That is exactly what I needed. The ruler allowed me to move the second column neatly across. Is it possible to do this programmatically? In my report, that particular field gets deleted and recreated.

Craig, no its not a table field, its just a Label, with data inserted in it via line 1, 2 3 etc. It seems to look OK apart from the last row where the data in text is 3 characters too long.

Thanks
Jalz

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

Re: tab sizes

Post by Klaus » Wed Sep 17, 2014 1:09 pm

Hi jalz,
jalz wrote:Craig, no its not a table field, its just a Label, with data inserted in it via line 1, 2 3 etc.
Craig did not tell you to use a TABLE field, he only mentioned that the TABSTOPS can be found and set in the TABLE section of the fields inspector! 8)


Best

Klaus

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

Re: tab sizes

Post by bn » Wed Sep 17, 2014 1:10 pm

Hi Jalz,
Is it possible to do this programmatically?
yes

once you have set the tabs go to properties inspector, menu tables, tabstops

note the values and in code you say

set the tabstops of field "myField" to "140,200" or some such.

you could also use tabwidths, which are the width of tabs (tapStops are pixel position)

set the tabWidths of field "myField" to "120,100"

Kind regards
Bernd

jalz
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 340
Joined: Fri Sep 12, 2008 11:04 pm

Re: tab sizes

Post by jalz » Wed Sep 17, 2014 1:49 pm

Hi All,

Thanks Klaus for clarifying. Yes Tabstops works as well Craig, sorry missed that in my haste.......

Thanks Bernd for the line of code.

Jalz

Post Reply