SciterSharpWindows
Show a system message-box owned by this Sciter window. If caption is null, it will be the title of the Sciter window
Flags that define appearance and behaviour of a standard message box displayed by a call to the MessageBox function.
Represents possible values returned by the MessageBox function.
Provides functions to capture the entire screen, or a particular window, and save it to a file.
Creates an Image object containing a screen shot of the entire desktop
Creates an Image object containing a screen shot of a specific window
The handle to the window. (In windows forms, this is obtained by the Handle property)
Captures a screen shot of a specific window, and saves it to a file
Captures a screen shot of the entire desktop, and saves it to a file
Helper class containing Gdi32 API functions
Helper class containing User32 API functions
Setup a global debug output handler
Setup a Sciter window specific debug output handler
Test this element against CSS selector(s)
Loads image from PNG or JPG image buffer
Loads image from RAW BGRA pixmap data
Size of pixmap data is pixmapWidth*pixmapHeight*4
construct image from B[n+0],G[n+1],R[n+2],A[n+3] data
Save this image to png/jpeg stream of bytes
24 or 32 if alpha needed
png: 0, jpeg: 10 - 100
Attacheds a window level event-handler: it receives every event for all elements of the page.
You can only attach a single event-handler.
Posts a message to the UI thread to invoke the given Action. This methods returns immediatly, does not wait for the message processing.
The delegate which will be invoked
Sends a message to the UI thread to invoke the given Action. This methods waits for the message processing until timeout is exceeded.
The delegate which will be invoked
Runs the inspector process, waits 1 second, and calls view.connectToInspector() to inspect your page.
Assumes that the 'inspector(.exe)' executable is in the same directory of OmniCode.dll assembly (so just it to its dir)
(Before everything it kills any previous instance of the inspector process)
Runs the inspector process, waits 1 second, and calls view.connectToInspector() to inspect your page.
(Before everything it kills any previous instance of the inspector process)
Path to the inspector executable, can be an absolute or relative path.
Sciter cross-platform alternative for posting a message in the message queue.
It will be received as a SC_POSTED_NOTIFICATION notification by this SciterHost instance.
Override OnPostedNotification() to handle it.
If timeout is > 0 this methods SENDs the message instead of POSTing and this is the timeout for waiting the processing of the message. Leave it as 0 for actually POSTing the message.
Returns SciterValue representing error.
If such value is used as a return value from native function the script runtime will throw an error in script rather than returning that value.
Creates the Sciter window and returns the native handle
Rectangle of the window
Flags for the window creation, defaults to SW_MAIN | SW_TITLEBAR | SW_RESIZEABLE | SW_CONTROLS | SW_ENABLE_DEBUG
Centers the window in the screen. You must call it after the window is created, but before it is shown to avoid flickering
Cross-platform handy method to get the size of the screen
SIZE measures of the screen of primary monitor
Loads the page resource from the given URL or file path
URL or file path of the page
Loads HTML input from a string
HTML of the page to be loaded
Base Url given to the loaded page
Close the window. Posts WM_CLOSE message on Windows.
Find element at point x/y of the window, client area relative
Searches this windows DOM tree for element with the given UID
The element, or null if it doesn't exists
Update pending changes in Sciter window and forces painting if necessary
For example media type can be "handheld", "projection", "screen", "screen-hires", etc.
By default sciter window has "screen" media type.
Media type name is used while loading and parsing style sheets in the engine so
you should call this function* before* loading document in it.
For example media type can be "handheld:true", "projection:true", "screen:true", etc.
By default sciter window has "screen:true" and "desktop:true"/"handheld:true" media variables.
Media variables can be changed in runtime. This will cause styles of the document to be reset.
Map that contains name/value pairs - media variables to be set
attached/detached
mouse events
key events
focus events, if this flag is set it also means that element it attached to is focusable
scroll events
timer event
size changed event
drawing request (event)
requested data () has been delivered
logical, synthetic events:
BUTTON_CLICK, HYPERLINK_CLICK, etc.,
a.k.a. notifications from intrinsic behaviors
behavior specific methods
behavior specific methods
behavior specific methods using direct tiscript::value's
system drag-n-drop
touch input events
GESTURE_TYPE_FLAGS or GESTURE_STATE combination
do default loading if data not set
discard request completely
data will be delivered later by the host
Host application must call SciterDataReadyAsync(,,, requestId) on each LOAD_DELAYED request to avoid memory leaks.
you return LOAD_MYSELF result to indicate that your (the host) application took or will take care about HREQUEST in your code completely.
Use sciter-x-request.h[pp] API functions with SCN_LOAD_DATA::requestId handle.
value:TRUE - enable, value:FALSE - disable, enabled by default
value: milliseconds, connection timeout of http client
value: 0 - drop connection, 1 - use builtin dialog, 2 - accept connection silently
value: 0 - system default, 1 - no smoothing, 2 - std smoothing, 3 - clear type
Windows Aero support, value:
0 - normal drawing,
1 - window has transparent background after calls DwmExtendFrameIntoClientArea() or DwmEnableBlurBehindWindow()
hWnd = NULL,
value = LPCBYTE, json - GPU black list, see: gpu-blacklist.json resource.
value - combination of SCRIPT_RUNTIME_FEATURES flags.
hWnd = NULL, value - GFX_LAYER
hWnd, value - TRUE/FALSE
hWnd = NULL, value - BOOL, TRUE - the engine will use "unisex" theme that is common for all platforms.
That UX theme is not using OS primitives for rendering input elements. Use it if you want exactly
the same (modulo fonts) look-n-feel on all platforms.
hWnd, value - TRUE/FALSE - window uses per pixel alpha (e.g. WS_EX_LAYERED/UpdateLayeredWindow() window)
Child window only, if this flag is set all other flags ignored
Toplevel window, has titlebar
Has resizeable frame
Is tool window
Has minimize / maximize buttons
Glassy window ( DwmExtendFrameIntoClientArea on windows )
Transparent window ( e.g. WS_EX_LAYERED on Windows )
Main window of the app, will terminate app on close
The window is created as topmost
Make this window inspector ready
It has its own script VM
Represents a SciterWindow control.