![]() ![]() However, full theme support is available only on an operating system that has this feature-at the moment, Windows XP.Įven on XP, Delphi applications use the traditional approach by default. Some of these new rendering features are used by the visual controls of the Action Manager architecture, independently of the operating system you are running on. In Delphi 7, the VCL fully supports themes, due to a lot of internal code and to the themes management library originally developed by Mike Lischke. The new common controls library's main difference is that is doesn't has a fixed rendering engine, but relies on the XP theme engine and delegates the user interface of the controls to the current theme. The old library is still available for compatibility reasons, so that a program running on XP can choose which of the two libraries it wants to use. With the release of Windows XP, Microsoft has introduced a new, separate version of the common controls library. In the StylesDemo program, I've added, among various sample controls, a list box with the names of the default styles, as indicated in the TDefaultStyle enumeration, and this code for its OnDblClick event: For example, you can select a Motif look-and-feel with this code:Ī := dsMotif The CLX Application global object has a Style property you can use to set a custom style or a default one, indicated by the DefaultStyle subproperty. This is generally configurable on Linux systems but is technically a separate element of the user interface.īecause this technique is embedded in Qt, it is also available on the Windows version of the library CLX makes it available to Delphi developers, so that an application can have a Motif look-and-feel on a Microsoft operating system. The styles I'm discussing here refer to the user interface of the controls, not of the forms and their borders. A user can also install new styles in the system and make them available to applications. Qt offers a few basic styles, such as the Windows look-and-feel, the Motif style, and others. ![]() This approach is fully supported by Qt and by the KDE system built on top of it. ![]() As I mentioned, on Linux (on XWindow, to be more precise) the user can generally choose the user interface style of the controls. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |