Question about getting application GtkWindow

Issue #164 resolved
Former user created an issue

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

So how can I get a pointer to the application main GtkWindow please ?

Comments (2)

  1. Log in to comment