From: Doug Eleveld Newsgroups: comp.os.msdos.djgpp Subject: Re: About GUI's Date: Thu, 19 Mar 1998 02:27:44 +0100 Organization: Rijksuniversiteit Groningen Lines: 19 Message-ID: <35107490.D0E859C3@dds.nl> References: NNTP-Posting-Host: client36-43.oprit.rug.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Salvador Eduardo Tropea (SET) wrote: > Additionally it must be done with C++ or some C approach to emulate the C++ > flexibility to allow the members override. That's is: you must be able to > redefine part or all of the behavior of a button or any other control. > DEGUI uses call backs to do it, but it isn't enough, I have an application Don't forget that you can derive objects from the degui classes and override the virtual msg_xxx functions to redefine the behaviour of an object. i.e. the normal C++ way of interfacing gui objects. Personally I think that that is a lot better way to do it than using callbacks because of better encapsulation, but callbacks are useful of you just want a small change in object behaviour and it's easier to set one callback than derive a object, fill in constructors, override virtual functions etc if you only want a small change. Doug Eleveld