[lazarus] GTK ???

Michael A. Hess mhess at miraclec.com
Mon Oct 9 13:14:20 EDT 2000

Nagy Zsolt wrote:
> Do you know why don't I get  the prompt from this program?
> program gtktest;
> uses gtk;
> begin
>  writeln('Hello World!');
> end;

Exactly what kind of a prompt are you looking for?

The above code is a simple console program that will write the words
"Hello World!" to the terminal window.

>  Without "uses gtk;" it works.

It does work. The above example isn't using GTK or Lazarus in anyway.
You are just using standard Pascal with FPC.

The LCL is OOP and needs to be coded similar to Delphi. You need to
create and application, create a Form to output onto, etc. etc.

>  By the way I think while GTK not work excatly we can't make any good
> GUI programs.

Again I am not sure what you are refering to here. It does work now.
Please look at the hello.pp example found in the examples directory in
the Lazarus directory tree.

==== Programming my first best destiny! ====

Michael A. Hess      Miracle Concepts, Inc.
mhess at miraclec.com   http://www.miraclec.com

More information about the Lazarus mailing list