[Lazarus] Getting X Window handle ?

Kostas Michalopoulos badsectoracula at gmail.com
Tue Nov 6 11:44:04 CET 2012


Why not a TContol (or TWinControl) method?

On Tue, Nov 6, 2012 at 11:04 AM, Mark Morgan Lloyd
<markMLl.lazarus at telemetry.co.uk> wrote:
> zeljko wrote:
>>
>> On Tuesday 06 of November 2012 10:20:03 Mark Morgan Lloyd wrote:
>>>
>>> Kostas Michalopoulos wrote:
>>>>
>>>> I'd like such a function myself too, sometimes it is useful to access
>>>> the *real* native window regardless of the widgetset you use (GTK, Qt,
>>>> Carbon, etc).
>>>
>>> Definitely agreed. In my case so that a program can disable the screen
>>> saver whilst it's running using xdg-screensaver.
>>
>>
>> Maybe we can add LCLIntf.GetNativeHandle(Handle: HWND): PtrUInt ?
>
>
> +1 here. I had to resort to calling xwininfo, since it was the only way I
> could be absolutely confident that the ID was always correct irrespective of
> the combination of wm/desktop and display manager.
>
>
> --
> Mark Morgan Lloyd
> markMLl .AT. telemetry.co .DOT. uk
>
> [Opinions above are the author's, not those of his employers or colleagues]
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus




More information about the Lazarus mailing list