Solved

Apply the VCL Style on an ActiveX in DELPHI XE2

Posted on 2013-01-30
4
1,022 Views
Last Modified: 2013-02-06
Almost all our GUI is embedded on OCXs, thus is very important for us to have that feature and allow to apply the VCL-Styles to the DLLs (OCXs in our case).

However our IDE doesn't have that feature that other people has on Delphi XE2 > Project > Resources and images... (Find attach two pictures the one without the VCLSTyle is our IDE)

Have someone try to embed the a VCLStyle in a DLL or an OCX on Delphi XE2?

Thanks.
Missing-VCLStyle-type-.png
VCLStyle-type.png
0
Comment
Question by:Aralia_Systems
  • 3
4 Comments
 
LVL 19

Assisted Solution

by:Thommy
Thommy earned 50 total points
Comment Utility
Maybe this helps you...
VCL-Styles embedded in dll?
0
 

Assisted Solution

by:Aralia_Systems
Aralia_Systems earned 0 total points
Comment Utility
Yes, we already worked around that link, before post this question. And today, we know that the VCLStyle resource type can be added if you write on resource type combo box manually VCLSTYLE. Thus our OCX can be build with the VCLStyle embedded.

However our OCX still running without applying the VCLStyle.

Do we need something more on the OCX apart of the fact of add the *.vsf as a VCLSTYLE resource?
0
 

Accepted Solution

by:
Aralia_Systems earned 0 total points
Comment Utility
Finally, the OCX is running with the VCLStyle to do that we have needed to embed the VCL Style as a resource and setup that Style on the OCX.

  TStyleManager.SetStyle('Carbon');
0
 

Author Closing Comment

by:Aralia_Systems
Comment Utility
Thanks Rodrigo for your help.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now