How can I tighten on the components of the picture, thereby stylizing the program? Do not offer Alpha skins, etc. I need each ScrollBar component to look differently and not the same.
- Vcl - in any way without custom rendering, and in it - you are free to draw as you please. - Vladimir Klykov
- In the latest versions there are Styles and they can most likely be applied individually, with some tricks. Google "delphi vcl styles" - Kromster
- @Kromster, it is possible and without tricks, you can create each component its own style (each by name), but this is custom rendering (it works more precisely this way), and dynamically creating a style will be quite problematic (but possible), more problematic than to describe your " handler "drawing ... - Vladimir Klykov
- What am I supposed to do? - Aimon Z.
1 answer
From my personal experience I can advise you to use the library of components AlphaSkins . For residents of the CIS - a free version without source code and relatively fast technical support. For a small amount you can get the version with the source code. In no case is not advertising and I myself am not their developer; I personally use the free version for small crafts. Bugs are found, as in all, but not always they are "deadly", and on the forum you can get help from the regulars there.
Below is an example of what you (if I understand you correctly) want to receive.
This is a screenshot of a form located in design-time . As you can see, there are two components TsSkinManager , which are connected to the components TsMemo , TsScrollBar . Two different skin files are applied. The desired effect is achieved with just a few mouse clicks.
The four components on the right are separate scroll bars (with a Handle ).
I advise you to try. Implementing something like this from scratch is a guaranteed waste of time.
- Yes, perhaps this is what you need - Aimon Z.
- @AimonZ. if my answer helped you, then accept it as final. - Dima
