[lazarus] Behavior of FCompStyle

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Aug 22 10:00:47 EDT 2003

On Fri, 22 Aug 2003 09:20:30 -0300
Karl Brandt <pascalive at bol.com.br> wrote:

> I have some questions.
> A derived class from a LCL one, can change the FCompStyle property?
> Let's say i do a MyForm(TForm) class. It's allowed to change the
> FCompStyle to csMyForm ?


> The real question is: we can assume that a control with FCompStyle =
> csForm is a TCustomForm?

The FCompStyle was introduced to allow case statements in the interface. 
Normally this variable should be set by the interface. But because all
interfaces would set the variables to the same values it is done by the LCL.

So, the only case, defining a FCompStyle of your own, is creating a new
interface dependent control. 


More information about the Lazarus mailing list