:: Forum >>
combo box does not get focus when added to a division with setcontent
Using divisions for tabbed forms and using the show/hide method. Adding this object to the page1 division, it shows when the page1 division is active, but does not take focus.
var d006001 = new AW.UI.Combo;
d006001.setName("d006001");
d006001.setStyle("top","55px");
d006001.setStyle("left","800px");
d006001.setTabIndex(0);
d006001.setControlSize(85,20);
d006001.setControlText("");
d006001.setItemText(["","Sr."," Jr."," I"," II"," III"," IV"]);
d006001.setItemCount(7);
d006001.getContent("box/text").setAttribute("readonly", true);
d006001.getPopupTemplate().setStyle("width", "80px");
page1.setContent("d006001",d006001);
Myshka
Friday, July 4, 2008
found and fixed it.
when inserting an object into another with setcontent, you must convert it to a string.
page1.setContent("d006001",d006001.toString());
When I get done with my Pavuk IDF project, I'll document ActiveWidgets. :)
Myshka
Friday, July 4, 2008
This topic is archived.
Back to support forum
Forum search