View previous topic :: View next topic |
Author |
Message |
tim
Joined: 24 Jul 2005 Posts: 26
|
Posted: Thu Aug 04, 2005 6:14 am Post subject: Naming conventions |
|
|
Chris,
Why do you call delegates (or event class instances or whatever) "click" and the internally called member function "onClick"? Is that the Windows Forms convention? (I find the other way around much more intuitive).
AFAIK, in Delphi "OnClick" is the name of the delegate and in wxWidgets, many internal functions seem to have the name "doXXX".
I call my delegate(s) (arrays) "evtXXX". Otherwise, it sometimes may be difficult to differentiate between them and ordinary methods. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Thu Aug 04, 2005 7:44 am Post subject: |
|
|
It is the Windows Forms convention, if you ignore casing. onClick triggers the click event. i.e. click fires on a click. I like how it is now. |
|
Back to top |
|
|
|