Hi,
I need to be able dynamically change edge image for layouts and dynamic forms.
I tried to change "edgeImage" property on the fly (with redraw()), but it does not work. I guess it uses this property only once on initialization?
Pease correct me if I am wrong, maybe there is a way to change it on the fly?
I found that EdgedCanvas has this functionality, but I could not find a good example of using it. I tried to create it the following way:
	But the problem is the EdgedCanvas does not resize the edge according to its child.
Please, can you give me an example how to do it? Is there a property or I should handle child resizing manually?
(I cannot use fixed size, it should be auto-resized).
					I need to be able dynamically change edge image for layouts and dynamic forms.
I tried to change "edgeImage" property on the fly (with redraw()), but it does not work. I guess it uses this property only once on initialization?
Pease correct me if I am wrong, maybe there is a way to change it on the fly?
I found that EdgedCanvas has this functionality, but I could not find a good example of using it. I tried to create it the following way:
Code:
	
	isc.EdgedCanvas.create( {
    ID: "dynEdge",
    edgeSize: 4,
    children: [
        isc.DynamicForm.create({
        width: 300,
        fields: [
            {title:"Item", type:"text"} 
        ]
        })
    ]
});
isc.Button.create({
   top: 150,
   title: "Change Edge Image",
  click: function() {
     dynEdge.setEdgeImage("edges/custom/frame_10.png");
  }
});
Please, can you give me an example how to do it? Is there a property or I should handle child resizing manually?
(I cannot use fixed size, it should be auto-resized).

Comment