silverfrost Site Admin
Joined: 29 Nov 2006 Posts: 191 Location: Manchester
|
Posted: Sun Sep 05, 2004 6:36 pm Post subject: Column width for %ls[multicolumn] |
|
|
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:
Code: | 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. |
|