Solved

Apply the VCL Style on an ActiveX in DELPHI XE2

Posted on 2013-01-30
4
1,047 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
ID: 38837506
Maybe this helps you...
VCL-Styles embedded in dll?
0
 

Assisted Solution

by:Aralia_Systems
Aralia_Systems earned 0 total points
ID: 38839944
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
ID: 38843327
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
ID: 38858680
Thanks Rodrigo for your help.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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