I've changed my approach. Instead of trying to extend CoreButton and
CoreToolBar, i copied the code and changed it. This seem to be going
better.
Don't waste your time looking at this.
Thanks anyways.
Ken
> -----Original Message-----
> From: dyn...@li...
> [mailto:dyn...@li...]On Behalf Of Ken
> Ono
> Sent: Wednesday, February 21, 2001 12:54 PM
> To: dyn...@li...
> Subject: [Dynapi-Widgetdev] Pulldown menu widget (1st attempt failed)
>
>
> Hello,
>
> Attached is my first attempt at creating a pulldown menu widget. Any help
> would be greatly appreciated.
>
> My approach was to build the pulldown menus as a series of toolbars and
> buttons. I attempted to extend CoreToolBar and CoreButton. The code
> currently simply creates the buttons and tools bars. Event handling stuff
> is not present.
>
> Anyway, addChild is complaining about something. I'm doing
> something wrong
> (hopefully not too stupid) and I'm now i'm starting to step
> through reams of
> dynlayer code and I bet it's something an expert can answer quickly.
>
> I also ran into a null reference problem. On line 155 of
> dynlayer.js of the
> 01-25 release, child.css was null. Could be a symptom, but in any event I
> changed it (without an understanding of what's going on) to the
> following to
> get to the next problem.
>
> if (child.z!=null && child.css!=null) child.css.zIndex=child.z;
>
> BTW, is anybody else developing a pulldown menu widget?
>
> Regards,
>
> Ken
>
|