I got to work by creating a sub form for row 4 as column 1 of a bogus table
#COM_OWNER.Set_Table Name(PriDet) Layout_Col(1) Layout_Row(4) Layout_Cols(-1) Col_N(1) Col_Name(PriDetRow) Col_Width(Fill)
#COM_OWNER.Set_Form Name('PriDet.Col%1.CONTENT') Grid_Row_N(4) Grid_Col_N(3) Grid_Col_Width(Fill) Distributecols(Last)
#COM_OWNER.Using Element('PriDet.Row%1.PriDetRow.FIELDS') Alwaysrememberlast(True)
Is there a way to accomplish this without the table so that the whitespace is not around the border of my price table?
When 1 table is bigger than screen width
Re: When 1 table is bigger than screen width
Notice it works now if in separate sub form as described above and the price table does NOT use layout_cols
Last edited by stevec on Mon May 19, 2014 2:17 pm, edited 2 times in total.
Re: When 1 table is bigger than screen width
Notice table not filling width. If I change table to layout coils -1 it does but then next example will not scroll column headings
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: When 1 table is bigger than screen width
Try Grid_Cellspacing(0) on the subform you have created to contain the table to remove the padding.
You might also set Padding() for the subform or for the Table within it.
For the bottom table - the width seems to be variable - sometimes it is wider than the (main) form and sometimes it is narrower?
When it is narrower - do you want it to stretch always stretch out to fill the width of the main form - but when it is wider it should scroll from side to side? In that case you could try a minimum size of 100% (or maybe Fill) and maximum size of Fit (or maybe a big number like 3000). These would be on the table I think.
The main thing here is that the main (parent) form is now appears to be laid out okay.
So you are working with the layout only within the sub-form.
You might also set Padding() for the subform or for the Table within it.
For the bottom table - the width seems to be variable - sometimes it is wider than the (main) form and sometimes it is narrower?
When it is narrower - do you want it to stretch always stretch out to fill the width of the main form - but when it is wider it should scroll from side to side? In that case you could try a minimum size of 100% (or maybe Fill) and maximum size of Fit (or maybe a big number like 3000). These would be on the table I think.
The main thing here is that the main (parent) form is now appears to be laid out okay.
So you are working with the layout only within the sub-form.
Re: When 1 table is bigger than screen width
Tried all of this and cannot get rid of the white space.
I would like to stretch to screen width when smaller and let it scroll when bigger. But when I try you suggestion the table disappears altogether.
I also would like to fill vertical the table and that does not work either. Normally that is easy.
This is the frustrating part, getting stuck on this layout stuff. The business logic (works great)should be the focus not this ...
I would like to stretch to screen width when smaller and let it scroll when bigger. But when I try you suggestion the table disappears altogether.
I also would like to fill vertical the table and that does not work either. Normally that is easy.
This is the frustrating part, getting stuck on this layout stuff. The business logic (works great)should be the focus not this ...