We are trying to estimate the amount of effort it would take to incorporate your printing functionality into our product. I tried with a simple test case that print a Window UI. I am already having some difficulties as it warps the window header to a height 3x its normal size. Is this "correct" behaviour? How do I stop it from doing that. Generally, we want the printout to look fairly close to what the user is seeing.
I am using Firefox12 to test, SC 8.3 2013-07-17
To run the testcase, load the sample. Click on "Show Window". In the popup click Print Preview. You'll see the window header is much bigger
I am using Firefox12 to test, SC 8.3 2013-07-17
To run the testcase, load the sample. Click on "Show Window". In the popup click Print Preview. You'll see the window header is much bigger
Code:
isc.IButton.create({ ID: "touchButton", width: 120, title: "Touch This" }); isc.Label.create({ left: 150, height: 20, contents: "<a href='http://www.google.com' target='_blank'>Open Google</a>" }); isc.IButton.create({ title: "Show Window", top: 35, left: 75, click : function () { touchButton.setTitle("Can't Touch This"); modalWindow.show(); } }); isc.Window.create({ ID: "modalWindow", title: "Modal Window", autoSize:true, autoCenter: true, isModal: true, showModalMask: true, autoDraw: false, closeClick : function () { touchButton.setTitle('Touch This'); this.Super("closeClick", arguments)}, items: [ isc.IButton.create({ autoDraw: true, title: "Print Preview", click: "isc.Canvas.showPrintPreview(modalWindow)" }), isc.DynamicForm.create({ autoDraw: false, height: 48, padding:4, fields: [ {name: "field1", type: "select", valueMap: ["foo", "bar"]}, {name: "field2", type: "date", title: "testing this label"}, {type: "button", title: "Done", click: "modalWindow.hide();touchButton.setTitle('Touch This')" } ] }) ] });
Comment