Silverfrost Forums

Welcome to our forums

Column width for %ls[multicolumn]

5 Sep 2004 5:36 #2

There is no facility in ClearWin for doing this, however, you can use the Windows API routine SendMessage in combination with %lc to set the column width. Here is an example:

i = winio@('%100.10ls[multicolumn]%lc%lw', items, 4, selected, ls_handle, window_control)
call SendMessage(ls_handle, LB_SETCOLUMNWIDTH, widthInPixels, 0);

The widthInPixels argument is an integer, and the last argument is not used.


-- Admin Silverfrost Limited
This forum is locked.