YAY! More gadgets to mess around with ^^
Are there any bugs in this version?
twInitGui
temp=twMakeWindow("test", 200, 400, 0, 0, 16,twgetdbprogadget())
temp1=twMakeButton(temp, "button",120,20,50,25,0)
temp3=twMakelistbox(temp,10,10,100,100,0)
temp4=twAddlistboxString(temp3,"1")
temp5=twAddlistboxString(temp3,"2")
temp6=twAddlistboxString(temp3,"3")
temp5=twAddlistboxString(temp3,"4")
temp6=twAddlistboxString(temp3,"5")
temp7=twmakecombobox(temp,10,110,100,100,0)
temp8=twAddcomboboxString(temp7,"1")
temp9=twAddcomboboxString(temp7,"2")
temp0=twAddcomboboxString(temp7,"3")
temp11=twmaketreeview(temp,10,140,100,50,0)
temp12=twaddtreeviewrootitem(temp11,"1")
temp13=twAddTreeViewItem(temp11, temp12, "1.1")
temp14=twAddTreeViewItem(temp11, temp12, "1.2")
temp15=twAddTreeViewItem(temp11, temp12, "1.3")
temp16=twAddTreeViewItem(temp11, temp12, "1.4")
temp17=twAddTreeViewrootItem(temp11,"2")
temp18=twAddTreeViewItem(temp11, temp17, "2.1")
temp19=twMakeEdit(temp, "text$", 10, 200, 100, 100, 0)
do
cls
if twGetGadgetLeftClickCount(temp1)=1
string$=twOpenFileBox(temp1, "*.bmp*",0)
endif
text 0,20,str$(twGetcomboBoxSelection(temp7))
text 0,00,str$(twgetlistboxselecteditem(temp3))
if twgettreeviewselection(temp11)<>0 then text 0,40,(twGettreeviewitemtext(twGetTreeViewSelection(temp11)))
text 0,60,"file:"+string$
loop
When I run this in my computer twgetlistboxselecteditem() only returns 0 and 1. First item returns 0 and if any other item is selected it returns 1.
twGettreeviewitemtext(twGetTreeViewSelection(temp11)) always returns 0 but I'm not sure I'm using it properly.
Any idea what's wrong?
P.S: Can't wait for next update
Take care
AtomR