Obtain Window type from VCL Form

Issue #282 resolved
Alex Egorov created an issue

Is there any solution or recommendation how to get Window from Form.Handle on Linux?

Free Pascal have FormToX11Window function for this

Comments (4)

  1. Alex Egorov reporter

    I’m found GetNativeHandles function for this in Examples, but I this this should be added to faq and dev.guide in any way

  2. Alex Egorov reporter

    If I’m understand correctly, GetNativeHandles returns PGtkWindow in the first parameter,

    but which type in the second parameter? Can’t obtain XID type.

  3. Eugene Kryukov repo owner

    First param is a Window (PGtkWindow, NSWindow), second param is child container (PGtkWidget, NSView) where all children inserted.

  4. Log in to comment