Skip to main content
Participant
April 16, 2006
Fråga

createClassObject - TextInput Component

  • April 16, 2006
  • 3 svar
  • 408 visningar
I need to create TextInput Components at runtime. I can create the object just fine but I can not position or size the component. I assume this is due to the properties (x,y,width,height) being READ-ONLY but assumed that createClassObject would at least set the initial values as per the initObject. I am just testing right now and the initObject is {text:"Testing", width:100} I also tried {text:"Testing", width:"100"}.
Is it possible to use the initObject to size the TextInput Component, or does anyone know a work-around?
TNX
Det här ämnet har stängts för svar.

3 svar

Participant
December 27, 2020
mongenix1Skribent
Participant
April 16, 2006
Too busy looking at properties to consider methods.
Duh.......
Thanks for answering a question that already had an obvious answer.
Inspiring
April 16, 2006
You use TextInputInstance.setSize(width,height);
And TextInputInstance.move(x,y);