Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding > Coding Tutorials
You last visited: Today at 11:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Borland] Use Styles in VCL-Formulas

Discussion on [Borland] Use Styles in VCL-Formulas within the Coding Tutorials forum part of the General Coding category.

Reply
 
Old   #1
 
Mi4uric3's Avatar
 
elite*gold: 405
Join Date: Dec 2007
Posts: 6,615
Received Thanks: 6,358
[Borland] Use Styles in VCL-Formulas

In development environments which can use the "Visual Component Library (VCL)" by Borland, Inprise and CodeGear you have options to change the style of your VCL-GUIs.

Screenshots:
Normal GUI
Styled GUI
Use styles in exe-files:
If you create a project for a new exe-file, you can simply change the styles in the project-options menu:
"Project > Options > Application > Appearance" ()

Use styles in dll-files: (Main part of this tutorial)
If you create a project for a dll-file, you don't have that simple option.
Borland gives you 2 functions to do this in your source-code, but:
Me and many others can't get the 1st one ("TStyleManager::LoadFromResource()") to work and the other one ("TStyleManager::LoadFromFile()") requires the styles to be on disc, and I don't want to drop any files to disc.

So after trying it out for hours I created an exe-file project and looked for the things, which define the style to be used, tried out manually adding these to the files of the dll-file project and it worked!

Solution:
To use styles you need to insert into:

ProjectName.cbproj:
Code:
[...]
<PropertyGroup Condition="'$(Base)'!=''">
	<ProjectType>CppDynamicLibrary</ProjectType>
	<VCL_Custom_Styles>"Ruby Graphite|VCLSTYLE|$(PUBLIC)\Documents\RAD Studio\9.0\Styles\RubyGraphite.vsf"</VCL_Custom_Styles>
	<Multithreaded>true</Multithreaded>
	[...]
</PropertyGroup>
[...]
Anywhere in your code: (where you start your GUI for example)
Code:
TStyleManager::TrySetStyle("Ruby Graphite"); // Name of the style is defined in the ProjectName.cbproj


I hope its helpful for anyone, I saw many people on the internet asking for a solution when I tried to find one, too.

Mi4uric3
Mi4uric3 is offline  
Thanks
8 Users
Reply

Tags
borland, dll, style, vcl, vsf


Similar Threads Similar Threads
Silkroad Damage Formulas
03/21/2011 - Silkroad Online - 10 Replies
Silkroad Damage formulas All credits go to "Nicole" from forum.rev6.com, I just copied this. If you want to thank, thank Nicole, register in www.forum.rev6.com, and thank her, here: (Final) Formulas (Damage) - Rev6.com Forums In my opinion, this is really a great help to improve builds, especially for those that use hybrid chinese builds, it is really a great help. Good luck out there, I think this is pretty good, and easy to understand ;)
[Free Styles] Woltlab Volcano-X Styles
11/26/2010 - Metin2 Guides & Templates - 15 Replies
-
Formulas
11/18/2010 - SRO Coding Corner - 2 Replies
Well, I'm doing one tool but I'm having some problems with some formulas. I can't find a good formula for exp/h and sp/h statistics. Tried a lot of stuff but can't find an accurate ones. Someone have an idea about it? Thanks in advance
Formulas in game
08/06/2010 - 4Story - 4 Replies
I need help I tried to up my wep to +18 with skill hack and +1 formulas and it didn't work :( . Is there any cheat that gives you +3 formulas?



All times are GMT +1. The time now is 11:55.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.