More information on this topic is available in the documentation section:
/aw.ui.group/.
Have Another way to add any object into group ?
1. So Example i want to add object from AW.UI.Label, AW.UI.Input and AW.UI.Button into same group ?
2. I can add Group in to Group yes or no ?
Sunday, March 30, 2008
Me too, But I want to draw object by setId ? var obj = new AW.UI.Group;
//obj.setId("G1");
obj.setControlSize(300, 150);
obj.setControlText("Group/Fieldset");
obj.setControlImage("favorites");
obj.setStyle("border", "2px solid red");
var objL = new AW.UI.Label;
objL.setControlText("Label");
//objL.setControlImage("favorites");
var txtN = new AW.UI.Input;
//txtN.setId("objTxtN");
txtN.setName("objTxtN");
txtN.setSize(180,20);
txtN.setControlText("Please,Input Your name.");
//txtN.refresh();
Me too, But I want to draw object by setId ? var obj = new AW.UI.Group;
//obj.setId("G1");
obj.setControlSize(300, 150);
obj.setControlText("Group/Fieldset");
obj.setControlImage("favorites");
obj.setStyle("border", "2px solid red");
var objL = new AW.UI.Label;
objL.setControlText("Label");
//objL.setControlImage("favorites");
var txtN = new AW.UI.Input;
//txtN.setId("objTxtN");
txtN.setName("objTxtN");
txtN.setSize(180,20);
txtN.setControlText("Please,Input Your name.");
//txtN.refresh();
It was not possible before and I don't know if Alex fixed it in 2.5.1.
As I needed it, I did it by hand. see what group produce in obj.toString()) , and do string manipulation to add the "content" at the right HTML place
Philippe Marzin
Tuesday, April 1, 2008
Sorry, this is a bug in AW 2.5.1 - the Group class breaks event processing of other controls if you insert them inside the group using setContent() method. The only workaround is to position the controls on top of the group (using absolute or relative positioning) and not inside.
Alex (ActiveWidgets)
Tuesday, April 1, 2008
Alex, Could you please give me an exaple on how to position the controls on top of the group? Thanks,
Stephen
Friday, September 12, 2008
You can do it with position:absolute style. See /examples/app/dialog.htm