Sign in Join

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

Mailing lists / lazarus / 2002-12

Updates

7 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner

Hi all,

I have renamed TInterfaceBase.Init to TInterfaceBase.AppInit and moved some initialization code. This function is called by Application.Initialize, which is normally the first statement in a program, and is therefore called after all initialization sections. Because the old Init in the gtk interface did some important things, it was not possible to use things like 'GetDC(0)' in the initialization section (gtk-interface), which is incompatible to Delphi. Therefore, I moved most of the Init code into the constructor and renamed Init to AppInit, as a counterpart to AppTerminate.

Minor updates:
- fixed codetools parser for number labels
- fixed find declaration for constructor types, a bug in 'with' contexts and improved several error messages.
- added a few Delphi compatibility things,
which make porting components easier.

Mattias

Reply by email

Unknown author
to Mattias Gaertner: On Mon, 23 Dec 2002 11:10:29 +0100 Hmm, it seems, that the 1.1 compiler auto converts…
Mattias Gaertner wrote 17 lines
On Mon, 23 Dec 2002 11:10:29 +0100 Jens Arm wrote: > Hi > > I can't compile newest CVS: > > .... > Assembling gtkdef > Compiling gtkwinapiwindow.pp > gtkwinapiwindow.pp(209,49) Error: Incompatible type for arg no. 3: Got > BOOLEAN, expected LONGINT gtkwinapiwindow.pp(959) Fatal: There were 1 > errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1 > make[3]: Leaving directory `/home/tux/lazarus/lazarus/lcl/interfaces/gtk' Hmm, it seems, that the 1.1 compiler auto converts boolean to gint. Sounds like a bug.

It is. The variant support is the probable cause of this. It is being worked on, please report this kind of error as much as possible.

Michael.

Reply by email

Mattias Gaertner

Hi all,

Custom contols can now contain child wincontrols under the gtk interface. That means you can now put controls on descendents of TWinControl, TCustomControl and TScrollingWinControl. Examples are: TTreeView, TPropertyGrid, TSynEdit and Tonys TCheckBook.

Mattias

Reply by email

Tony Maro
to Mattias Gaertner
Mattias Gaertner wrote
Hi all, TCustomControl and TScrollingWinControl. Examples are: TTreeView, TPropertyGrid, TSynEdit and Tonys TCheckBook.

Except that I think I've hard-coded TCheckBook to not allow that...

I think... right now my brain is fried.

-Tony

Reply by email

Mattias Gaertner

Hi all,

Updates for fpc1.1:

- The IDE can now read the defined makros from the 1.1 compiler
- new procedure specifiers: compilerproc, iocheck, [external]
- interfaces:
- method resolution
- 'implements' property specifier
- find declaration in and with interfaces,
forward interfaces, ...
- GUID

Mattias

Reply by email

Jens Arm
to Mattias Gaertner: Custom contols can now contain child wincontrols under the gtk interface. That means you…

Hi

I can't compile newest CVS:

....
Assembling gtkdef
Compiling gtkwinapiwindow.pp
gtkwinapiwindow.pp(209,49) Error: Incompatible type for arg no. 3: Got BOOLEAN, expected LONGINT gtkwinapiwindow.pp(959) Fatal: There were 1 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1
make[3]: Leaving directory `/home/tux/lazarus/lazarus/lcl/interfaces/gtk' ......

Jens

Reply by email

Mattias Gaertner
to Mattias Gaertner: Custom contols can now contain child wincontrols under the gtk interface. That means you…
Show quoted text 11 lines
Hi I can't compile newest CVS: .... Assembling gtkdef Compiling gtkwinapiwindow.pp gtkwinapiwindow.pp(209,49) Error: Incompatible type for arg no. 3: Got BOOLEAN, expected LONGINT gtkwinapiwindow.pp(959) Fatal: There were 1 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1 make[3]: Leaving directory `/home/tux/lazarus/lazarus/lcl/interfaces/gtk'

Hmm, it seems, that the 1.1 compiler auto converts boolean to gint. Sounds like a bug.
Should work now.

Mattias

Reply by email