Print Page | Close Window

MonthCal Multiselect Problem with Manifest

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9794
Printed Date: 16 November 2024 at 10:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MonthCal Multiselect Problem with Manifest
Posted By: Josef
Subject: MonthCal Multiselect Problem with Manifest
Date Posted: 04 March 2008 at 9:06pm
Hello,

using Monthcal with Multiselect=True does not display the selected date range right.

If used without .manifest file, it works, but of course, the buttons doesn't have a visual style.

Please find attached a sample project, that shows the problem. Start the exe file with and without .manifest and select a date range.

Hope you can help,
Josef
uploads/20080304_210512_MonthCal.zip - 20080304_210512_MonthCal.zip



Replies:
Posted By: Krog
Date Posted: 05 March 2008 at 3:25pm
Hello Josef!

This is a bug in the Windows MonthCal control. This control is not drawn by the codejock code, then they cannot help. Only the Microsoft can solve it. You can search the google for "monthcalendar multiselect bug", whithout the quotes.

What we can do is to use the Codejock Calendar control, that is entirely drawn by the codejock code.



Posted By: Josef
Date Posted: 06 March 2008 at 7:52pm
Hello Krog,

thank you. With this information i found a usable work around setting the colors of the month-control.

Maybe you can add color properties to the control in a future version?

Bye, Josef


SendMessage .hWnd, MCM_SETCOLOR, MCSC_BACKGROUND, GetSysColor(COLOR_WINDOW)
SendMessage .hWnd, MCM_SETCOLOR, MCSC_MONTHBK, GetSysColor(COLOR_WINDOW)
SendMessage .hWnd, MCM_SETCOLOR, MCSC_TEXT, GetSysColor(COLOR_BTNTEXT)
SendMessage .hWnd, MCM_SETCOLOR, MCSC_TITLEBK, GetSysColor(COLOR_BTNFACE)
SendMessage .hWnd, MCM_SETCOLOR, MCSC_TITLETEXT, GetSysColor(COLOR_BTNTEXT)
SendMessage .hWnd, MCM_SETCOLOR, MCSC_TRAILINGTEXT, GetSysColor(COLOR_BTNSHADOW)



Posted By: Krog
Date Posted: 07 March 2008 at 3:46pm
Josef,

I am not from the Codejock team, I am a user.

But thanks for the information. In this way the other users can use this workaround.

Maybe this code could be put inside the SuiteControls by the Codejock team by default, if possible.

Thank you!



Posted By: Krog
Date Posted: 08 March 2008 at 12:10am
Well, it does not worked with me. Only the days text become visible, but the background of the selection remained the same: invisible in the middle days of the selection:



If someone knows a way to solve this, we all would like to know...



Posted By: Oleg
Date Posted: 08 March 2008 at 7:00am
Hi,
Doesn't work for me too.  Try DatePicker from Calendar package.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net