| View previous topic :: View next topic |
| Author |
Message |
Mike Lischke Guest
|
Posted: Sun Sep 28, 2003 3:46 pm Post subject: Re: name |
|
|
Jens Gruschel wrote:
| Quote: | How would you call the "paint component"?
|
My suggestion is: TProxyPainter (Stellvertreter-Maler).
Ah yes, another one: TPainterDelegate (Zeichendelegat).
Mike
--
www.delphi-gems.com
www.delphi-unicode.net
www.lischke-online.de
|
|
| Back to top |
|
 |
Nils Haeck Guest
|
Posted: Mon Sep 29, 2003 1:04 pm Post subject: Re: name |
|
|
I would go for:
TjgStyle
or
TjgStyler
or
TjgStyledPaint
The "jg" of course stands for Jens Gruschel.
Kind regards,
Nils
"Jens Gruschel" <nospam (AT) pegtop (DOT) net> wrote
| Quote: | What's most difficult when writing a new component? Right, to find a
proper
name for it. Maybe someone can help me (especially since my native
language
is not English)...
I have a component that does the painting for some controls (the control's
Paint method simply calls a method of the "paint component"). So it's some
kind of theme I give to a control by assigning such a "paint component".
In
other words I can simply change the control's appearance (or look,
design...) by assigning MyControl.Appearance := MyAppearance.
How would you call the "paint component"?
TMyAppearance
TMyDesign
TMyFace
TMyLayout
TMyLook
TMyPainter
TMyTheme
TMyVisualization
???
Jens
|
|
|
| Back to top |
|
 |
Thomas Miller Guest
|
Posted: Mon Sep 29, 2003 3:08 pm Post subject: Re: name |
|
|
Always give your components an identifier as Nils suggested. Then it
doesn't matter what you name it as long as your identifier is unique.
For instance, all of our internal components to our framework start
with Bss. All the dbExpress Plus components start with SQL (following
Borland's own naming convention for the technology).
Jens Gruschel wrote:
| Quote: | What's most difficult when writing a new component? Right, to find a proper
name for it. Maybe someone can help me (especially since my native language
is not English)...
I have a component that does the painting for some controls (the control's
Paint method simply calls a method of the "paint component"). So it's some
kind of theme I give to a control by assigning such a "paint component". In
other words I can simply change the control's appearance (or look,
design...) by assigning MyControl.Appearance := MyAppearance.
How would you call the "paint component"?
TMyAppearance
TMyDesign
TMyFace
TMyLayout
TMyLook
TMyPainter
TMyTheme
TMyVisualization
???
Jens
|
--
Thomas Miller
Delphi Client/Server Certified Developer
BSS Accounting & Distribution Software
BSS Enterprise Accounting FrameWork
http://www.bss-software.com
http://sourceforge.net/projects/dbexpressplus
|
|
| Back to top |
|
 |
Jens Gruschel Guest
|
Posted: Mon Sep 29, 2003 6:56 pm Post subject: Re: name |
|
|
| Quote: | Always give your components an identifier as Nils suggested.
|
Of course. The "My" in TMyPainter etc. was meant to be the "jg" Nils
suggested.
Thanks for all of your suggestions. I think "Painter" describes best what's
going on behind the scenes, so I decided to take it (although sometimes it
seems to be better to hide what's going on behind the scenes, and an
instance like "YellowTheme" sounds better than "YellowPainter").
Jens
|
|
| Back to top |
|
 |
Andrew Rybenkov Guest
|
Posted: Tue Sep 30, 2003 6:41 pm Post subject: Re: name |
|
|
He-he.. I was aware of such mis-reading
that was why I did not write it as TUnderpainter
--
Andrew Rybenkov.
|
|
| Back to top |
|
 |
|