ClickableTransparentOverlay icon indicating copy to clipboard operation
ClickableTransparentOverlay copied to clipboard

Added ShowInTaskbar/NoActivate and made IsClickable non-static

Open iXab3r opened this issue 7 months ago • 1 comments

Hey! Thank you for the great library.

Several changes

  • Changed approach with IsClickable a bit - I needed to mutate styles for other properties, so made it so it respects current set of styles and not just overrides it
  • Added two new properties
    • ShowInTaskbar - controls styles so that OSD window gets hidden from the taskbar.
    • NoActivate - controls styles and changes WndProc processing a bit so that if enabled, the window DOES NOT steal focus from the window when activated (in the demo note how title bar color changes = focus changes). This is especially useful for games as allows to have non-interceptive overlay with some settings, etc. Known issue - textboxes require constant focus to work. So if you want users to type in something, you will have to dynamically enable activation. For all other types of controls I did not notice any issues.

https://github.com/user-attachments/assets/35554bcf-59e6-48ad-b5c6-47f605595852

iXab3r avatar Jun 21 '25 21:06 iXab3r

I was just about to implement this myself before finding this PR. These properties are supremely useful for games. @zaafar do you still have the bandwidth to roll these changes in?

jackburkhardt avatar Nov 07 '25 19:11 jackburkhardt