Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-04

How do I make a form? (Win32) pure newbie questions...

7 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Weustink
to Daniel Umoh: Maybe I misphrased my question a bit. I'm don't wish to use Lazarus as a RAD tool, I want…

+ From: Daniel Umoh
+ Sent: donderdag 25 april 2002 7:27
+
+ Maybe I misphrased my question a bit.
+ I'm don't wish to use Lazarus as a RAD tool, I want to
+ use the Free Pascal compiler to compile a Windows
+ application and I thought maybe lazarus would have
+ some components to help me do so. I don't know how to
+ display a form...buttons...etc. I'm not interested in
+ GTK really, I just wanna know how to do it.
+
+ As for DirectX, I already have that part covered. I'm
+ making the DLL that uses DirectX in Delphi using the
+ JEDI headers. I just need to make sure a form using
+ lazarus components would be able to support DirectX. +
+ BTW, what is the difference between a .pp and a .pas file?

There are no differences. A file is just a file.

If you want to convert real windows apps (not using VCL) you can give it a try to use FPC with the LCL paths set correctly (see FAQ 3). Note that only a subset of winapi calls are supported. If it is a Delphi app, you can use the form files (dfm) in text form (see FAQ 6).

Marc

Reply by email

Keith Bowes
to Daniel Umoh: Hello, first of all I am using Windows (win32). I'm a newbie to Free pascal and lazarus.…

----- Original Message -----

Earlier message 33 lines
From: "Satan" To: "Lazarus List" Sent: Wednesday, April 24, 2002 11:07 AM Subject: Re: [lazarus] How do I make a form? (Win32) pure newbie questions... > to daniels: > > to the dirty3d (aehm... i mean direct3d) stuff i cannot say much, because i know not much about its usage and the general usage of dlls with lazarus (perhaps keith can say something about it) > but i suppose that you at least need headers/units for the dlls to access them (you can try the delphi ones you should have and if they don't work/compile change them to fpc - just a guess since i do not use win32) If one has the Direct3D units, there shouldn't be any problems. But I guess the only way to know is to try it. > btw i don't even know about the status of the win32 lazarus (again keith should be your man - think he even has a page for lazarus on win32) > Yes, I do have a page about it and I'm going to try to get around to writing more about ways that others can help get it finished. But personally, I think it's fine for a 0.8.3; as Lazarus approaches 1.0 and gets stabilized, I think that will be the time to work out the nuances. Besides, my page only deals with the native Win32 interface. However, Daniel was talking about the GTK+ interface; this is obvious because the win32 interface doesn't use the GTK+ DLL's. I think Mike Hess is handling the GTK+ on Win32 version. Keith

Reply by email

marius popa
to Daniel Umoh: Hello, first of all I am using Windows (win32). I'm a newbie to Free pascal and lazarus.…
Show quoted text 6 lines
and some code that acesses a DLL programmed in Delphi. I suppose I should say that the DLL is a game engine programmed using DirectX. I want to use Free Pascal/Lazarus to compile a form for playing the game in and to compile the game code that accesses the DLL engine.

Project www.delphi-jedi.org could be a usefull point of start for the DirectX headers

Show quoted text 5 lines
All of this information might be irrelevant to you, basically I've had no luck in finding information on how to display a form. What components do I need and how do I use them. Can I compile delphi forms(.dfm) or do I need to use something else?

Yes write with your hand is the safe way ex:

	button.width =10;
	button.x =10 ;

so on
-------------------------

Right now I can't even use Lazarus because it keeps giving me the error message that it can't find GTK-1.3.DLL. Where can I get that?

Usualy is comming with gimp (www.gimp.org) and the PATH must point to them but if you don't have the bandwidth somewhere on the http://lazarus.freepascal.org in the help/install area there are some gtk-X.X.dll zipped

Final question, does Free Pascal/Lazarus support all the OOP features of Delphi such as Inheritance, Classes.

Let me tell you a story :
I write an admin tool for firebird in freepascal and i needed some TreeView what to do ? i asked myself
so took a Treeview tutorial for delphi and and wrote the application it works !!!
Shure there are some bugs
but the tree is there with childs
and yes i use the Object Pascal syntax
I use the makefiles and in the future will use the lazarus ide too :) ps:
I took the kylix2 PE Open Edition down the wire and made a demo and tell you there are big problems with the libs and when i try to execute the project a small popup with : "this app is made with kylix ..." .Shame they should call it kylix Demo Edition not open ...

Reply by email

Robert Young
to Daniel Umoh: Hello, first of all I am using Windows (win32). I'm a newbie to Free pascal and lazarus.…
Daniel Umoh wrote 9 lines
Hello, first of all I am using Windows (win32). I'm a newbie to Free pascal and lazarus. What I want to use the compiler(s) for is to compile a basic form and some code that acesses a DLL programmed in Delphi. I suppose I should say that the DLL is a game engine programmed using DirectX. I want to use Free Pascal/Lazarus to compile a form for playing the game in and to compile the game code that accesses the DLL engine.

an excerpt from an earlier email from Mattias Gaertner

snip ..
The form editing is under construction. If you want to use the LCL, I suggest to create projects of
type 'Program' instead of 'Application' and wait with form designing, till we have fixed the evil
clientrectangle, mouse coordinates and mouse capturing bugs. snip...

This is to use the RAD features of lazarus you can however look at lazarus/examples/helloform.pp for a simple non RAD example.

Linux Journal has a linux a interesting article you may also be interested in. Compare his example to helloform.pp to see the work that the LCL can save you.

http://www.linuxjournal.com//article.php?sid=5975

P.S. everyone : I am a newbie to fpc as well I am just trying to save some time for Mattias and others by answering this question. If this info is incorrect of incomplete in any way please feel free to correct my.

Cheers.

Show quoted text 23 lines
All of this information might be irrelevant to you, basically I've had no luck in finding information on how to display a form. What components do I need and how do I use them. Can I compile delphi forms(.dfm) or do I need to use something else? Right now I can't even use Lazarus because it keeps giving me the error message that it can't find GTK-1.3.DLL. Where can I get that? Final question, does Free Pascal/Lazarus support all the OOP features of Delphi such as Inheritance, Classes. __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

begin:vcard
n:Robert Young;Robert
tel;pager:(arch) 800.946.4646 pin 1414048
tel;cell:416.999.7407
tel;fax:(905) 502-8205
tel;home:(905) 799-1079
tel;work:(905) 502-8212 ex249
x-mozilla-html:FALSE
url:http://www.irista.com/
org:<BR><IMG SRC="http://www.irista.com/images/common/logo_top_right.gif"><BR><BR><FONT Color=#000080><FONT SIZE=2><B>Bringing Vision to Your Supply Chain </B></FONT><BR> ;SCM/Enterprise version:2.1
email;
title:Sr. Project Engineer
adr;quoted-printable:;;160 Traders Blvd. East -Suite 201=0D=0A;Mississauga;Ontario;L4Z 3K7;Canada note;quoted-printable:I can also be contacted by
fn:Robert Young
end:vcard

Reply by email

Daniel Umoh
to Keith Bowes: ----- Original Message ----- From: "Satan" To: "Lazarus List" Sent: Wednesday, April 24,…

Maybe I misphrased my question a bit.
I'm don't wish to use Lazarus as a RAD tool, I want to use the Free Pascal compiler to compile a Windows
application and I thought maybe lazarus would have some components to help me do so. I don't know how to display a form...buttons...etc. I'm not interested in GTK really, I just wanna know how to do it.

As for DirectX, I already have that part covered. I'm making the DLL that uses DirectX in Delphi using the JEDI headers. I just need to make sure a form using lazarus components would be able to support DirectX.

BTW, what is the difference between a .pp and a .pas file?

__________________________________________________ Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/

Reply by email

Satan
to Daniel Umoh: Hello, first of all I am using Windows (win32). I'm a newbie to Free pascal and lazarus.…

to roberts mail:

as far as i see this is right, altough there are many people on the list which can tell you more than i can it is just the form editing (meaning this nice drag&drop rad stuff) which is under heavy construction and therefor not usable (this means DON'T TOUCH IT!!!) but you can use many of the components and as the previous answerer(?) said there are also examples which illustrate how you can use them (found in (yourlazarusdir)/examples)

to daniels:

to the dirty3d (aehm... i mean direct3d) stuff i cannot say much, because i know not much about its usage and the general usage of dlls with lazarus (perhaps keith can say something about it) but i suppose that you at least need headers/units for the dlls to access them (you can try the delphi ones you should have and if they don't work/compile change them to fpc - just a guess since i do not use win32) btw i don't even know about the status of the win32 lazarus (again keith should be your man - think he even has a page for lazarus on win32)

hih

Reply by email

Daniel Umoh

Hello, first of all I am using Windows (win32).
I'm a newbie to Free pascal and lazarus. What I want to use the compiler(s) for is to compile a basic form and some code that acesses a DLL programmed in Delphi. I suppose I should say that the DLL is a game engine programmed using DirectX. I want to use Free
Pascal/Lazarus to compile a form for playing the game in and to compile the game code that accesses the DLL engine.

All of this information might be irrelevant to you, basically I've had no luck in finding information on how to display a form. What components do I need and how do I use them. Can I compile delphi forms(.dfm) or do I need to use something else?
Right now I can't even use Lazarus because it keeps giving me the error message that it can't find
GTK-1.3.DLL. Where can I get that?

Final question, does Free Pascal/Lazarus support all the OOP features of Delphi such as Inheritance, Classes.

__________________________________________________ Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/

Reply by email