Lonkero KiXforms Devotee


Joined: 13 Mar 2003 Posts: 1022 Location: Espoo, Finland
|
Posted: Sun Jun 11, 2006 3:31 am Post subject: listview column width? |
|
|
how can I access and alter the listview column width?
as there is no autoresize in kf .net, thought I could script it.
but can't get my hands on the right way to get there.
my current code is something like:
Code: |
function editorSizeChanged
dim $tab, $list, $total
for each $tab in $editorTabControl.items
$list = $tab.controls(0)
$total = $list.clientwidth
if $_editorListWidth
$total = $total - $_editorListWidth
endif
$list.columns.items(1).width = $list.columns.items(1).width + $total/2
$list.columns.items(2).width = $list.columns.items(2).width + $total/2
next
$_editorListWidth = $total
endfunction
|
and I've tried without the items:
Code: |
function editorSizeChanged
dim $tab, $list, $total
for each $tab in $editorTabControl.items
$list = $tab.controls(0)
$total = $list.clientwidth
if $_editorListWidth
$total = $total - $_editorListWidth
endif
$list.columns(1).width = $list.columns(1).width + $total/2
$list.columns(2).width = $list.columns(2).width + $total/2
next
$_editorListWidth = $total
endfunction
|
with no success.
what am I missing? _________________ Hammer |
|