Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/VCL/Win 32 Controls/TUpDown    [ Add a report in this area ]  
Report #:  62966   Status: Open
TUpDown captures focus
Project:  Delphi Build #:  4.453
Version:    7.0 Submitted By:   michael ogrady
Report Type:  Basic functionality failure Date Reported:  6/5/2008 8:40:56 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   260963
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: (1 Total Rating)
5.00 out of 5
Total Votes: None
Description
If a TMessageDlg is displayed as a result of a change in the position of a TUpDown control, the TUpDown control captures all mouse events when the TMessageDlg is closed. This results in a second click on TUpDown control when any part of the parent form is clicked.
Steps to Reproduce:
1. Create a form with a TUpDown control and a TEdit.
2. Associate the TUpDown control with the edit.
3. In the OnChange event of the TEdit, display a TMessageDlg.

Run the application and click the TUpDown control to increment the value in the TEdit. Close the message dialog and click on any part of the form. Clicking above the TUpDown control causes it to increment and clicking below it causes it to decrement.

With XP themes enabled, it is obvious that, as the cursor is moved around the form, the buttons on the TUpDown control are receiving all focus.
Workarounds
None that I can see. Tried to set the focus to the edit control but the TUpDown control seems to be "grabbing" focus.
Attachment
None
Comments

Markus Humm at 6/5/2008 1:28:15 PM -
Did anybody yet test this for a more recent Delphi version? The description is good enough to open it I think, but only really if a newer version is still affected.

Roeland Van Heddegem at 6/6/2008 3:05:40 AM -
I'm using Delphi Professional version 11.0.2804.9245
I have the same behaviour.

Markus Humm at 6/8/2008 11:33:34 PM -
Marked as "needs attention"

Tomohiro Takahashi at 6/13/2008 7:38:08 PM -
I can reproduce this issue with ShowMessage instead of TMessageDlg.

Philippe LECLERCQ at 2/29/2012 7:55:53 AM -
This problem still remains active in RAD Studio XE.

Server Response from: ETNACODE01