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
...
if for btn not work then try with Label control
bga
Text orientation
how to make vertical text orientation for text inside buttons?
??
??? :)
I never try this, but also I think that buttons or checkbuttons not have that property. Find another solution for for your controls placement. Not try to experiment too much, because your GUI creation process may take several months.
Trust me :)
bga
srry, I've found! SOLVED
I had to use
still the same
But I've used
but buttons still appear the same way, at a distance of 6px!
Oh, barigazy!
You're awesome!
but how to remove padding around buton?
...
adjust FLP width 2px wider then buttons width
bga
Thx Barigazy!
You're a really GREAT PERSON! I will take a look!
more infos
You know it's very smart choise to use funcions for .NET objects definition because
your code will have over 1000 lines in most cases only for UI. In free time read this thread to learn .net from masters http://forums.cgsociety.org/showthread.php?f=98&t=551473
bga