[Lazarus] Lazarus fails to start with "TWinControl.CreateWnd: The nogui widgetset does not support visual controls."

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jan 20 19:39:35 CET 2011


On Wed, 19 Jan 2011 18:25:04 +0000
Frank Church <vfclists at gmail.com> wrote:

> On 19 January 2011 16:43, Frank Church <vfclists at gmail.com> wrote:
> 
> >
> >
> > On 19 January 2011 06:14, Vincent Snijders <vincent.snijders at gmail.com>wrote:
> >
> >> 2011/1/19 Mattias Gaertner <nc-gaertnma at netcologne.de>:
> >> >> Are there some steps the additional steps required in the Build All
> >> that I
> >> >> may have missed?
> >> >
> >> > You have to choose the nogui widgetset in the project's compiler
> >> > options and of course you must not use any unit that uses the gtk.
> >>
> >> Build all builds also the IDE with the nogui widgetset, that is not
> >> what you want and what is supported, the IDE needs a GUI. Building
> >> just the LCL with nogui is good and then you can try to compile your
> >> project.
> >>
> >> --
> >> _______________________________________________
> >> Lazarus mailing list
> >> Lazarus at lists.lazarus.freepascal.org
> >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> >>
> >
> >
> > I set NoGUI alone in the project options and it worked.
> >
> > Thanks.
> >
> >
> >
> 
> As a side question - what does the NoGUI widgetset do, how does it work?

It sets up enough empty methods to make the LCL compile.

 
> Does it send all GUI related objects down some blackhole, or is the
> programmer supposed to ensure that no Forms and items placed on forms are
> included in the program?

You can include forms, you can even create some of them, but you can not
create Handles.


Mattias




More information about the Lazarus mailing list