Solved the problem..I messed the x and y coordinates.. Thanks, Yarlee
On Jul 24, 11:22 am, Yarlee <[email protected]> wrote: > Hello , > > I tried to use the concepts in the example Horizontal Scroll bar and > Scrolling Div. What I am trying to do is attach some edit boxes in the > list item which I am unable to do and the edit box is not visible. > Please see the code below ( I could see the labels being printed but > not the edit boxes) > > var divtag=view.appendElement('<div/>'); > divtag.name="listdiv"; > divtag.height=165; > divtag.width=250; > divtag.x=6; > divtag.y=21; > var > scrbar=divtag.appendElement('<scrollbar/>'); > scrbar.enabled="true"; > scrbar.height=100; > scrbar.hitTest="htclient"; > scrbar.name="sb"; > scrbar.width=10; > scrbar.x=235; > scrbar.y=-10; > scrbar.linestep=14; > scrbar.max=200; > scrbar.orientation="vertical"; > scrbar.background="00000"; > scrbar.thumbDownImage="scroll.png"; > scrbar.thumbImage="scroll.png"; > scrbar.thumbOverImage="scroll.png"; > > var > lstbox=divtag.appendElement('<listbox/>'); > lstbox.background="#FFFFFF"; > //lstbox.width="100%" ; > lstbox.x=0; > lstbox.y=20; > lstbox.itemWidth="100%"; > lstbox.itemHeight=16; > lstbox.width=235; > lstbox.height=100; > lstbox.name="list"; > //lstbox.autoscroll="true"; > for(count=0;count<tst.length;count++) > { > var > lstitem=lstbox.appendElement('<item/>'); > var > lbl=lstitem.appendElement('<label />'); > > lbl.innerText=options.getValue(bases[count]); > var > editlbl=lstitem.appendElement('<edit/>'); > > editlbl.background="#666666"; > > editlbl.name="xxx"+tst[count]; > > editlbl.onkeypress="xxxx("+tst[count]+")"; > editlbl.value="This > is a test"; > > //debug.trace(editlbl.name+" is the name of the edit label"); > } > > On Jul 21, 2:16 pm, Stefan vd <[email protected]> wrote: > > > > > Hi Yarlee, > > > A example for div or image scrolling, see in the Google Desktop SDK => > > 'HorizontalScrollbar' and 'ScrollingDiv'. > > > Kind Regards, > > Stefan Van Damme (aka Stefan vd) > > Gadget Developer > > > On 21 jul, 19:20, Yarlee <[email protected]> wrote: > > > > I am generating some dynamic stuff from options and some time it is > > > not sufficient in the view and some data is not visible. Is there a > > > way I can enable scrolling of the view.. > > > > Thanks, > > > Yarlee --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Desktop-Developer?hl=en -~----------~----~----~----~------~----~------~--~---
