[Closed] maxscript control question
hi there
is this kind of control available through maxscript:
I mean a scrollable kind of listbox that holds interface items
Hi,
Unfortunately, no, there is not…
You would have to build a custom treeview/listview control using activeX or DotNet
I would be more than interested if such control would exist, or if anyone could provide any hints.
Subrollouts, anyone?
rollout ro1 "Rollout" height:200
(
subrollout sro1 "sub rollout" height:180
)
rollout sro1 "sub rollout" height:200
(
button btn1 "press Me!" height:100 width:100
button btn2 "press Me!" height:100 width:100
)
createdialog ro1
AddSubRollout ro1.sro1 sro1
Well subrollouts have their own titlebar…
which can use a lot of space if you have 10 rows…
But I admit it can be a workaround…
Have a look at what Kees has done with MorphX2 here: http://www.lumonix.net/ He is using a few things to fake the setup which is what I think is happening in the Max morpher anyway.
The Multi/Sub-Material dialog is actually just a couple of buttons and checkboxes, etc. with some and a floating scroll bar. It cunningly reallocates the buttons, etc. to different materials in the array based on the current scroll value, hiding any controls > the number of materials. As far as I know you can’t create a scroll bar in ActiveX, but I’m quite sure that it would be possible in .NET.
I hope this clarifies things a little.