Difference between revisions of "Calendar"
From Team Developer SqlWindows Wiki
DaveRabelink (Talk | contribs) (New page: This page covers Calendar VT tips & tricks. __TOC__ <br> <h2 style="margin:0;background-color:#ddcef2;font-size:120%;font-weight:bold;border:1px solid #afa3bf;text-align:left;color:#000;...) |
DaveRabelink (Talk | contribs) |
||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{PageHeader|VisualToolchest Calendar Control}} | |
+ | |||
__TOC__ | __TOC__ | ||
− | |||
− | < | + | |
− | + | <!------------------------------------------------------------------------------------------------------------------------------> | |
+ | {{TipHeader|cCalendarDropDown multi-monitor fix}} | ||
+ | The calendar popup window is normally presented below the corresponding date-field when clicking on the dropdown button.<br> | ||
+ | But when using a multi-monitor setup and the parent window is on another monitor than the main one, the popup calendar is<br> | ||
+ | not displayed below the datefield but on the main monitor.<br> | ||
+ | This issue occurs on all TD versions (up to TD6.0) !<br> | ||
+ | |||
+ | |||
+ | [[Image:CCalendarDropDownFix.png]] | ||
+ | |||
+ | |||
+ | The workaround is to reposition the calendar popup window to the correct location on screen at the time it is displayed.<br> | ||
+ | Look at the sample and locate the messages section of the custom control class. There the window handle of the popup window<br> | ||
+ | is retrieved and used to reposition it to the parent date-field.<br> | ||
+ | |||
+ | |||
+ | Here you can download the sample:<br> | ||
+ | {{Download | ||
+ | |URL=http://samples.tdcommunity.net/index.php?dir=&file=cCalendarDropDown_multimonitor_fix.zip | ||
+ | |TEXT=cCalendarDropDown_multimonitor_fix.zip | ||
+ | }} | ||
+ | |||
+ | |||
+ | |||
+ | [[Category:Child Objects]] | ||
+ | [[Category:Visual Toolchest]] |
Latest revision as of 12:18, 29 October 2013
VisualToolchest Calendar Control
Contents |
cCalendarDropDown multi-monitor fix 
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) !
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:
cCalendarDropDown_multimonitor_fix.zip