Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 1999-09

Coding question regarding events

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Shane Miller

I create the events in the lowest common class so they don't need to be derixed again. However, I call the SetCallBack in the tcustomwhatever usually because that class will be used to derive new components and each individual component needs to determine which events are right for it.

In Forms case, the calls should be in TCustomForm, and so on...

------------------------------------------------------------ Shane Miller

Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870

Home page : http://www.lakefield.net/~smiller

Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip

Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard

Lazarus : http://www.miraclec.com/lazarus
----------------------------------------------------------

Earlier message 31 lines
-----Original Message----- From: Stefan Hille To: Date: Sunday, September 26, 1999 7:02 AM Subject: [lazarus] Coding question regarding events > >Hi, > >I'm wondering where to call the SetCallback (LM_xxxx) functions if the >message is provided by a base-class but used in a derived class. I'd >normally connect the messages in the constructor of the base class, but >currently it's always done in the constructor of the derived classes. > >Any opinions? > >bye, > > Stefan > >-- >--------------------------------------------------------- >Stefan Hille email: >48155 Muenster voice: 0251/664695 > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >
Stefan Hille

Hi,

I'm wondering where to call the SetCallback (LM_xxxx) functions if the message is provided by a base-class but used in a derived class. I'd normally connect the messages in the constructor of the base class, but currently it's always done in the constructor of the derived classes.

Any opinions?

bye,

Stefan

--------------------------------------------------------- Stefan Hille email: 48155 Muenster voice: 0251/664695