View Issue Details

IDProjectCategoryView StatusLast Update
0003644JEDI VCL00 JVCL Componentspublic2006-06-09 01:43
ReportermendeloAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version3.10 
Target VersionFixed in Version 
Summary0003644: OnExitCell in TjvStringGrid
DescriptionThe OnExitCell event in jvStringGrid seems to be inconsistant.

A)It would appear that it is only triggered if the cell is in edit mode, it does not fire if tabbing from cell to cell for example. Perhaps this behaviour is deliberate but the help file does not indicate this.

B)If in edit mode, and launch a separate modal form, when the modal window closes and focus returns to the cell, the event seems to fire about 40 times.
To illustrate, I am using a particular column as a lookup field. As the user types in the cell ,on the SetEditText event it looks up the typed information in a table. If the user cannot locate the looked up item, pressing the ENTER key opens a modal form which allows him to choose the item. I assume that if one is typing in the cell, edit mode is ON and as soon as the enter key is pressed, this toggles edit mode off. However this may occur after the conclusion of the ONKEYPRESS event. Nevertheless my modal form appears. I created an incremental counter that shows on a label in the previous form every time the ONEXITCELL event fires and can see that the event has fired while I am viewing the modal form. As soon as I close the form, the on exit cell fires an additional 40 times,though my focus is correctly back in the selected cell. The 40 is I am assuming a random number, or not random but not necessarily conclusive in any way, it could be the total number of cells in my grid, the number hidden by the modal form etc. but I do not understand why it would need to fire at all after the initial one time.
TagsNo tags attached.

Activities

obones

2006-04-18 01:03

administrator   ~0009130

Please provide the zipped sources of an application showing the issue.

2006-04-19 00:33

 

JVStringGridTest.zip.zip (283,745 bytes)

obones

2006-06-09 01:43

administrator   ~0009507

A. Yes, it is meant to indicate the exit of edit mode.
B. That number may result from a sort you are doing. Search for "ExitCell" in the sources for TJvStringGrid, you will see why.

Online help has been updated to reflect this.

Issue History

Date Modified Username Field Change
2006-04-17 10:05 mendelo New Issue
2006-04-18 01:03 obones Note Added: 0009130
2006-04-18 01:03 obones Status new => feedback
2006-04-19 00:33 mendelo File Added: JVStringGridTest.zip.zip
2006-04-19 03:06 obones Status feedback => acknowledged
2006-06-09 01:43 obones Status acknowledged => resolved
2006-06-09 01:43 obones Resolution open => no change required
2006-06-09 01:43 obones Assigned To => obones
2006-06-09 01:43 obones Note Added: 0009507