I tried it with listbox as well during my testing, but it still sorted. I'll e-mail Alex and point him to this thread.
Oh, here's the script I tested with...
code:
; ListboxUse.k2k
;
; A demonstration script for KiXGUI
;
; Kixtart v4.01
; KiXGUI 1.0
;
; Done by Alex.H
break on
$root=createobject("KiXGUI.Desktop")
If not $root
? "KiXGUI not registered"
Exit 1
EndIf
$frmSample=$root.createform("frmSample","Listbox sample",200,100,220,180)
$=$frmSample.addtextbox("txtBox","",10,10,80,30)
;$Listbox=$frmSample.addlistbox("lstbox",110,10,80,100)
$Listbox=$frmSample.addcombobox("lstbox",110,10,80,100)
$listbox.onchange="Lstbox_change"
$=$frmSample.addlabel("lblBox","Click on a line in the listbox",40,120,200,30)
$Listbox.additem("Current Domain")
$Listbox.additem("No Prefix")
$Listbox.additem("Current Workstation")
;$Listbox.additem("Sample 4")
;$Listbox.additem("Sample 5")
;$Listbox.additem("Sample 7")
;$Listbox.additem("Sample 8")
;$Listbox.additem("Sample 6")
$listbox.Autosort=0
$frmsample.visible=1
while $frmSample.visible=1
$=execute($frmsample.lastevent)
loop
quit()
function Lstbox_change
$frmsample.controls("txtBox").caption=$Listbox.item($Listbox.listindex)
endfunction