I can't get the window id lazarus / 1-Linux ---------------------------------------------------------------------- stive · 2005-06-14 17:24 My problem: A want to get a window id but i can't get it from fpc. My xwinifo command result:xwininfo xwininfo: Please select the window about which you           would like information by clicking the           mouse in that window. xwininfo: Window id: 0x1e00007 "Parancsértelmező (2) - Konsole" How can i get the good data? I think the handle is good. Is bad idea. Sorry my english. ---------------------------------------------------------------------- Marc · 2005-06-15 10:40 if the windowID is ok, then it is a problem of xwininfo. (how do you get the ID ?) ---------------------------------------------------------------------- Anonymous · 2005-06-15 15:46 Quote from: "Marc"if the windowID is ok, then it is a problem of xwininfo. (how do you get the ID ?)Is my problem how can I get in pascal the WindowID. ---------------------------------------------------------------------- Marc · 2005-06-23 09:00 It is a trick, I can't promise how long it would work, we might change the definiton of the handle, but for now you can get it by: XID := PGdkWindowPrivate(TGtkWidget(YourWincontrol.Handle)^.Window)^.Xwindow