Table row height
Table row height
Working on a application for fuel deliveries. Need things BIGGER for drivers to more easily select things like a table row. Not having any luck with rowheight on set_table. Tried number (pixel I assume) an percent, no affect.
-
tsupartono
- Posts: 289
- Joined: Wed Apr 18, 2012 10:21 am
Re: Table row height
You can set the CellPadding property of the table to increase the spacing between the cells (increasing the TOP and BOTTOM padding would be sufficient as you want bigger height).
For example, if your table is called MyTable, using direct property access method:
You can also increase the font size of the texts in the rows:
For more information on direct property access method:
http://www.longrangemobile.com/docs/lan ... erties.htm
For example, if your table is called MyTable, using direct property access method:
Code: Select all
#COM_OWNER.Using Element('/Form.Fields')
#COM_OWNER.Using Element(MyTable)
#COM_OWNER.Set Property(CellPadding.Top) To('10')
#COM_OWNER.Set Property(CellPadding.Bottom) To('10')
. . .
Code: Select all
#COM_OWNER.Using Element('/Form.Fields')
#COM_OWNER.Using Element(MyTable)
#COM_OWNER.Set Property(Col%1.Header.Text) To('Address')
#COM_OWNER.Set Property(Col%1.Name) To('Address')
#COM_OWNER.Set Property(Col%1.Content.Font.Size) To('25')
. . .
http://www.longrangemobile.com/docs/lan ... erties.htm
Re: Table row height
Thanks. The celpadding on set_table also worked.
What is rowheight for then on set_table?
What is rowheight for then on set_table?
-
tsupartono
- Posts: 289
- Joined: Wed Apr 18, 2012 10:21 am
Re: Table row height
The 'RowHeight' property does actually work, however there are two things to note here:
- I can confirm that setting RowHeight property using the RDML wrapper Set_Table command does NOT work.
However, the direct property access method works. Example:Code: Select all
#COM_OWNER.Set Property(Table1.RowHeight) To('70') - We would generally discourage the use of absolute width/height values as you would almost always have to adjust them when you change other attributes, such as font size. Also - if some of the text in the table row wraps, it will most likely get truncated if you have a fixed row height. Using CellPadding avoids these situations.