> Tiscript : 1.3.0
> Javascript : 1.3.0
Movable view for Sciter windows, allows you to move the window using any element in it.
Advantages:
- Cheating windows performance setting, you will see the full window and not just a rectangle while moving it in performance mode.
- Optional prevent crossing screen bounds.
- Does NOT conflict with CSS cursor properties, unlike
role="window-caption"
. - Allows dragging beyond the top edge of the screen, which is prevented by Aero Snap on Windows when using
role="window-caption"
.
Using inside a compiled application should use less than 1% CPU (while moving the view).
Add this file to your resources/UI folder
movableView.tis // OR
movableView.js
Then add the file to your project either from HTML :
<script src="movableView.tis" type="text/tiscript"></script> // OR
<script src="movableView.js" type="text/javascript"></script>
or from your main script file :
include "movableView.tis"; // OR
import movableView from "movableView.js" // uncomment last line in `movableView.js`
Then initiate it by calling
movableView("selector" [, screenBound:bool(false)]);
with the selector being any CSS selector i.e. div
.div
#div
the second parameter true|false
to prevent window from going past the screen boundaries.