Visit site The Road to Delphi

January 2012

4
votes
Vote UpVote

Vcl Style Utils site updated and new demo video

The Road to Delphi – In the past days I’ve added many new features and a lot of improvements in the Vcl Style Utils project. You can see the updated site here and a new video showing the Vcl Style Utils library in action, also the repository contains a set of demo projects to check how use the library. Check this ...
Details Favorite? Off-Topic? Rodrigo @ 2012-01-20 22:00
3
votes
Vote UpVote

Demo video of the Vcl Style Utils Library

The Road to Delphi – I just uploaded a video showing how you can change the HSL values of any VCL Style in runtime using the vcl styles utils library. in the code google site you can found the the full source code of the application and more demo projects.
Details Favorite? Off-Topic? Rodrigo @ 2012-01-10 16:58
2
votes
Vote UpVote

Exploring Delphi XE2 – VCL Styles Part III

The Road to Delphi – Introduction The VCL Styles are great but it seems that was designed to hide (and protect?) a lot of useful properties and classes. Because that I wrote a small (for the moment) library that using class helpers (and another tricks) can access to hidden properties and classes of the VCL Styles. Today ...
Details Favorite? Off-Topic? Rodrigo @ 2012-01-08 07:40
3
votes
Vote UpVote

Determine Genuine Windows Installation using Delphi

The Road to Delphi – Starting with Windows Vista , Microsoft introduces the The Software Licensing API (SLAPI), this API can be used to determine a genuine Microsoft Windows installation. So using the SLIsGenuineLocal function you can check if your app is running in a genuine Windows installation. This is the ...
Details Favorite? Off-Topic? Rodrigo @ 2012-01-06 16:08

December 2011

8
votes
Vote UpVote

Exploring Delphi XE2 – VCL Styles Part II

The Road to Delphi – The TStyleHook Class The VCL Styles uses the TStyleHook class to intercept the paint methods and the Windows messages related to the Vcl Styles operations, If you have a custom control or need change the way how a control like a TEdit, TMemo, TListView, etc.  is painted you must create a new Style ...
Details Favorite? Off-Topic? Rodrigo @ 2011-12-17 03:29
4
votes
Vote UpVote

Adding a Standard Context Popup Menu to a SynEdit

The Road to Delphi – When you uses an Edit control like a TMemo or TEdit component a context menu pops up with options to undo, copy, paste, select all, etc. Unfortunally the TSynEdit component doesn’t include a menu like this, so you must write you own. You can fix this in a few lines of code using a interposer ...
Details Favorite? Off-Topic? Rodrigo @ 2011-12-08 03:06

November 2011

9
votes
Vote UpVote

Fixing a VCL Style bug in the TPageControl and TTabControl components

The Road to Delphi – The BUG Yesterday while I’ve working migrating a personal project to Delphi XE2, I found a bug(QC #101346) in the TPageControl and TTabControl components. The issue is related to the images (icons) which are drawn in the tab controls when an ImageList is associated to the component. check the ...
Details Favorite? Off-Topic? Rodrigo @ 2011-11-28 04:22
1
vote
Vote UpVote

WMI Tasks using Delphi – Services

The Road to Delphi – How do I determine which services are running and which ones are not? Use the Win32_Service class to check the state of all of the services. The state property lets you know if a service is stopped or running. const wbemFlagForwardOnly = $00000020; var FSWbemLocator : OLEVariant; FWMIService ...
Details Favorite? Off-Topic? Rodrigo @ 2011-11-17 02:37
0
votes
Vote UpVote

WMI Tasks using Delphi – Registry

The Road to Delphi – How do I read registry key values using WMI? Use the StdRegProv class, located in root\default  (for Windows Server 2003, Windows XP, Windows 2000, Windows NT 4.0)   and root\cimv2 namespace for newers versions of Windows . You cannot get any instances of this class because the System Registry ...
Details Favorite? Off-Topic? Rodrigo @ 2011-11-07 05:06
1
vote
Vote UpVote

WMI Tasks using Delphi – Processes

The Road to Delphi – How do I run an application in a hidden window? Call the application from an app that uses the Win32_Process and Win32_ProcessStartup classes. const wbemFlagForwardOnly = $00000020; HIDDEN_WINDOW = 0; var FSWbemLocator : OLEVariant; FWMIService : OLEVariant; FWbemObject : ...
Details Favorite? Off-Topic? Rodrigo @ 2011-11-06 22:03
1
vote
Vote UpVote

WMI Tasks using Delphi – Printers and Printing

The Road to Delphi – How do I add a new printer connection to a remote computer? Use the Win32_Printer class and the AddPrinterConnection method. var FSWbemLocator : OLEVariant; FWMIService : OLEVariant; FWbemObject : OLEVariant; begin; FSWbemLocator := CreateOleObject('WbemScripting.SWbemLocator'); ...
Details Favorite? Off-Topic? Rodrigo @ 2011-11-05 21:01
14
votes
Vote UpVote

Implementing a Delphi for..in loop on COM collections and Variant Arrays

The Road to Delphi – Enumerating a collection of Variants Many times when you are working with COM objects you need iterate over a collection, and usually the way to do this is using the _NewEnum function (which return a IUnknown interface) implemented by the COM class and then assign that value to a IEnumVariant ...
Details Favorite? Off-Topic? Rodrigo @ 2011-11-04 06:19
0
votes
Vote UpVote

WMI Tasks using Delphi – Operating Systems

The Road to Delphi – How do I determine if a service pack has been installed on a computer? Use the Win32_OperatingSystem class and check the value of the ServicePackMajorVersion and ServicePackMinorVersion properties. const wbemFlagForwardOnly = $00000020; var FSWbemLocator : OLEVariant; FWMIService : ...
Details Favorite? Off-Topic? Rodrigo @ 2011-11-03 18:47

October 2011

2
votes
Vote UpVote

The WMI Delphi Code Creator now can create C++ Code compatible with Borland/Embarcadero compilers

The Road to Delphi – After a lots of tests, I can officially announce which the WMI Delphi Code Creator now can create C++ Code compatible with the Borland/Embarcadero compilers. This new feature will be very helpful for developers using Borland/Embarcadero C++ compilers because exist very few documentation  about ...
Details Favorite? Off-Topic? Rodrigo @ 2011-10-31 21:23
2
votes
Vote UpVote

WMI Tasks using Delphi – Networking

The Road to Delphi – How do I disable a network connection using WMI? If you are using DHCP, use the Win32_NetworkAdapterConfiguration and the ReleaseDHCPLease method to release the IP address. If you are not using DHCP, you cannot use WMI to disable a network connection. To re-enable the network connection, use ...
Details Favorite? Off-Topic? Rodrigo @ 2011-10-30 20:17
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Delphi Tage Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)