-2

in the IDE the TDateTimePicker looks quite well, and it has a calendar icon. However, with VCL Style Hooks, there is no icon and the dropdown button looks quite ugly. See the VCL Hooks demo app.

In the IDE it looks like:

enter image description here

With VCL styles it looks like:

enter image description here

What can I do so that it looks reasonable with Styles?

19
  • What do you mean by "in the IDE"? Jul 29, 2015 at 18:34
  • We need to know which version of Delphi you use, and we need a screenshot. Post it to an image sharing site and we'll edit it in. Jul 29, 2015 at 18:40
  • 2
    Maybe this helps: theroadtodelphi.wordpress.com/2014/11/04/… Jul 30, 2015 at 5:09
  • @Jerry: I believe every Delphi programmer knows what I mean by "in the IDE". My question was intended for Delphi experts...
    – BavDev
    Jul 30, 2015 at 10:18
  • 1
    In the link above: "The Styling of the TMonthCalendar and TDatetimepicker components is one of the limitations of the VCL Styles, because such components are owner-draw by the system and doesn’t allow to customize the look and feel when the native themes are enabled (for more information read these TMonthCalendar and TDatetimepicker ) also only the newest versions of Delphi includes a partial styling support for such components. With this new release the styling of these controls is now possible." Jul 30, 2015 at 13:18

1 Answer 1

3

It' seems which you are no using the latest version of the library.

This is the TDateTimePicker with the native Windows Style

enter image description here

With Vcl Styles

enter image description here

With the Vcl Styles Utils (just adding the Vcl.Styles.Hooks unit)

enter image description here

12
  • Hello Rodrigo, thank you for this very first productive answer in this thread. I was not aware that there is a brand new version which is 5 days old. However, this does not solve the problem. I am testing your demo app and there is still the same ugly appearance. I checked several styles and it is the same in all styles. Can you check if this is an issue of DXE5 and it will be perfect in DXE8? I don't have any other idea. Or even an issue of Win8.1?
    – BavDev
    Jul 30, 2015 at 20:33
  • I tested in XE5 and works just fine , maybe there is a old copy of the library installed in your system, Check the path of the files which are referenced in the project.
    – RRUZ
    Jul 30, 2015 at 20:45
  • @BavDev The link above which I was talking about (in the 3rd comment on your question) is the very same one which was just updated 5 days ago. Jul 30, 2015 at 22:02
  • @Bav Your attitude is terrible. You've had nothing but constructive help from all quarters. On the other hand you have been offensive and rude. Jul 31, 2015 at 5:42
  • Hello Rodrigo, thank you for that valuable hint! Finally I found that the problem were old DCUs left in some subfolder of the demo apps. Thanks to Emba who invented this new kind of saving DCUs into some subfolders of the app source, which results in multiple redundant (maybe different) DCUs of the lib units... ;-) Now it works on my side. But continue reading with the BUTs in the next comments...
    – BavDev
    Jul 31, 2015 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.