c-smile / sciter-js-sdk

Sciter.JS - Sciter but with QuickJS on board instead of my TIScript
BSD 3-Clause "New" or "Revised" License
1.64k stars 97 forks source link

Is there a way to describe a window as "AlwaysOnTop"? #258

Closed gbraad closed 2 years ago

gbraad commented 2 years ago

I made a simple desktop clock that is hovering over other windows. However, when clicked on a window that would overlap, it disappear according to a lower z-order. Is there a way to describe the window as "AlwaysOnTop" ?

image

pravic commented 2 years ago

window.isTopmost

gbraad commented 2 years ago

I have tried this, but didnt have the desired effect. Or is the following not possible?

<html window-isTopmost="true">
c-smile commented 2 years ago
<script>
   Window.this.isTopmost = true;
</script>
gbraad commented 2 years ago

Is there documentation that describes what is and isn't possible from the <html window-...> tag?

gbraad commented 2 years ago

The issue is resolved, but the naming isAlwaysTopmost would have made more sense, plus the difference what can and can not be in the html window definition.

c-smile commented 2 years ago

https://github.com/c-smile/sciter-js-sdk/blob/main/docs/md/HTML.md#window-attributes