iOS Question B4xtable: resize according to the width of the screen

voxel

Member
Licensed User
Hello, I have a code in B4a which allows you to resize the columns of a table according to percentages to adapt to the maximum width of the screen. That works well.
But by putting this same code under B4i, it does not work. I have the impression that the "%x" is put in "dip".
Thanks for your help.

B4X:
TabStat.AddColumn("Département", TabStat.COLUMN_TYPE_TEXT).Width = 12%x
TabStat.AddColumn("Total", TabStat.COLUMN_TYPE_NUMBERS).Width = 17%x
TabStat.AddColumn(etat1, TabStat.COLUMN_TYPE_NUMBERS).Width = 17%x
TabStat.AddColumn(etat3, TabStat.COLUMN_TYPE_NUMBERS).Width=17%x
TabStat.AddColumn(etat4, TabStat.COLUMN_TYPE_NUMBERS).Width = 17%x
TabStat.AddColumn(etat5, TabStat.COLUMN_TYPE_NUMBERS).Width = 17%x
 
Top