NO

Author Topic: Date-Time Picker  (Read 871 times)

Offline John Z

  • Member
  • *
  • Posts: 433
Date-Time Picker
« on: December 28, 2021, 06:03:34 pm »
When I put the Date-Time picker on dialog window in Pelles C and use the Dialog TEST capability the date picker works wonderfully. I especially like being able to click the Month header and it switches to Year, click again and it switches to Decades.  Very nice.
BUT
When I actually run the program the Date-Time picker shows a Blue Month header and clicking it just presents a dropdown list of months.  I don't understand why it changes.  I'd like what shows in the Dialog Test mode to be
in my exe.

Any ideas?  The only thing I can think of is that the Dialog Test mode is using some sort of custom draw, which is nice but does not represent what a user will get.

John Z

Offline MrBcx

  • Global Moderator
  • Member
  • *****
  • Posts: 96
    • Bcx Basic to C/C++ Translator
Re: Date-Time Picker
« Reply #1 on: December 29, 2021, 03:55:49 pm »
One thing to try ...

Make sure Windows 95 compatibility mode in the .exe properties dialog is UNCHECKED.




 

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2181
    • http://www.smorgasbordet.com
Re: Date-Time Picker
« Reply #2 on: December 29, 2021, 04:33:42 pm »
To use modern features with any Common Control you really need an application manifest. The test dialog is running under the manifest of the IDE. Your compiled program will have to include its own manifest resource. It needs to be properly configured. All details should be on the M$ web. Google it.
/Pelle

Offline John Z

  • Member
  • *
  • Posts: 433
Re: Date-Time Picker
« Reply #3 on: December 29, 2021, 05:22:40 pm »
Thanks!

I did try a manifest but probably made it wrong.  I received some 'Side-by-Side' error.  I'll check again.

Appreciate the inputs from you both.

John

Studying manifests . . . .
« Last Edit: December 30, 2021, 11:23:56 am by John Z »