Sciter, SVG support

June 11, 2014

Filed under: Sciter — Andrew @ 5:02 pm

Adding SVG support to Sciter:

Sciter SVG demo rendering

Sciter SVG demo rendering

This time SVG implementation uses standard DOM model so can be accessed by TIScript Element interface and styled by CSS.

Same drawing on Mac OSX:

[tiscript] ‘this’ and ‘this super’ function arguments

May 27, 2014

Filed under: How-to,Sciter,Script — Andrew @ 2:56 pm

Each function in JavaScript and TIScript gets implicit argument named this.

So when you call method of some object as then foo object is passed to the bar(param) function as a value of this argument. And the param will get value of 1.

All of us who are practicing JS, Python, Ruby, etc. know about that ‘this’ thing pretty well.

But what shall you do when you have inner function and want to access ‘this’ value of outer function? The only way in JavaScript for that is to declare other variable with distinct name and assign ‘this’ to it: var that = this;.

To cover such code patterns I’ve introduced in TIScript “super this” concept, so we have following implicit variables in any function:

  • this – standard this variable;
  • this super – standard this variable of outer function;
  • this super super – this variable of outer-outer function;
  • etc.

Here is an example that outputs “6″ in standard output:

class Test {

  function this(data) { // constructor = data;   // instance field 

  function Outer(arg1) {
    // this - hidden argument, local variable 
    // arg1 - argument, local variable

    function Inner(arg2)  {
      // this - hidden argument, local variable 
      // arg2 - argument, local variable
      // arg1 - outer variable - outer argument
      // this super - outer variable - outer 'this' argument
        (this super).data   // 1 
        + arg1              // 2
        + arg2              // 3
    return Inner;

var test = new Test(1);

var innerFunc = test.Outer(2);

stdout.println( innerFunc(3) );

Sciter 3.1 with Mac OS X support from now

May 19, 2014

Filed under: Sciter — Andrew @ 2:25 pm

First release of Sciter 3.1 is now available at

Sciter works now on Windows and on Mac OS X too.

Sciter layered window demo on Mac OS X

Sciter layered window demo on Mac OS X


  • Windows version is in stable phase (I didn’t change core implementation too much from Sciter 3.0).
  • Mac OS X is in beta phase with following known issues so far:
    • Work on master.css (default OS theme styling) is not complete yet. Expect some abnormalities in standard input renderings.
    • HTTP/HTTPS client is not complete yet so Element.request() calls (a.k.a. AJAX) will fail on http:// urls.

Note, API changes:

  • sciter.dll and sciter-osx.dylib expose single function SciterAPI() that returns pointer to "API interface table" – structure that contains all functions that used to be exposed directly in Sciter 3.0. Among other things this allows to use inspector.dll from statically linked Sciter code and to load Sciter DLL with greater flexibility. See SAPI() loader function.
  • All old API functions are implemented as inlines, like:
      inline LPCWSTR SCAPI SciterClassName () { return SAPI()->SciterClassName(); }
    so it is enough to recompile existing applications in order to use new API.
  • Mac OSX version does not have SciterProcND() for obvious reasons, use SciterCreateWindow() instead, it will create Sciter’s NSView instance inside its own NSWindow.
  • SciterCreateWindow() works on Windows too. You can use it to create standalone Sciter windows.

Fixes from latest ( version:

  • Fix of Event.x/yRoot computation
  • CSS++, mapping: left-to-right( alignment ), switches text-align:left to text-align:right and also does this for horizontal-align. It does NOT switch text-align:start | end; values.
  • Fix of text-overflow: ellipsis in GDI+ mode.
  • view.dialog() fix of custom frame, "resizeable" interpretation.
  • GDI+, rounded border rendering fix.
  • [tiscript, regexp] infinite loop on some types of REs in string.split(re).
  • [+plus] glibc++ compatibility fixes.
  • <img> fix of border rendering (default styling issue)
  • better shutdown handling (fonts)

Builds: win32, win64, osx64

Usability. Input form validation.

May 14, 2014

Filed under: Usability,Web Application Techologies — Andrew @ 2:04 pm

While ago I’ve found article “Inline validation in web forms” on AListApart particularly deep and yet useful. Despite that it was published 5 years ago it is still actual.

Validation. Eye tracking analysis

Validation. Eye tracking analysis

[AngularJS] “you have ruined javascript”

April 25, 2014

Filed under: Web Application Techologies — Andrew @ 10:58 am

Rob Ashton article: “you have ruined javascript”

While I am considering it as a bit of overreaction but I 100% agree with the nature of problems defined there.

Chase for silver bullet lead us in the same trap of over-engineered world of abstractions. Or over-abstracted world of engineering? Whatever …

Mac OSX, DPI and font sizes mess

April 12, 2014

Filed under: HTML and CSS,Sciter,Web Application Techologies — Andrew @ 8:10 pm

Most of applications on Mac OS X use fixed 72 DPI settings despite of all these Retina and other high-DPI monitors. I understand that this is legacy we’ve got from last century. But c’mon, it is 2014 out there …

Even conventional browsers that supposed to handle scaling well by using CSS rules are failing to render simple things like:

  <div style="width:3in; width:3in; border:1px solid">
    is it 3 inch square?

you will see everything but not 3 inches square here.

I am not getting what’s the problem to implement proper scaling. Here it is in Sciter on Mac:
DPI screenshot

Screenshot is taken on Mac with Dell UltraSharp U2711 monitor.

« Previous PageNext Page »