Page 1 of 1

tab sizes

Posted: Tue Sep 16, 2014 11:28 pm
by jalz
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

Re: tab sizes

Posted: Wed Sep 17, 2014 4:23 am
by dunbarx
Do you have a table field? The tabstops are accessible in the inspector.

is that what you meant?

Craig Newman

Re: tab sizes

Posted: Wed Sep 17, 2014 7:29 am
by bn
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

Re: tab sizes

Posted: Wed Sep 17, 2014 1:03 pm
by jalz
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

Re: tab sizes

Posted: Wed Sep 17, 2014 1:09 pm
by Klaus
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

Re: tab sizes

Posted: Wed Sep 17, 2014 1:10 pm
by bn
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

Re: tab sizes

Posted: Wed Sep 17, 2014 1:49 pm
by jalz
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