--- Doug Melvin <[EMAIL PROTECTED]> wrote:
> Fun fun fun.. every time I sit down to finish this
> damned scrollbar I find a
> nother problem.
>
> Okay. So I pass a function to the layer via
> onCreate()
> Now.. how the hell do I specify the target of code
> in the function?!?!
>
> There is no way to cause a parameter to be passed to
> the function when is is
> executed
> on line 233 of event.js
>
> Here's what I want.
> When the scrollbar is created, it alligns it's
> children.
> Is this so hard? Why is this so hard?
> Here's the code I would have used in 2.5.whatever.
> Please tell me how I
> would do this in 3x.
>
> this.el = new EventListener(this);
> el.oncreate = function(evt){
> evt.getSource().allignObjects()
> }
> this.addEventListener(this.el);
The onCreate() function behaves differently from other
events. It behaves like a functions that's attached to
the object:
lyr.onCreate(function(){
// e.g. var p = this.parent;
this.allignObjects();
});
--
Raymond Irving
> Question: why is the base object for DynLayer
> (DynElement) being declared in
> a file called "event"?
> Just wondering.
>
>
>
>
-------------------------------------------------------
> This SF.net email is sponsored by:Crypto Challenge
> is now open!
> Get cracking and register here for some mind
> boggling fun and
> the chance of winning an Apple iPod:
>
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
>
http://www.mail-archive.com/[EMAIL PROTECTED]/
__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[EMAIL PROTECTED]/