From: Doug M. <do...@cr...> - 2001-02-25 21:14:18
|
How about a compramise? A SlimDynLayer? it would have addchild, moveto, setsize and such.. but would not have sethtml,setcontent,getcontentwidth.. ect.. Just a super-basic object that can be used for 'lightweight' widgets ----- Original Message ----- From: "Pascal Bestebroer" <pa...@dy...> To: <dyn...@li...> Sent: Sunday, February 25, 2001 4:40 AM Subject: RE: [Dynapi-Dev] a few hours for only 2 lines of code.. damn! > > DynLayer IS the root component (that's what I've been trying to say) > Every widget needs the graphical functionality of a DynLayer, that's why it > IS the base object. > > Ofcourse TComponent is Delphi only, because Windows internally probably > doesn't have anything like it.. just graphics functions to draw canvas's. > But that's what we're doing here as well, DynLayer is the canvas object to > do all "graphical" interface tricks (this is DHTML, not windows, so mostly > used for visual development of websites) > > If you want a widget without any graphicall functionality then don't base if > on the DynLayer (never seen one, but it might happen). > > But as it is now, all widgets will always function the same they always > have: moveTo, setSize, setHTML, etc,etc,etc > This makes creating widgets that interact with each other alot easier > because you don't have to check for these methods to be available, they are > simply available.. so take a toolbar widget, you can add ANY other widget on > it, without having to prepare them or checking there class type. > > If you want your widgets using another model, go ahead but most (not all > though, but majority) people involved agreed that this was the way to do > widget inheriting: it's simple, short, and standard Javascript inheriting. > And I for one will stick to this way of widgets.. use your own model if you > like, just make sure there fully compatible. > > Pascal Bestebroer > pa...@dy... > http://www.dynamic-core.net > > > No, > > Delphi TComponent (been reading about this because of the Kylix) > > is a basic > > component that wraps the calls to the API. > > > > I don't care if we make a TComponent or TWidget but I just perfer > > this over > > using the DynLayer itself. > > > > 8an > > > _______________________________________________ > 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 |