NO

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

Offline John Z

  • Member
  • *
  • Posts: 855
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: 188
    • 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.




 
Bcx Basic to C/C++ Translator
https://www.BcxBasicCoders.com

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • 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: 855
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 »