Windows 10, 64 bit, Desktop
LC 8.1.2
I am trying to create a table (or list) field not using the data grid.
Now, I am using a tab delimited list which I want to present in the standard field formatted with a table style. I am calculating the maximal formattedWidth of each column (longest string in each column) to set the size of each column of the table to that size.
Finding the max formattedWidth I can set the tabStops value as a comma-delimited list and set the tabStops of the field to this list. It works. Also, for columns containing numbers, I want them to show right-aligned. This also works setting the tabAlign.
I found that LC is not always adding up the widths of columns. So, I am specifying the absolute pixel value starting from 0 for each column start rather than entering the column size.
So, instead of using, for example, "50,50,110" to set the column width to such values, I must use "50,100,210". Otherwise, the output will be unexpected.
PROBLEMS WiTH CHARACTERS NOT FULLY SHOWING
- Generally, all columns appear to be too small to really show the full width of each line which means all characters of such column cell. I can add spaces before or after each column cell in each line, but I think this is not what I should be doing.
- This is for right-aligned columns:
The last character in each line is only half visible when the vertical grid is turned on.
Is this only on my computer, or only in Windows?
QUESTIONS ABOUT VISUAL PRESENTATION OF GRIDS IN FIELDS
I could not yet find a way to set the color and thickness of the grid lines to anything in a standard field which was turned into a table field. Are there any properties that could be set except visible or not visible? Or where to search for this? I could not yet find in the dictionary.
What I really would like to achieve are table fields (grids) that look like CSS styled grids in HTML with a lot of elements that can be formatted and styled: Thickness of lines, colors of all elements, spaces between content and outside border, etc.
Maybe it is possible building a "fake" grid using a large number of fields aligned to each other, but even then I would have to draw graphic objects such a lines and rectangles etc. to have a visual appearance that will satisfy the user. Is this right?
Kind greetings to you all
and many many thanks for answers
HHH
Characters not well visible in table fields
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 57
- Joined: Sat Jan 14, 2017 6:44 pm
Re: Characters not well visible in table fields
Hi.
Not at my computer right now, but there are two ways to set tab stops in a table field.
One is to set a comma delimited list of widths, and the other is to set the tab stop values themselves, also in a comma delimited list in the inspector. The math is sort of done for you if you look at the inspector "table" pane, after setting the widths from outside.
Craig Newman
Not at my computer right now, but there are two ways to set tab stops in a table field.
One is to set a comma delimited list of widths, and the other is to set the tab stop values themselves, also in a comma delimited list in the inspector. The math is sort of done for you if you look at the inspector "table" pane, after setting the widths from outside.
Craig Newman