Quartex Pascal v1.0.1.4 is out

We are happy to report that a new update of Quartex Pascal is out and available for download. This is quite a monumental build that introduces more infrastructure for non-visual components – and several fixes to issues that showed up with the introduction of datamodules. What’s new and cool? Visually there is not much change,Continue reading “Quartex Pascal v1.0.1.4 is out”

Working with JS events

In this article I will focus on a relatively advanced topic, meant for those of you that implement components and widgets yourself. Especially if you are writing components that is meant to be used by JavaScript developers outside your object pascal ecosystem – or sold as a commercial package for Quartex Pascal.

From handle to widget

In the Quartex Pascal RTL we support both traditional pascal events, like people are used to from Delphi or Freepascal, as well as delegate objects native to JavaScript. Most widgets exposes standard events like OnClick when it’s useful, and if you need more specific event handling you can attach a delegate for it.

Creating a scrolltext widget

In this article we will be creating a scrolltext widget from scratch, which is a good way to demonstrate how easy it is to write your own controls in QTX. It is a lot easier than under Delphi or Lazarus since the browser provides most of the functionality out of the box for you, and the QTX runtime library provides the rest.