AC wrote:

The idea is: If I can programmatically build a complex nested control
(eg Lables inside HBox, which are in turn inside VBox which can have a
variety of different sibling controls) and then send it to the print
to SUCCESSFULLY print, I would save a lot of work and maintenance
issues in the long run.

You can create it at runtime.

var myPrintableView = PopUpManager.createPopUp(this, VBox, false);
myPrintableView.visible = false;

var hbox = myPrintableView.createChild(HBox, "", {});
var label1 = hbox.createChild(Label, "", {text: "Address:"});

... and so on. Then you send 'myPrintableView' to printing.

Manish





Reply via email to