Table Control of FIRSTCELL and LASTCELL properties
MGHuber
When I create a table of say 15 columns
using
edit ColA,ColB,ColC....etc.
Igor creates a small table in the upper left corner. My problem is it shows (by default) the first 5 or 6 columns and one must use the horizontal scroll bar to see the other columns.
If I use the function
Tableinfo("",-2)
I see that two of the properties listed are FIRSTCELL and LASTCELL. Is there anyway to set these? In other words, can I modify a table (in code) so that all the columns are visible without needing to horizontal scroll? I usually use tables of 10-16 columns and would like them to be of minimal size yet still show the columns.
Yes, use the ModifyTable selection keyword. But I don't think that addresses your issue.
Make the table the right size when you create it using the Edit /W flag. To determine the right parameters, create a table, adjust its size, close it, and examine the recreation macro.
If you are not familiar with recreation macros, execute:
Also do the first half of the guided tour by choosing Help->Getting Started. It has a section that walks you through recreation macros.
July 9, 2015 at 03:20 pm - Permalink
Have a look at the "Autosize" key from ModifyTable.
displayhelptopic "ModifyTable"
I used something like this:
Edit /W=(200,100,600,700) test
ModifyTable Alignment=0, Autosize={0,0,-1,0,0}
HJ
July 10, 2015 at 08:22 am - Permalink
Good suggestion. I forgot about that.
July 9, 2015 at 04:16 pm - Permalink
It is possible but difficult to calculate a reasonable with for the table window. (You would have to parse the table recreation macro returned by WinRecreation). Consequently, I think my first post in this thread is the way to go.
July 10, 2015 at 10:03 am - Permalink
modifytable Alignment=0, Autosize={0,1,-1,0,0}
pretty much does (95% at least) what I want. This helps me a bunch.
Thanks for those suggestions!
July 10, 2015 at 01:59 pm - Permalink