MultiCam Preview

Resolved most part of the problem need help to
this part that seems simple but I am not
managed to solve, I have to change the value of line
chosen from the value of the spinner
in a listview. vol post another test after I q!

sorry the bad english!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
lunatico-boy's picture

Help Me!!

Help Me!!

lunatico-boy's picture

my test code

my test code

try(destroyDialog testList)catch()
 
rollout testList "List" width: 400 height: 230
(
	--criar list
	global obj_Array = #()
 
	dotNetControl lv "ListView" width: 380 height: 180
	spinner spn "Control"
 
	on spn changed val do
	(
		val = val as string
		-- Item checked = val 
	)
	fn arrayV tempLv=
	(
		obj_Array = $* as array
		rows=#()
		for x in obj_Array do 
		(
			li=dotNetObject "System.Windows.Forms.ListViewItem" x.name
			li.subitems.add "tempo novo"
			li.subitems.add "Tudo Novo"
			append rows li
		)
		tempLv.items.addRange rows
	)
 
	fn setings tempLv =
	(
		tempLv.view=(dotNetClass "system.windows.forms.view").details
		tempLv.Sorting = (dotNetClass "System.Windows.Forms.SortOrder").Ascending
		tempLv.CheckBoxes = true
		tempLv.FullRowSelect=true
		tempLv.GridLines=true		 
		tempLv.MultiSelect=true		
 
		layout_def = #("Camera", "Frames", "Resolution")
 
 
		for i in layout_def do
			tempLv.Columns.add i 90
	)
		on testList open do
	(
		arrayV lv
		setings lv
	)
 
 
	)
createdialog testList

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.