Set alignment of ListIconGadget columns in PB 6

Mac OSX specific forum
Lebostein
Addict
Addict
Posts: 829
Joined: Fri Jun 11, 2004 7:07 am

Re: Set alignment of ListIconGadget columns in PB 6

Post by Lebostein »

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.
User avatar
Shardik
Addict
Addict
Posts: 2060
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Set alignment of ListIconGadget columns in PB 6

Post by Shardik »

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.
Post Reply