PGtkWidget from Component lazarus / 8-Other ---------------------------------------------------------------------- Argonix · 2010-01-23 18:43 Hello! I want to draw a Button over a TListBox. If I compile for Qt4 it works, but if I use GTK2, the Button does not show up. The GTK+-Manual says I have to set the GTK_APP_PAINTABLE flag on the GtkWidget. So I need to execute Code: [Select]gtk_widget_set_app_paintable(?widget?, true); for the Gtk ListBox widget. But I only have the TCustomListBox. How do I get the GTK widget from the Listbox without hacking the LCL? ---------------------------------------------------------------------- theo · 2010-01-23 21:11 Quote from: Argonix on January 23, 2010, 07:43:42 pmHello! I want to draw a Button over a TListBox. If I compile for Qt4 it works, but if I use GTK2, the Button does not show up. The GTK+-Manual says I have to set the GTK_APP_PAINTABLE flag on the GtkWidget. So I need to execute Code: [Select]gtk_widget_set_app_paintable(?widget?, true); for the Gtk ListBox widget. But I only have the TCustomListBox. How do I get the GTK widget from the Listbox without hacking the LCL? Hallo Targion! Im Prinzip kannst du afaik einfach das Listbox Handle typecasten, aber ich glaube da beisst du trotzdem auf Granit. ---------------------------------------------------------------------- Argonix · 2010-01-23 21:56 Hi! Na, dann können wir im Grunde die Diskussion wieder ins deutsche Lazarusforum zurück verlegen Wenn ich PGtkWidget(self.Handle) benutze bekomme ich aber die Fehlermeldung "Control '' has no parent window" Das ist wirklich doof...