Position of TaskBar on Linux lazarus / 1-Linux ---------------------------------------------------------------------- bonmario · 2008-09-01 18:10 Hi at all, in windows i use this code to detect position of windows' taskbar: Code: [Select]var   hWndTaskbar: HWND;   TaskbarRect: TRect; begin     { First we get the Taskbar window and it's screen position }     hWndTaskbar := FindWindow('Shell_TrayWnd', nil);     if hWndTaskbar = 0 then Exit;     Windows.GetWindowRect(hWndTaskbar, @TaskbarRect);     //Memo1.Lines.Add(TaskbarRect.Top);     //Memo1.Lines.Add(TaskbarRect.Bottom);     //Memo1.Lines.Add(TaskbarRect.Left);     //Memo1.Lines.Add(TaskbarRect.Right); end; Someone knows how do the same on Linux??? Thanks, Mario ---------------------------------------------------------------------- felipemdc · 2008-09-05 13:25 Why do you need this? I would avoid it if you can. I beliave it will be hard. A possible solution would be creating a system tray icon with TTrayIcon and then call TTrayIcon.Position. With this position you can easely calculate the taskbar position, but you need a visible tray icon. ---------------------------------------------------------------------- bonmario · 2008-09-05 17:32 Quote from: "sekel"Why do you need this? I would avoid it if you can. I beliave it will be hard. A possible solution would be creating a system tray icon with TTrayIcon and then call TTrayIcon.Position. With this position you can easely calculate the taskbar position, but you need a visible tray icon. I want center a form in the screen and poScreenCenter don't consider the TaskBar so, on a PC with the TaskBar very high the form is not on center of the screen