Calendar

From Team Developer SqlWindows Wiki
Jump to: navigation, search

VisualToolchest Calendar Control


Contents


Pointer2.png cCalendarDropDown multi-monitor fix Pointer.png

The calendar popup window is normally presented below the corresponding date-field when clicking on the dropdown button.
But when using a multi-monitor setup and the parent window is on another monitor than the main one, the popup calendar is
not displayed below the datefield but on the main monitor.
This issue occurs on all TD versions (up to TD6.0) !


CCalendarDropDownFix.png


The workaround is to reposition the calendar popup window to the correct location on screen at the time it is displayed.
Look at the sample and locate the messages section of the custom control class. There the window handle of the popup window
is retrieved and used to reposition it to the parent date-field.


Here you can download the sample:
Down.png cCalendarDropDown_multimonitor_fix.zip