3.2.0

How To add mutie object into 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 ?
March 30,
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();

        var xxx = objL+" : "+txtN;
        
    //obj.setContent("object", txtN);
    //obj.refresh();
    obj.setContent("object", xxx);
    document.write(obj);
March 30,
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();

        var xxx = objL+" : "+txtN;
        
    //obj.setContent("object", txtN);
    //obj.refresh();
    obj.setContent("object", xxx);
    document.write(obj);
cdf
March 30,
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
April 1,
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)
April 1,
Alex, Could you please give me an exaple on how to position the controls on top of the group? Thanks,
Stephen
September 12,
You can do it with position:absolute style. See /examples/app/dialog.htm
Alex (ActiveWidgets)
September 17,

This topic is archived.

See also:


Back to support forum