On Sun, 19 Mar 2006 06:08:31 -0300
"Flávio Etrusco" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Is there some reason why the 'Interfaces' unit isn't used (declared in
> the 'uses' clause) in Controls.pp or Forms.pp? (so that one wouldn't
> need to declare it in the .lpr - and so that if a lose the declaration
> somehow in the lpr I wouldn't scratch my head for hours trying to
> guess why WidgetSet is nil ;-) :-$

If I remove the 'interfaces' unit I get the error:

ERROR: No widgetset object. Plz check if the unit "interfaces" was added to
the programs uses clause.

Interfaces is the LCL interface - a widgetset.
If you want to know, what 'interfaces' does, just Ctrl+Click on the unit and
the IDE will show you a short unit with one important statement:

  WidgetSet:= TGTKWidgetSet.Create;

I wonder, why you searched for hours.


Mattias

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

Reply via email to