View Issue Details

IDProjectCategoryView StatusLast Update
0003897JEDI VCL00 JVCL Componentspublic2007-01-04 02:35
ReporterjepsenAssigned Toremkobonte 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionsuspended 
PlatformIntel 386OSWindows XPOS VersionDelphi 6
Product Version3.20 
Target VersionFixed in Version 
Summary0003897: Error when focussing TJvExMaskEdit and all its descendants via mouse
DescriptionWhen focussing a descendant of TJvExMaskEdit (eg TJvMaskEdit, TJvComboEdit, TJvDBMaskEdit etc.) with an EditMask the cursor will not be placed at the position where the mouse click was but to characters right of it.
Steps To ReproducePut an original TMaskEdit and a descendant of TJvExMaskEdit (eg TJvMaskEdit, TJvComboEdit, TJvDBMaskEdit etc.) on a Form and enter an EditMask. Now start the programm and click from one edit field to the other. You will notice that when the edit field has to be focused the cursor will be placed to characters right of the position of the click.
Additional InformationWhen a MaskEdit field with an EditMask is focussed always the charakter after the cursor will be selected. This is done in TCustomMaskEdit.SetCursor by setting the cursor one charakter to the right and then simulating pressing key Shift+Left via SendMessage. When focussing by mouse this routine gets called two times but the key presses seem to go unhandled. So only the cursor moves to the right.
TagsNo tags attached.

Activities

obones

2006-09-13 01:52

administrator   ~0010115

Please try with the latest version from here:

http://jvcl.sf.net/daily/

and if this is still happening, please post the zipped sources of a sample application showing the issue.

2006-09-13 05:08

 

MaskEdit.zip (1,035 bytes)

jepsen

2006-09-13 05:10

reporter   ~0010116

There was no change with the new source.
I gave steps to reproduce in my original report (only visible in advanced view).
I attached an example.

jepsen

2006-09-21 11:00

reporter   ~0010149

Do you need more feedback or were you able to reproduce the error?

remkobonte

2006-09-23 16:41

developer   ~0010158

I can reproduce this with the attached example.

remkobonte

2006-09-24 07:15

developer   ~0010160

Combo edits in JVCL are multiline edits (see TJvCustomComboEdit.CreateParams). Because of this the edits behave differently than single-line edits such as TMaskEdit.

The reported bug happens also because the combo edits are multiline edits.

To make the (multiline) combo edits behave the same (for this case) as single-line edits could be hard to do.

Better would IMO to change the combo edits to single-line edits. But this may have implications that I can not totally oversee.

obones

2007-01-04 02:34

administrator   ~0010509

Considering the potential damages to the other components, this will stay as is until someone comes up with an acceptable solution.

Issue History

Date Modified Username Field Change
2006-09-13 01:19 jepsen New Issue
2006-09-13 01:52 obones Note Added: 0010115
2006-09-13 01:52 obones Status new => feedback
2006-09-13 05:08 jepsen File Added: MaskEdit.zip
2006-09-13 05:10 jepsen Note Added: 0010116
2006-09-21 11:00 jepsen Note Added: 0010149
2006-09-23 16:40 remkobonte Status feedback => assigned
2006-09-23 16:40 remkobonte Assigned To => remkobonte
2006-09-23 16:41 remkobonte Note Added: 0010158
2006-09-24 07:15 remkobonte Note Added: 0010160
2006-09-24 07:16 remkobonte Status assigned => confirmed
2007-01-04 02:34 obones Status confirmed => resolved
2007-01-04 02:34 obones Resolution open => suspended
2007-01-04 02:34 obones Note Added: 0010509