Question about getting application GtkWindow
Issue #164
resolved
Hi, I need to get a pointer to the main GtkWindow object for my application built with fmxlinux in order to register a callback function to grab keyboard events.
The function FmuxKey in the API does not seem to do it, because the Key parameter is always null, and I need the full keyboard event.
I thought I could use TLinuxWindowHandle.FWindow which is a pointer, but it seems to be an internal fmxlinux structure...
To register my callback I want to use gtk_widget_add_events(window, GDK_KEY_PRESS_MASK); see https://stackoverflow.com/questions/44098084/how-do-i-handle-keyboard-events-in-gtk3
So how can I get a pointer to the application main GtkWindow please ?
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Fixed at 1.26
- Log in to comment
We will add requires API to next update.