Sign in Join

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

Mailing lists / lazarus / 2002-06

Problem

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Andrea Lai TIN: I have download and install the binary distribution of Lazarus on my Mandrake 8.2…
Show quoted text 8 lines
I have another problem. I have create a simple project that have one form and one button that when I click on the button the program must be display me a message using the MessageDlg procedure. [...] Than I compile a program, but when I run it and I click the button no message is display me.

The steps works for me.
But form editing is under construction. Perhaps u got a cvs snapshot, where some things didn't work. Does your unit1.lfm file looks like:

object Form1: TForm1
CAPTION = 'Form1'
COLOR = -2147483633
CLIENTHEIGHT = 300
CLIENTWIDTH = 400
LEFT = 291
HEIGHT = 300
TOP = 167
WIDTH = 400
object Button1: TBUTTON
CAPTION = 'Button1'
FONT.CHARSET = 1
FONT.COLOR = -2147483640
FONT.NAME = 'default'
ONCLICK = Button1CLICK
LEFT = 98
HEIGHT = 25
TOP = 119
WIDTH = 75

  end

end

?

Mattias

Reply by email

Andrea Lai TIN

I have download and install the binary distribution of Lazarus on my Mandrake 8.2 distribution and I have this problem: �
When I compile the simple project the RAD display
me this error : "Can't find unit CONTROLS"
�
I have read same FAQ
on Web site and then I have download source code of lazarus and I have compile them but, when I compile a project�this error persist. �
I have verify the my /etc/fpc.cfg, I have search
the "CONTROLS unit" but this error persit.
�
Can You help me ?
�
Thank You!
�
P.S. Sorry for my English but I'm
Italian
�
�
�

Reply by email

Mattias Gaertner
to Andrea Lai TIN
Show quoted text 5 lines
I have download and install the binary distribution of Lazarus on my Mandrake 8.2 distribution and I have this problem: When I compile the simple project the RAD display me this error : "Can't find unit CONTROLS" I have read same FAQ on Web site and then I have download source code of lazarus and I have compile them but, when I compile a project this error persist.

As you first started Lazarus the IDE sets the lazarus path to the binary directory. Make sure, that it now points to the new downloaded sources: Environment->General Options->Files->Lazarus Directory.

Mattias

Reply by email

Andrea Lai TIN
to Andrea Lai TIN: I have download and install the binary distribution of Lazarus on my Mandrake 8.2…

Thank You!

I have another problem.

I have create a simple project that have one form and one button that when I click on the button the program must be display me a message using the MessageDlg procedure.

I have used a Delphi syntax !

example :

unit Unit1;
{$mode objfpc}{$H+}
interface

uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, LResources, StdCtrls, Buttons;

type
  TForm1 = class(TForm)
    Button1: TButton;
    Label1: TLabel;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;
var
  Form1: TForm1;
implementation
procedure TForm1.Button1Click(Sender: TObject);
begin
  Messagedlg('Test',TMsgDlgType(mtWarning),TMsgDlgButtons(mbok),0);
end;
initialization
{$I unit1.lrs}
end.

Than I compile a program, but when I run it and I click the button no message is display me.

Thank you!

Earlier message 32 lines
----- Original Message ----- From: "Mattias Gaertner" To: Sent: Friday, June 07, 2002 6:11 PM Subject: Re: [lazarus] Problem > On Fri, 7 Jun 2002 16:47:29 +0200 > "Andrea Lai TIN" wrote: > > > I have download and install the binary distribution of Lazarus on my Mandrake 8.2 distribution and I have this problem: > > > > When I compile the simple project the RAD display me this error : "Can't find unit CONTROLS" > > > > I have read same FAQ on Web site and then I have download source code of lazarus and I have compile them but, when I compile a project this error persist. > > As you first started Lazarus the IDE sets the lazarus path to the binary directory. Make sure, that it now points to the new downloaded sources: > Environment->General Options->Files->Lazarus Directory. > > > Mattias > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email