Questions tagged [clx]

The Component Library for Cross Platform (CLX), is a cross-platform visual component-based framework for developing on [Microsoft Windows] and [Linux] applications. It is developed by Borland for use in its Kylix, Delphi, and C++ Builder software development environment.

The aim of CLX was to replace the existing and popular Microsoft Windows-only framework Visual Component Library (VCL). CLX was based on QT by Trolltech. The API of CLX followed almost completely the VCL. It was envisioned that existing applications using VCL would simply be recompiled with CLX.

This article by Brian Long introduces CLX and makes a comparison between VCL and CLX.

However, due to lacklustre performance on Windows, subtle differences from VCL and bugs it didn't became the expected successor of VCL. Commercial failure of Kylix stopped further development of CLX.

In terms of object oriented approach, the CLX forms an object hierarchy where the TObject class serves as the base class. All other classes inherit or indirectly inherit the TObject class. This is necessary as Delphi does not support multiple inheritance, unlike C++.

Visual CLX is supported until Delphi 7, though there are some efforts to build the (Free)CLX with FPC.

10 questions
3
votes
1 answer

How to set linux wallpaper using clx

I'm trying changing wallpaper using clx, but it do not work. What is wrong with my code? (ql:quickload :clx) (defpackage #:wm/uw (:use #:cl #:xlib)) (in-package #:wm/uw) (setf *display* (open-default-display)) (setf *screen*…
C-Entropy
  • 303
  • 2
  • 9
3
votes
1 answer

FastMM report memory leak on a class freed on FormDestroy

I have encountered a memory leak problem with a Delphi 7 application(CLX), with a piece of code like the following : unit Unit2; interface uses ECRClass, ECR_Text, SysUtils, Types, Classes, Variants, Math; type tLeakClass = class private …
aleroot
  • 71,077
  • 30
  • 176
  • 213
2
votes
0 answers

How to create a window in Xlib that gets positioned by a window manager? (Lisp, CLX, StumpWM)

I have the following code. It draws a 200x200 white square in the top-left-most corner of my screen. What changes need to be made to the code so that the square is picked up by StumpWM and drawn in the top-left-most corner of the current StumpWM…
Eric Ihli
  • 1,722
  • 18
  • 30
2
votes
1 answer

Avoid click propagation on Page that is under the current page on a TPageControl

I have a TPageControl that contains five pages and the page shown is alternated setting the ActivePageIndex property in this way: PageControl1.ActivePageIndex := 4; the problem is that the page below covered by the page currently shown get click on…
aleroot
  • 71,077
  • 30
  • 176
  • 213
2
votes
1 answer

Intercept TAB key in KeyPress event of a CLX TEdit

I have a TEdit (VisualCLX Component) and I want to override the behaviour of the TAB Key in the onKeyPress event, but if I try to intercept the TAB key in the KeyPress event it doesn't work because the event is not fired when the tab key is pressed…
aleroot
  • 71,077
  • 30
  • 176
  • 213
1
vote
0 answers

Seeking mechanism to convert Delphi 7 CLX programs to Delphi XE6 - best option?

We've been using Delphi 7 for our in-house development environment for several years now, and we're looking into updating to the newest version of Delphi. (At the time, this appears to be XE6.) However, many of the old programs we maintain were…
user2051521
  • 149
  • 3
1
vote
1 answer

reuse resource image bitmap instead of duplicate them in xfm files

I have several TBitBtns in several different forms of a Delphi 7 CLX application that make use of some images as Glyph (TBitMap), now the problem is that though the images are the same, each time I load the TBitMap as Glyph property of the…
aleroot
  • 71,077
  • 30
  • 176
  • 213
1
vote
2 answers

C++ Function signature that returns a PPL task?

I am a total noob when it comes to using PPL tasks within the C++ environment, so I am having a hard time to figure out what would be the C++ syntax of the following C# code: private static async Task
Erunehtar
  • 1,583
  • 1
  • 19
  • 38
1
vote
1 answer

Filter(disabling) mouse wheel messages in a VisualCLX Form

I have inherited a Delphi 7 (VisualCLX) application to maintain and I want to filter some windows message like the mouse wheel (WM_MOUSEWHEEL) on the main form(TForm) of the application, is it possible on the Visual CLX ? How ? I know that is…
aleroot
  • 71,077
  • 30
  • 176
  • 213
0
votes
1 answer

What is the proper way to handle a yes/no Message Dialog when leaving a text field?

My question title may be a bit misleading; if so, I apologize. I am unsure how better to title it. I am attempting to add geocoding for address validation to a Delphi 7 form (built with CLX), and I'm running into a bit of a problem with it. The…
user2051521
  • 149
  • 3