FoxLeader
01-13-2008, 10:04 PM
I have a project I'm working on as a part of my WanUI series and a little detail is making me angry ( Grrrrrrrrrr! ). I need to dynamically create an input object and put it multiline -but it doesn't seems to work. I tried in AMS6 and in the AMS7 demo, but none works.
Here's that code:
--//Gets the current object properties of the paragraph
Paragraph_Properties = Paragraph.GetProperties(this);
--//Creates the corresponding input
Page.CreateObject(OBJECT_INPUT, "Editor", Paragraph_Properties);
--//Sets multiline, since it is a paragraph
Paragraph_Properties = {}
Paragraph_Properties.MultiLine = true;
Paragraph_Properties.VScrollbar = true;
Input.SetProperties("Editor", Paragraph_Properties);
Doesn't works for everything (in fact, averything but VScrollbar and MultiLine. I tried with the following too, on an blank project without more sucess:
-- //Create properties table (only include items that should be changed)
tProperties = {};
tProperties.MultiLine = true;
tProperties.VScrollbar = true;
tProperties.Text = "I am new text!!!";
--// Set the properties of an input object
Page.CreateObject(OBJECT_INPUT, "Input", tProperties);
That last one worked to change the text, but not to set it multiline.
Any help appreciated :)
Regards,
FoxLeader
Here's that code:
--//Gets the current object properties of the paragraph
Paragraph_Properties = Paragraph.GetProperties(this);
--//Creates the corresponding input
Page.CreateObject(OBJECT_INPUT, "Editor", Paragraph_Properties);
--//Sets multiline, since it is a paragraph
Paragraph_Properties = {}
Paragraph_Properties.MultiLine = true;
Paragraph_Properties.VScrollbar = true;
Input.SetProperties("Editor", Paragraph_Properties);
Doesn't works for everything (in fact, averything but VScrollbar and MultiLine. I tried with the following too, on an blank project without more sucess:
-- //Create properties table (only include items that should be changed)
tProperties = {};
tProperties.MultiLine = true;
tProperties.VScrollbar = true;
tProperties.Text = "I am new text!!!";
--// Set the properties of an input object
Page.CreateObject(OBJECT_INPUT, "Input", tProperties);
That last one worked to change the text, but not to set it multiline.
Any help appreciated :)
Regards,
FoxLeader