On Tue, 16 May 2006 09:34:05 -0500 (CDT)
[EMAIL PROTECTED] wrote:

> > Take TEdit for example, which has been extended to contain properties
> > like the Font property.
> 
> Ok, you were making reference to the controls design,
> not the character enconding...
> 
> Yes, I get, I know about OOP principles. Actually once
> I try to make a "TFont" descendant in a visual control,
> but It didn't allow me to replace.
> 
> Actually, the "Font" property in visual controls,
> as an example of composition wasn't very well design it.

A font depends on its TCanvas. It's not a separate thing. That's why you can
assign values, but not replace the class.

 
> Properties like "BiDi" should be in the "Font" property, maybe.

AFAIK you can't choose the Bidi of a font. Bidi is defined by the
characters. An 'a' is always left-to-right, while an arabic character is
always RTL, no matter what the font is called or setup.
Can you define, what a BIDI property should do?


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to