![]() ![]() 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. |