ScriptSpot

Forum topic · General Scripting

MultiCam Preview

By lunatico-boy · 2011-05-23

Description

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 (2)

lunatico-boy · 2011-05-29

Help Me!!

lunatico-boy · 2011-05-27

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