SuperWoko
04-10-2012, 06:42 PM
Hi. Is there any function in .Net Form to select and transform label in it.
for example simple code:
form=dotNetObject "form"
form.show()
label1 = dotnetobject "label"
label1.backColor=(dotNetClass "system.drawing.color").black
label1.bounds=dotNetObject "system.drawing.rectangle" 30 30 40 40
form.controls.add label1
label2 = dotnetobject "label"
label2.backColor=(dotNetClass "system.drawing.color").black
label2.bounds=dotNetObject "system.drawing.rectangle" 130 130 40 40
form.controls.add label2
label3 = dotnetobject "label"
label3.backColor=(dotNetClass "system.drawing.color").black
label3.bounds=dotNetObject "system.drawing.rectangle" 180 180 40 40
form.controls.add label3
After creating this form I would like to select label's one by one or multiple and after that scale them.
So is there any function in .Net to do this for me or should I write my own function's?
I've just started to discover .Net in MXS and I have huge probrem's what can be done with kind of automatic .NET function's in it or what shuld be written by my self.
for example simple code:
form=dotNetObject "form"
form.show()
label1 = dotnetobject "label"
label1.backColor=(dotNetClass "system.drawing.color").black
label1.bounds=dotNetObject "system.drawing.rectangle" 30 30 40 40
form.controls.add label1
label2 = dotnetobject "label"
label2.backColor=(dotNetClass "system.drawing.color").black
label2.bounds=dotNetObject "system.drawing.rectangle" 130 130 40 40
form.controls.add label2
label3 = dotnetobject "label"
label3.backColor=(dotNetClass "system.drawing.color").black
label3.bounds=dotNetObject "system.drawing.rectangle" 180 180 40 40
form.controls.add label3
After creating this form I would like to select label's one by one or multiple and after that scale them.
So is there any function in .Net to do this for me or should I write my own function's?
I've just started to discover .Net in MXS and I have huge probrem's what can be done with kind of automatic .NET function's in it or what shuld be written by my self.
