Jump to content
Miguel Jr

VCL or CLX? How do I know what type of application I'm designing in Delphi 7. I'm a beginner.

Recommended Posts

VCL or CLX? How do I know what type of application I'm starting in a project in Delphi 7. How do I start a project in VCL or CLX and know if I'm in a VCL or a CLX? I'm a beginner.

Share this post


Link to post

VCL. CLX is long dead. Was (first) attempt of an cross platform solution. CLX was also used in Kylix (Delphi for Linux) being discontinued a long time ago. 

Share this post


Link to post

I understood. The current application is VCL. I understood that. But what I want to know: is how do I use VCL in Delphi 7, or better yet, know that in the form I'm designing, if VCL is running? Because the VCL name does not appear in the components window. CLX only. Remembering, I'm a beginner and I don't know how to run VCL in "Delphi 7". And I'm using "Delphi 7".

Share this post


Link to post
6 hours ago, Markus Kinzler said:

VCL. CLX is long dead. Was (first) attempt of an cross platform solution. CLX was also used in Kylix (Delphi for Linux) being discontinued a long time ago. 

Delphi 7 is also long dead. 

Share this post


Link to post
32 minutes ago, David Heffernan said:

Delphi 7 is also long dead. 

Unsupported definitely. But dead...?

I hear it's the go-to version for lots of legacy codebases.

Share this post


Link to post
3 hours ago, Miguel Jr said:

I understood. The current application is VCL. I understood that. But what I want to know: is how do I use VCL in Delphi 7, or better yet, know that in the form I'm designing, if VCL is running? Because the VCL name does not appear in the components window. CLX only. Remembering, I'm a beginner and I don't know how to run VCL in "Delphi 7". And I'm using "Delphi 7".

 

Even if it's what you say. But can you answer my last question?

Share this post


Link to post

In D7... 

  - VCL form files are saved as *.dfm, whereas CLX files are saved as *.xfm.

  - in a CLX project, units in the uses are prefixed with a Q

D7-clx.jpg

D7-vcl.jpg

Share this post


Link to post

I understood. But the interesting thing is that it doesn't show in my "new" that the application is VCL in Delphi 7. It only shows when it is CLX. It should be like the Default Delphi 7 VCL. Thanks. Grateful.

Share this post


Link to post
10 hours ago, Miguel Jr said:

But the interesting thing is that it doesn't show in my "new" that the application is VCL in Delphi 7. It only shows when it is CLX. It should be like the Default Delphi 7 VCL.

I'm not sure I understand. Are you saying that when you go to start a new project, there is no VCL option provided? If so, then maybe your installation is messed up, or maybe you are using Kylix instead of D7. Hard you say. Can you provide screenshots of what you are actually seeing?

Share this post


Link to post
On 7/20/2024 at 8:17 AM, Miguel Jr said:

what I want to know: is how do I use VCL in Delphi 7, or better yet, know that in the form I'm designing, if VCL is running? Because the VCL name does not appear in the components window.

By default, creating a new Windows Application in Delphi 7 uses the VCL framework. That was the default since Delphi 1--and actually is still the primary one on the menu today (unless you change it). So, if you select "Application" and not "CLX Application" from the New menu then you are creating a VCL application:

image.png.517271a83e715262269cd5d093274120.png

 

Once the application is created, you can look at the main form of your application. In addition to what @jonnyg said by checking whether it's linked to DFM or XFM resource, you can Ctrl+Click on one of the used units, such as Forms, and look at the comment header, which will tell you explicitly what type of component library is being compiled and linked in:

{*******************************************************}
{                                                       }
{       Borland Delphi Visual Component Library         }
{                                                       }
{  Copyright (c) 1995-2002 Borland Software Corporation }
{                                                       }
{*******************************************************}

unit Forms;

 

In newer versions of Delphi where VCL is not always assumed, the menu choices to create a project are more clearly specified. For example, in Delphi 11, this is the default New menu:

image.thumb.png.70694f6699a07e67457c61eb08d4684b.png

 

... and "Multi-Device Application" is using FireMonkey (FMX) as that is the only cross-platform visual library that comes with Delphi these days.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×