Hi Guys,
I'm working on a script which uses a dotnet form for the UI. One of the elements is a ListView. When trying to get it to select one of the items I get an error. I'm basing a lot of it around:
http://scriptattack.com/snippets/snippets.html
Although I have to call functions like this:
Does anyone have an idea why it fails?
John
By
Comments (12)
Comment policy
Works
That works great for me, for now. I might want the index number at some point but not for now. Thank-you.
John
index
Sure :) To get index of first selected item:
One important thing: dotNet arrays index starts from 0 (not like maxscript from 1)
Best,
Pixamoon
You little beauty! Perfect.
While you seem to be a bit of a dotnet genius. Don't suppose you know how to fix the padding on a dotnet webpage? (its a test image)
John
`
no no, I just had the same problems recently for my scripts... :p
I've never used dotnet webpage, but I'll take a look. It's nice to learn new things :)
Best,
Pixamoon
`
but do you need browser or you just want to add image / logo from the web to your script ?
Image
An picture box would do. But the url I have is very long for the image I want to download. The web browser doesn't have a problem with the length. Its just really annoying the padding thing!!
`
yes, I was thinking about download image and than use it.
Did you try download with dotnet ?
I tried a bit your browser code. Still no success to change padding but I tried
webbrowser_rollout.left = -15
webbrowser_rollout.top = -10
to move image left and up,
this is only temporary solution :(
download file
did you try this way to download:
It works here with your test image.
Wow
That's perfect!! I can just download all the thumbnails to the local drive and then reference them from there. Thanks-you so much. My UI will look loads better now. And quicker!
John
`
nice :)
but you can also add your thumbnails to .mzp file and they will be copied during installation
take a look on:
http://www.scriptspot.com/3ds-max/scripts/drop-and-relink
mzp.run file makes this job.
mzp format is just a zip file with different extension.
or use base64 code ;)
http://www.scriptspot.com/forums/3ds-max/general-scripting/solved-logo-i…
select in ListView
Hi,
Do you want to select by script one item/line of listView or get selected line/lines?
Like in http://www.scriptspot.com/3ds-max/scripts/bitmap-tracking-resizing
or http://www.scriptspot.com/3ds-max/scripts/library-track-relink
to get selecttion count:
to get first selected item:
to select 1st on the list:
where lv_objects is dotnet ListView
Hope it helps
Pixamoon