Recent

Author Topic: How to create a transparent window floating over a form?  (Read 733 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1146
    • HowTos Considered Harmful?
How to create a transparent window floating over a form?
« on: March 05, 2024, 04:28:16 am »
How do I create a transparent window floating over a form?

The idea is for it to trap and handle key and mouse events related to the form it is floating over.

It is in relation to the objectives of Lazarus method of listing all objects that can get focus, hot keys and clicks? and the image shown there.
Lazarus 3.0/FPC 3.2.2

Tomi

  • Full Member
  • ***
  • Posts: 130
Re: How to create a transparent window floating over a form?
« Reply #1 on: March 05, 2024, 09:25:22 am »
It seems like a tough nut to crack - at least for me...
Did you think of something like that in this topic: https://forum.lazarus.freepascal.org/index.php?topic=36778.0 ?
Maybe there are some useful things in it for you.

HaraldNieswandt

  • Newbie
  • Posts: 2
Re: How to create a transparent window floating over a form?
« Reply #2 on: March 07, 2024, 10:00:49 am »
How do I create a transparent window floating over a form?

The idea is for it to trap and handle key and mouse events related to the form it is floating over.

It is in relation to the objectives of Lazarus method of listing all objects that can get focus, hot keys and clicks? and the image shown there.


You find here a sample, I hope it's helpful. Sometimes is a problem to catch the first MouseDown but latest the second MouseDown works ...

P.S.: First action in the running app is to move the slider for the transparency!

« Last Edit: March 07, 2024, 10:03:33 am by HaraldNieswandt »

 

TinyPortal © 2005-2018