[Lazarus] Show a window under GTK2 in front without stealing the focus

zeljko zeljko at holobit.net
Thu Jan 19 15:04:06 CET 2017


On 19.01.2017 13:55, Michael Fuchs via Lazarus wrote:
> Hello,
>
> I try to use a notify-like window in one of my applications.
> That means that a window should be shown on top of all windows, but did
> not steal the focus from other running applications.
>
> Under windows this works with
>
>   ShowWindow(MyForm.Handle, SW_SHOWNOACTIVATE);
>
> But how can I do this under GTK2?

Don't know now exactly, but gtk_window_set_focus_on_map(Window, False) 
maybe could help. Have you looked into gtk2winapi ? eg Qt have such flag 
and it can show window without activating.

zeljko



More information about the Lazarus mailing list