Skip to content

Commit 15c23f5

Browse files
authored
Update README.md
1 parent 9258be1 commit 15c23f5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ using EmptyFlow.SciterAPI;
2323

2424
var sciterFolder = Environment.CurrentDirectory; // you need specify folder where will be located sciter library file (sciter.dll/libsciter.so/libsciter.dylib)
2525
var host = new SciterAPIHost ( sciterFolder ); // create host and load API
26-
host.CreateMainWindow ( 300, 300, enableDebug: true, enableFeature: true ); // create main window and enable debug mode and sciter features (like access to system in JavaScript)
27-
host.AddWindowEventHandler ( new MyWindowEventHandler ( host ) ); // create and register window Event Handler (via event handler you can handle events from windows or elements)
26+
host.EnableDebugMode(); // enable debug mode
27+
host.EnableFeatures(); // enable all feature by default, or you can pass you set via parameter
28+
host.CreateWindow ( asMain: true ); // create main window and enable debug mode and sciter features (like access to system in JavaScript)
29+
host.AddWindowEventHandler ( new SciterEventHandler ( host.MainWindow, host ) ); // create and register window Event Handler (via event handler you can handle events from windows or elements)
2830
host.LoadFile ( "file://path/my.html" ); // load HTML page, path specified in first argument
2931
host.Process (); // start sciter and run main loop for show main window
3032

0 commit comments

Comments
 (0)