OK, let's summarize. There is no way to right-align or center the columns without breaking the PureBasic integration with all its possibilities. Then please build the alignment of the columns into the PB command set. What is a table with numbers without a right-aligned alignment??? This is the most basic formatting of such a tool. This MUST be part of PureBasic.
We seem to have limited access to the gadget from the outside, so the change has to be made from the inside.
Set alignment of ListIconGadget columns in PB 6
Re: Set alignment of ListIconGadget columns in PB 6
I have posted a new example that demonstrates how to justify text in the columns of a ListIconGadget. It works in PB 5.73 and earlier and in PB 6.00 and newer. It still uses the procedure SetListIconColumnJustification() but needs a callback in PB 6.00 and newer as deseven has already stated. The callback and its handling is automatically generated in PB 6.00 but not in PB 5.73 where it isn't necessary. The used technique was also successfully tested with multiple ListIconGadgets in PB 5.73 and PB 6.00.
The procedure SetListIconColumnJustification() was extended to separately change the justification of header cells and columns.
The procedure SetListIconColumnJustification() was extended to separately change the justification of header cells and columns.