Pelles C forum

C language => Windows questions => Topic started by: John Z on December 28, 2021, 06:03:34 PM

Title: Date-Time Picker
Post by: John Z 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
Title: Re: Date-Time Picker
Post by: MrBcx 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.




 
Title: Re: Date-Time Picker
Post by: Pelle 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.
Title: Re: Date-Time Picker
Post by: John Z 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 . . . .