Свойство | Type | Description | |
---|---|---|---|
_api |
Méthode | Description | |
---|---|---|
CallFunction ( string name ) : SciterValue | ||
CenterTopLevelWindow ( ) : void |
Centers the window in the screen. You must call it after the window is created, but before it is shown to avoid flickering
|
|
Close ( ) : void |
Close the window. Posts WM_CLOSE message on Windows.
|
|
CreateChildWindow ( |
Create an owned top-level Sciter window
|
|
CreateMainWindow ( int width, int height, |
||
CreateOwnedWindow ( |
||
CreateWindow ( |
Creates the Sciter window and returns the native handle
|
|
Destroy ( ) : void | ||
ElementAtPoint ( int x, int y ) : |
Find element at point x/y of the window, client area relative
|
|
ElementByUID ( uint uid ) : |
Searches this windows DOM tree for element with the given UID
|
|
EvalScript ( string script ) : SciterValue | ||
GetMinHeight ( uint for_width ) : uint | ||
GetMinWidth ( ) : uint | ||
GetPrimaryMonitorScreenSize ( ) : |
Cross-platform handy method to get the size of the screen
|
|
LoadHtml ( string html, string baseUrl = null ) : bool |
Loads HTML input from a string
|
|
LoadPage ( string url_or_filepath ) : bool |
Loads the page resource from the given URL or file path
|
|
SciterWindow ( ) : System | ||
SetMediaType ( string mediaType ) : bool |
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.
|
|
SetMediaVars ( SciterValue mediaVars ) : bool |
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.
|
|
SetSciterOption ( |
||
Show ( bool show = true ) : void | ||
ShowModal ( ) : void | ||
UpdateWindow ( ) : bool |
Update pending changes in Sciter window and forces painting if necessary
|
Méthode | Description | |
---|---|---|
ProcessWindowMessage ( |
Méthode | Description | |
---|---|---|
InternalProcessSciterWindowMessage ( |
public CallFunction ( string name ) : SciterValue | ||
name | string | |
Résultat | SciterValue |
public CreateChildWindow ( |
||
hwnd_parent | ||
Résultat | void |
public CreateMainWindow ( int width, int height, |
||
width | int | |
height | int | |
creationFlags | ||
Résultat | void |
public CreateOwnedWindow ( |
||
owner | ||
width | int | |
height | int | |
creationFlags | ||
Résultat | void |
public CreateWindow ( |
||
frame | Rectangle of the window | |
creationFlags | Flags for the window creation, defaults to SW_MAIN | SW_TITLEBAR | SW_RESIZEABLE | SW_CONTROLS | SW_ENABLE_DEBUG | |
parent | ||
Résultat | void |
public ElementAtPoint ( int x, int y ) : |
||
x | int | |
y | int | |
Résultat |
public ElementByUID ( uint uid ) : |
||
uid | uint | |
Résultat |
public EvalScript ( string script ) : SciterValue | ||
script | string | |
Résultat | SciterValue |
public GetMinHeight ( uint for_width ) : uint | ||
for_width | uint | |
Résultat | uint |
public static GetPrimaryMonitorScreenSize ( ) : |
||
Résultat |
public LoadHtml ( string html, string baseUrl = null ) : bool | ||
html | string | HTML of the page to be loaded |
baseUrl | string | Base Url given to the loaded page |
Résultat | bool |
public LoadPage ( string url_or_filepath ) : bool | ||
url_or_filepath | string | URL or file path of the page |
Résultat | bool |
protected ProcessWindowMessage ( |
||
hwnd | ||
msg | uint | |
wParam | ||
lParam | ||
lResult | ||
Résultat | bool |
public SetMediaType ( string mediaType ) : bool | ||
mediaType | string | |
Résultat | bool |
public SetMediaVars ( SciterValue mediaVars ) : bool | ||
mediaVars | SciterValue | Map that contains name/value pairs - media variables to be set |
Résultat | bool |
public SetSciterOption ( |
||
option | ||
value | ||
Résultat | bool |