If you want to use a modified buttons.pas you can just save it to a unique .pas file name (w/ respect to all other Delphi packages that use buttons.pas) and compile that. It doesn't see your events because you would have to recompile all other packages that use buttons.pas as well. Impossible since you don't have the source code as already mentioned. But vcl50.bpl can be re-distributed right? Otherwise, how would all the programs that use runtime packages work? DJS
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: Hi pri_sama, The idear behind is: NOT to compile VCL50.BPL. Try to imagine how many Delphi users will complain about this and that not working in Delphi, because they (or somebody else) made changes to one of the original Delphi libs thus changing the very heart of the run-time-system. As a matter of fact there is neither a makefile nor any other chance to recompile the run-time-libraries. What you can do (and what you should) is - as you already stated - derive a new descendant from the tspeedbutton and implement all the facilities you want to have. Have fun! Bob > --- In [email protected], Rob Kennedy <[EMAIL PROTECTED]> wrote: > > What are you trying to do? > > I added 'OnMouseLeave' event to TSpeedButton(Buttons.pas) and tried > to install a new component that uses this event (of course this can > be done outside the buttons.pas by creating a descendent class).Then > Delphi says the event does not exist. I tried removing old 'dcu's and > changing the library paths. But the problem still exist.I > thought 'vcl50.dcp' uses the old 'dcu' and tried to recompile it. > > regards, > pri_sama. > > > > > > ----------------------------------------------------- > Home page: http://groups.yahoo.com/group/delphi-en/ > To unsubscribe: [EMAIL PROTECTED] > Yahoo! Groups Links > > > > > > > ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] --------------------------------- Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com [Non-text portions of this message have been removed] ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

