Notifications
Clear all
[Closed] Need Help to set up renderer for this assembly
May 29, 2013 6:27 pm
try (destroyDialog dialog) catch()
dotnet.loadassembly "D:\\script file\\Thumb Viewer\\ImageListView From Google\\ImageListView.dll"
ilv =dotnetobject "Manina.Windows.Forms.ImageListView" --"Manina.Windows.Forms.ImageListView"
showProperties ilv
theR=dotnetclass "Manina.Windows.Forms.ImageListViewRenderers" --this is suppose to be can be a renderer but cant set it
showEvents theR
ff=dotnetclass "System.Windows.Forms.BorderStyle"
showproperties ff
rollout dialog "Image List View" width:300 height:300
(
dotnetcontrol maskDotNet "System.Windows.Forms.Label" pos:[2,2] width:300 height:300
on dialog open do
(
clearListener()
theColor =(dotNetClass "System.Drawing.Color")
--showProperties ilv
--showEvents ilv
showmethods ilv
--thumbs=#()
ilv.Items.Clear()
ilv.ClearThumbnailCache()
--ilv.SetRenderer(theR) --(theR.NoirRenderer())
--a=dotnetobject "Manina.Windows.Forms"
ilv.Width=300
ilv.height=300
ilv.AllowDrag = true
ilv.AutoRotateThumbnails = true
ilv.ThumbnailSize=dotnetobject "System.Drawing.Size" 150 150
ilv.BackColor=theColor.fromArgb 255 255 255
ilv.ForeColor=theColor.fromArgb 150 150 150
ilv.BorderStyle = ((dotnetclass "System.Windows.Forms.BorderStyle").FixedSingle)
ilv.View=(dotnetClass "Manina.Windows.Forms.View").Thumbnails --Details, Gallery, Pane and Thumbnails
ilv.SetRenderer --how to
)
)
createdialog dialog
refer to this post
http://code.google.com/p/imagelistview/wiki/ImageListViewRenderer
how to set up renderer to noir and another renderer in this imagelist view?
I try to get showmethods “theR=dotnetclass “Manina.Windows.Forms.ImageListViewRenderers”” but meet no avail…
another is ilv.SetRenderer.(dotnetClass “ImageListViewRenderers.XPRenderer()”) :banghead: but error too, another is ilv.SetRenderer.theR.XPRenderer :wip: but cant do. Please help me how to setup the renderer for this assembly. :bowdown: :bowdown:
Thanks :wavey:
2 Replies
May 29, 2013 6:27 pm
You should understand the difference between dotNetClass and dotNetObject…