PDA

View Full Version : Specify individual column width



ernpchan
03-06-2015, 03:58 PM
Is it possible to specify the width of specific columns? The code below looks to be a global setting.


def column_width(self, control, userdata, row):
if row >= len(multi_text[0]):
return 0
return 200

Sensei
03-06-2015, 11:06 PM
Args have wrong name,
column_width has column arg, not row.
if( col == 0 ) return( 10 );
else if( col == 1 ) return( 100 );
etc.
return( 0 );

ernpchan
03-06-2015, 11:17 PM
Oh interesting. Thanks!