[Lazarus] GTK2 behaviors

Paul Ishenin webpirat at mail.ru
Sat Jan 9 07:02:49 CET 2010


Kjow wrote:
>    window :=  gtk_window_new (GTK_WINDOW_TOPLEVEL); ------> it returns
> PGtkWidget, not PGtkWindow
>   
All gtk_something_new() return PGtkWidget. Just typecast it: 
PGtkWindow(gtk_window_new())

Best regards,
Paul Ishenin.




More information about the Lazarus mailing list