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
It's very difficult to
It's very difficult to perform. Now there's nothing I can think of. I will probably tried to add different beckcolor of DataGrid row. For example red rows will represent multimaterial, green VRayMaterial, gray Standard etc. This is just en idea.
barigazy
does it mean that I need to use just 2 columns?
to receive my result?
Is it possible with using this to get this:
http://www.scriptspot.com/files/wanted.jpg ?
...
I not know, I've never tried something like this. You can use first column for material names and second for numbers but you know best what you need.
barigazy
Barigazy
When do you sleep?
I finish some project right
I finish some project right now. :) I can't sleep, maybe later :)
barigazy
I think it's much better approach to my wish
but how to split horizontally the right panel?
and how to make each part to work as buttons?
As its name implies, these
As its name implies, these control is Container. You need to put something inside, buttons or another container.
barigazy
Thank you, barigazy!!!
I will try your code a bit later, now I'm working on a 3d project a little!
Split Container
Here is en example of Split Container control.Maybe this is beter solution then FLP
barigazy
I've found such info
http://stackoverflow.com/questions/7741392/flowlayout-control-keeps-addi...
They said to set the WrapContents property to false
all of them give error