[fpc-pascal] Re: Program without window but messages

Tomas Hajny XHajT03 at hajny.biz
Wed Apr 25 18:08:02 CEST 2012


On Wed, April 25, 2012 17:49, J├╝rgen Hestermann wrote:
> leledumbo schrieb:
>  > You need to call Application.Initialize prior to anything if you want
> to use
>  > LCL features (including its dialogs).
>
> Is "ShowMessage" part of the LCL? I thought that it comes with Free
> Pascal directly
> because the wiki
> http://wiki.freepascal.org/Dialog_Examples/de#ShowMessage , which
> explains this message, is located on wiki.freepascal.org.
> But if it's realy from the LCL then it makes sense that I cannot use
> this function without a form.
> Still very missleading to explain LCL functions under a Free Pascal web
> site.
> How should someone know where these functions come from?

The Wiki is common for both projects
(http://wiki.lazarus.freepascal.org/Dialog_Examples/de#ShowMessage shows
the same article). Looking up the documentation or reference to the unit
location for a particular function from your IDE (Lazarus in your case) is
probably better source of information where it belongs to than the Wiki.
In general, visual components are provided by LCL (unless talking about
general GUI elements which are available in the respective interface units
like unit Windows for Win32/Win64 or Xlib, etc.). Also the page mentioned
above contains several references to LCL and Lazarus.

Tomas





More information about the fpc-pascal mailing list