Table Control of FIRSTCELL and LASTCELL properties

I haven't found anything on this so I thought I ask.

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.
Quote:
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?


Yes, use the ModifyTable selection keyword. But I don't think that addresses your issue.

Quote:
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.


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:
DisplayHelpTopic "Saving a Window as a Recreation Macro"


Also do the first half of the guided tour by choosing Help->Getting Started. It has a section that walks you through recreation macros.


Sorry it's later here...
Have a look at the "Autosize" key from ModifyTable.
displayhelptopic "ModifyTable"

I used something like this:
Make /N=1 /T test="Lorem ipsum dolor sit whaterver I'm too tired"
Edit /W=(200,100,600,700) test
ModifyTable Alignment=0, Autosize={0,0,-1,0,0}


HJ
Quote:
Have a look at the "Autosize" key from ModifyTable.


Good suggestion. I forgot about that.
After further review ... ModifyTable autosize is useful but it does not change the width of the table window which is what I think the original poster was interested in.

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.

Actually
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!