KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

listview column width?

 
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion
View previous topic :: View next topic  
Author Message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Sun Jun 11, 2006 3:31 am    Post subject: listview column width? Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> KiXforms.NET Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group