PR# 15953 Winforms DateTimePicker loses focus when dropdown is clicked

Problem Report Summary
Submitter: peter7723
Category: .NET
Priority: Medium
Date: 2009/06/23
Class: Bug
Severity: Serious
Number: 15953
Release: 6.3.7.6070 GPL Edition - windows)
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Synopsis: Winforms DateTimePicker loses focus when dropdown is clicked

Description
I am using DATE_TIME_CONTROL_PICKER from .NET in a EV_WINFORMS_CONTAINER

The following application demonstrates failure by losing sensitivity when the 
calendar is dropped and an element in the calendar is clicked.

The failure requires all of
   1. Declaring first_window: MAIN_WINDOW in APPLICATION, and
   2. Invocation from MAIN_WINDOW of CONFIGURATION_DIALOG, and
   3. Invocation of CONFIGURATION_DIALOG modally, and
   4. A second {TABLE}.put_at_postion() call is made when the 
      CONFIGURATION_DIALOG is initialized

The control works correctly when any of the following are so, the other 
conditions being as above:
   1. Declaring first_window: CONFIGURATION_DIALOG, or
   2. Invocation of CONFIGURATION_DIALOG from MAIN_WINDOW, non-modally, or
   3. Only the one {TABLE}.put_at_position() is made
To Reproduce
Compile for the dotnet target and execute the application. Click the drop down button and click a date on the calendar. The calendar does not close the date is not set. The program hangs. (Changing the date in the edit box is OK though).

Changing any of the conditions as described above fixes the problem.
Problem Report Interactions
From:peter7723    Date:2009/06/23    Download   
Application exhibits failure under the same conditions when compiled with current Eiffel 6.4 release candidate.

Installation information:
Version = EiffelStudio 6 (6.4.7.9263 GPL Edition - windows)
$ISE_EIFFEL = C:\Eiffel64
$ISE_LIBRARY = C:\Eiffel64
$ISE_PLATFORM = windows
$ISE_C_COMPILER = msc

From:peter7723    Date:2009/06/23    Download   
Attachments for problem report #15953

Attachment: Modal_dotnet_date_time_picker_problem.zip     Size:7028