[Lazarus] GTK2 behaviors

cobines cobines at gmail.com
Sat Jan 9 21:46:50 CET 2010


2010/1/9 Kjow <antispammoni at 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(...);
...
gtk_widget_show(PGtkWidget(MainMenu.Handle))

--
cobines




More information about the Lazarus mailing list