This is documented here:
http://wiki.lazarus.freepascal.org/Accessing_the_Interfaces_directly
--
Felipe Monteiro de Carvalho
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
On Sat, 9 Jan 2010 01:07:46 +0100
Kjow antispamm...@gmail.com wrote:
Hi all,
I need some GTK2 behaviors in my Lazarus application, so I added
gtk2 unit to uses... but how to link (???) my form with
PGtkWindow?
e.g. new lazarus application with two buttons on the form:
2010/1/9 Paul Ishenin webpi...@mail.ru:
All gtk_something_new() return PGtkWidget. Just typecast it:
PGtkWindow(gtk_window_new())
Best regards,
Paul Ishenin.
Thanks, but how can I pass form to gtkwindow?
Kjow
--
___
Lazarus mailing list
2010/1/9 Mattias Gaertner nc-gaert...@netcologne.de:
If you want to make a form full screen under gtk, use:
uses gtkproc;
SetWindowFullScreen(Form1,true);
Mattias
Thank you!
It works, but can I use gtk2 calls in lazzarus apps?
Kjow
--
___
On Sat, 9 Jan 2010 10:24:26 +0100
Kjow antispamm...@gmail.com wrote:
2010/1/9 Mattias Gaertner nc-gaert...@netcologne.de:
If you want to make a form full screen under gtk, use:
uses gtkproc;
SetWindowFullScreen(Form1,true);
Mattias
Thank you!
It works, but can I use gtk2 calls
2010/1/9 Mattias Gaertner nc-gaert...@netcologne.de:
It depends. They may conflict with the gtk2 interface of the LCL.
Mattias
e.g. I need to use: gtk_widget_show (menu)
Where menu is a menu like TMainMenu, but I don't know how to create
the menu itself...
I'm sorry if I'm not using
2010/1/9 Kjow antispamm...@gmail.com:
e.g. I need to use: gtk_widget_show (menu)
Where menu is a menu like TMainMenu, but I don't know how to create
the menu itself...
If you want to use LCL components in GTK then cast the Handle:
MainMenu := TMainMenu.Create(...);
...