From: Doug M. <do...@cr...> - 2001-02-20 00:42:46
|
Well, I just hope someone fixes the NS problems then, eh? :-) I would really like to avoid putting Browser specific code into my widget.. hehe Doug BTW: AutoSizing Now has been implemented. There are two ways to activate this, but neither will have any effect if you don't dind any layers to the scrollabr. One way is via an extra boolean parameter on delcaring the object, (see the last parameter of the below statatement) true=auto size the scrollknob IF a layer is bound to the scrollbar false=DO NOT autosize the knob HScroll = DynAPI.document.addChild(new myScroll(1,116,84,200,16,true)); the other method is to call .setAutoSizeKnob(boolean); You can enable or disable AutoSizeKnob as will. Remember: you need to bind a layer to the scroll bar for autosizeknob to work. But there is no order in which to call the functions. What I mean is you can call autsize first, or bindlayer first. so: VScroll.bindLayer(myPanel); VScroll.setAutoSizeKnob(true); Is the SAME as: VScroll.setAutoSizeKnob(true); VScroll.bindLayer(myPanel); Later, and have a nice day (I know I am) And for my next trick: Continuous scroll on mousedown. Doug ----- Original Message ----- From: <ni...@pr...> To: <dyn...@li...> Sent: Monday, February 19, 2001 4:31 PM Subject: Re: [Dynapi-Dev] DynAPI v2 Scroll- Update # 3 > > > See the end of the message you replied to.. > > :-) > > Doug > > sorry didn't read that > > > That's next on the agenda, right after making the Knob autosize.. > > this will be a pain in the ass in ns 6 coz of the contentWidth an height > > have fun > > ciao > > c'ya > > ----- Original Message ----- > > From: <ni...@pr...> > > To: <dyn...@li...> > > Sent: Monday, February 19, 2001 3:46 PM > > Subject: Re: [Dynapi-Dev] DynAPI v2 Scroll- Update # 3 > > > > > > > just a suggestion > > > if I keep the mouse down either in the arrows or the scrollbar itself > > shouldn't the content keep scrolling instead of having to click every time > > to move it ? > > > > > > ciao > > > Y > > > > > > > > > > > > > > > Well, now. > > > > > > > > I have updated the Scroll widget.. > > > > > > > > Yes. Again. > > > > > > > > The widget behaves a little differently now. > > > > > > > > With the old widget (D1 and prev D2) you had to add your own event > > listener > > > > to respond to the scroll event. > > > > > > > > Now you don't. > > > > > > > > :-) > > > > > > > > If you look at the attached demo you will notice the lack of an event > > > > listener in the .htm file, > > > > as well as two new function calls: > > > > > > > > VScroll.bindLayer(myPanel); > > > > HScroll.bindLayer(myPanel); > > > > > > > > Here's how Bindlayer works.. > > > > > > > > It assigns an internal reference to the 'bound' layer > > > > (only one layer can be bound at the moment) > > > > then take the layers current X or Y (depending on orientation) > > > > and stores that as > > > > this.boundLayerOrigion > > > > Which is used as the 'default' position of the layer. > > > > > > > > so.. here's how it works. > > > > > > > > Create and position your scroll bar. > > > > Create a position you Layer to be scrolled > > > > Bind the layer to the scrollabr, > > > > and bang, you have a scrolling layer.. > > > > > > > > Now that this has been implemented, I will do the dynamic scroll knob > > sizing > > > > and the continuous scrolling > > > > (keep scrolling while mouse is down on button) > > > > > > > > Doug > > > > > > > > P.S. Please test: > > > > http://206.75.45.190/myscroll.htm > > > > > > > > > > > > --- > > > > Outgoing mail is certified Virus Free by AVG Free Edition > > > > Download at: http://www.grisoft.com/html/us_index.cfm > > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > > Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01 > > > > > > > > > > > > _______________________________________________ > > > Dynapi-Dev mailing list > > > Dyn...@li... > > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > > > > > > > > --- > > Outgoing mail is certified Virus Free by AVG Free Edition > > Download at: http://www.grisoft.com/html/us_index.cfm > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01 > > > > > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev --- Outgoing mail is certified Virus Free by AVG Free Edition Download at: http://www.grisoft.com/html/us_index.cfm Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01 |