Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - MonthCal Multiselect Problem with Manifest
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MonthCal Multiselect Problem with Manifest

 Post Reply Post Reply
Author
Message
Josef View Drop Down
Groupie
Groupie


Joined: 15 April 2006
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote Josef Quote  Post ReplyReply Direct Link To This Post Topic: MonthCal Multiselect Problem with Manifest
    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
20080304_210512_MonthCal.zip
Back to Top
Krog View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote Krog Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Josef View Drop Down
Groupie
Groupie


Joined: 15 April 2006
Status: Offline
Points: 59
Post Options Post Options   Thanks (0) Thanks(0)   Quote Josef Quote  Post ReplyReply Direct Link To This Post 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)

Back to Top
Krog View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote Krog Quote  Post ReplyReply Direct Link To This Post 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!

Back to Top
Krog View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote Krog Quote  Post ReplyReply Direct Link To This Post 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...

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.