#86631 - 2002-07-10 12:47 AM
Re: Unsorted KiXGUI ComboBox
|
rclarke
Starting to like KiXtart
Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
|
Thanks for trying it out Chris. All I can think is that contrary to the manual, the autosort property only works with a listbox, although I haven't tested it out yet. Alex, please can you put us out of our misery
|
Top
|
|
|
|
#86632 - 2002-07-10 03:20 PM
Re: Unsorted KiXGUI ComboBox
|
Chris S.
MM club member
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
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
|
Top
|
|
|
|
#86633 - 2002-07-11 09:38 AM
Re: Unsorted KiXGUI ComboBox
|
rclarke
Starting to like KiXtart
Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
|
Many thanks for answering that question Chris. I am also having issues with the SetAsDefault property, and the ChangeSysMenu & ShowFileBrowserXXXX methods (when stating a starting directory), but I'll save those problems for another day
Rod.
|
Top
|
|
|
|
#86636 - 2002-07-12 01:30 AM
Re: Unsorted KiXGUI ComboBox
|
Alex.H
Seasoned Scripter
Registered: 2001-04-10
Posts: 406
Loc: France
|
Ok guys, you catch me, i surrender
Kixtart, kixtart, what's new since 4.02 ... What the heck !!!
starting to remove dust from kixgui source directory ... launching vb ... tipitipitip ...
_________________________
? getobject(Kixtart.org.Signature)
|
Top
|
|
|
|
#86639 - 2002-07-12 01:56 PM
Re: Unsorted KiXGUI ComboBox
|
rclarke
Starting to like KiXtart
Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
|
Sounds fine to me, btw my first name is 'Rod' not 'Clarke'
|
Top
|
|
|
|
#86641 - 2002-07-12 02:18 PM
Re: Unsorted KiXGUI ComboBox
|
rclarke
Starting to like KiXtart
Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
|
My full name is Rodney Clarke, but most people call me Rod rather than Rodney. Superman, I am definitely not, but I have been known to wear my underpants on the outside
|
Top
|
|
|
|
#86642 - 2002-07-12 02:23 PM
Re: Unsorted KiXGUI ComboBox
|
Chris S.
MM club member
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
Waaaaayyyyy too much information.
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 557 anonymous users online.
|
|
|