create dotnetcontrol buttons inside function
I want to create buttons depending on certain things!
So here is what I need:
fn myfunction= ( ... for i=1 to IDcount do ( dotnetcontrol ID_btn[i] "System.Windows.Forms.Button" width:20 height:60 pos:[27,i*153] ID_btn[i].backcolor = (dotnetcolor 70 70 70) ID_btn[i].flatstyle = dotnetobject "System.Windows.Forms.FlatStyle" Flat ID_btn[i].text="1" ID_btn[i].foreColor = (dotnetcolor 200 200 200) ) )
How to make it work?
Comments
now as I undesrand
I should have
iside rollout
and somehow to add split containers iteratively
in such a form
just instead of this - to call splitcontainers
...
The MaxUserControl is one of many types of containes ei. Panels which can hold dotNet object inside. It's not important to use this type U can use simple Panel.
I play a bit maybe this can helps
bga
and
inside rollout
I had this function previously
I took this function from here
http://3ds-max-dev.googlecode.com/svn/projects/maxtest/trunk/presenter/i...
but inside I should have buttons
I don't understand how to use it
and how to create left panel, righ panel and how to split horizontally the right panel
Look!
I still think that it's possible!!!
I've found a script with such a function
This means that split containers can be created iteratively in function!
Just help me please to create one panel on the left and one on the right and a "for" cycle to create n splitcontainers inside right panel. After this, every panel should be filled with a button!
...
Yup. I aranged a bit your code. Try it to see if works for you.
No need to use return in this case
bga
Barigazy
www.go2sleep.com
I need
like in pic from above to have blend for example which could be placed first sometimes and then multisubobject and after this again a certain material(nonmultisub) - I need it to update, that's why I would like to add splitcontainers in function depending on materialtype. How do you think, is it possible, or should I forget about that?