Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to have nested Listviews inside Container (Panel1, Panel2) and have "standard" methods over them. At the end container should be places inside scripted modifier. Unfortunately my attached code doesn't return anything on ItemSelectionChanged method wherever it sits.
Any advice please?
try(destroyDialog testR)catch() rollout testR "Test" width:400 height:400 ( dotnetcontrol pn "MaxCustomControls.MaxUserControl" width:390 height:390 pos:[5,5] dotnetcontrol lsv1 "Listview" height:50 dotnetcontrol lsv2 "Listview" on testR open do ( lvops.InitListView lsv1 pInitColumns:#("Object") pAllowReorder:false pCheckBoxes:false pLabelEdit:False pInitColWidths:#(50) lsv1.dock = lsv1.dock.fill lvops.InitListView lsv2 pInitColumns:#("Object") pAllowReorder:false pCheckBoxes:false pLabelEdit:False pInitColWidths:#(50) lsv2.dock = lsv2.dock.fill sp1 = dotnetobject "SplitContainer" sp1.dock = sp1.dock.fill sp1.splitterWidth = 5 sp1.Panel1.controls.add lsv1 sp1.Panel2.controls.add lsv2 pn.controls.add sp1 for i=1 to 10 do ( lvops.AddLvItem lsv1 pTextItems:#(i as string) ) ) on lsv1 ItemSelectionChanged arg do ( format "Item index: % ### Item text: %\n" arg.ItemIndex arg.Item.Text ) ) createDialog testR
Solved! Go to Solution.