CyberPeter 14 Posted 19 hours ago I can set a StyleName for a particular control, for instance: MyCustomControlDescendant->StyleName = L"Windows11 Modern Light" ; However, this only works if a Style has been applied application wide: TStyleManager::TrySetStyle() (Any Style) Usually I prefer no Style, because Styles do flicker a lot etc. But for a TrackBar for instance, an ugly control, a Style feels appropriate. Sadly assigning one to just the control via StyleName is not possible, unless I first load a style application wide My question, is it possible at all and if so, how ? Share this post Link to post
Rollo62 565 Posted 19 hours ago Flicker? Is that the case under VCL? Maybe this is interesting for setting per control https://blogs.embarcadero.com/vcl-per-control-styles-coming-in-rad-studio-10-4/ Share this post Link to post
aehimself 402 Posted 9 hours ago I had one situation when VCL styles flickered a lot, and that was if they were on an anchored / aligned panel and the form was being resized. Setting .ParentBackround := False on the panel solved this though. Share this post Link to post
CyberPeter 14 Posted 7 hours ago 12 hours ago, Rollo62 said: Flicker? Is that the case under VCL? Maybe this is interesting for setting per control https://blogs.embarcadero.com/vcl-per-control-styles-coming-in-rad-studio-10-4/ VCL yes. Thank you I will check out the article. Share this post Link to post
CyberPeter 14 Posted 7 hours ago (edited) 2 hours ago, aehimself said: I had one situation when VCL styles flickered a lot, and that was if they were on an anchored / aligned panel and the form was being resized. Setting .ParentBackround := False on the panel solved this though. It's just a general thing in more complex applications (I find), especially with ListView and TreeView etc. and especially when the computer runs a bit slower (had some pc fan issues and the reduced speed made it very obvious). In my applications styles are implemented to be able to support a dark theme but I personally prefer to use simply Windows for the best performance. For a static application with some buttons etc, styles can be nice, but for faster moving data, scrolling etc. Styles reduce the perceived quality of the application (in my view). When I dynamically create a form with lots of components on it (e.g. an Options Window) there is very obvious flicker as well while the window comes into view Edited 7 hours ago by CyberPeter Share this post Link to post
Brian Evans 112 Posted 5 hours ago Don't forget the difference between a user trying to get work done in an application vs a developer playing/scrolling around. I find a modern styled application can be easier for a user to read and follow as they work on the content shown in the application. Some appreciate being able to adjust things to their taste - especially older workers desiring larger fonts and more contrast. Users rarely dynamically resize forms these days - either it is full screen or snapped to half a screen or some other region. I have gotten distracted working on things that seemed important - speed while users really wanted predictability. For example a form frozen for 4 seconds feels worse to a user than an active form showing progress that takes 15 seconds. When developing I might scroll through 1000's of records while a user is more likely to search and display 10-100 records and examine them when actually doing work. Share this post Link to post