Window Widget problems
Dee Gould <[email protected]> Tue, 30 Sep 2003 09:15:03 -0700
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Message-ID | <[email protected]> |
I have spent a bit of time going through the code of the window widget
to try and figure out what the problem is, but haven't been able to
figure it out. So, here's the problem. I create a window widget and
open it. Dependent upon the data that is within the window I would like
to resize it to show a table to the right of the fields. The problem
I'm having is with the resize(x,y) function. It seems to be resizing,
but the window widget itself does not get refreshed. When you move the
window widget around the screen it leaves a transparent trail of sorts
as to where it was so that you can see it was resized properly, but the
content is still shown within the original size of the window.
Here's a general mockup of my code:
// create a reference to the window and append it to the document
body
_nwLineItems = NW_WIDGET_FACTORY_window("Invoice Line Items",
100, 100, 390, 325 );
document.body.appendChild(_nwLineItems.domNode);
__env__.addToPageQueue(
"Broker?env="+tscEnvironment+"&portal=none&template=mar/invoice/invoiceItem.xml",
_nwLineItems.contentObj.contentNode, false,
_invoiceItem = new InvoiceItem(_drs,
_nwLineItems, insertItemClosed, this), "constructor");
in the 'constructor'
// if we have only one item in our array we don't want
to display the table.
if( _branchData.length == 1 ) {
_elements.txtGlAcct.value = _branchData[0][0];
}
else {
// display the multiple gl table to the user and
disable the gl acct text box
_gui.disableNodes( _elements.txtGlAcct );
// resize the window so that the table is
_dialog.resize( 650, 390 );
document.getElementById( "glDiv" ).style.display =
"inline";
_multipleGlDiv.style.display = "block";
}
The _dialog variable is a reference to the window widget that is created.
Any thoughts on this??
Thanks for the help guys!
Dee
_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org