View Issue Details

IDProjectCategoryView StatusLast Update
0002599JEDI VCL00 JVCL Componentspublic2005-02-12 09:11
ReporterobonesAssigned Toobones 
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.00 
Summary0002599: OnEnter/OnExit do not occur if JvIPAddress is on the form
DescriptionHi

Drop JVCL components on the form and assign their OnEnter/OnExit to show a message box.
See that nothing happens when the focus shifts from one control to the next.
The attached example shows it with two controls, based on latest CVS version.
TagsNo tags attached.

Relationships

parent of 0002564 closed TJvIPAddress OnExit event doesn`t Occur when the input focus shifts away from one control to another 

Activities

2005-02-04 01:40

 

onenter_onexit.zip (3,234 bytes)

remkobonte

2005-02-05 05:03

developer   ~0006420

Solution might be to add

      EN_SETFOCUS:
        Perform(WM_SETFOCUS, 0, 0);

to TJvIPAddress.CNCommand.

Don't know why the ip control does not receive a WM_SETFOCUS.

obones

2005-02-12 09:11

administrator   ~0006471

The solution was indeed that, with a little precaution related to mouse focusing (see source for details).
As to why TJvIPAddress does not receive the message in the first place, I suspect it is because the embedded edits are not children of the control from Delphi's point of view.

Issue History

Date Modified Username Field Change
2005-02-04 01:40 obones New Issue
2005-02-04 01:40 obones File Added: onenter_onexit.zip
2005-02-04 01:42 obones Relationship added parent of 0002564
2005-02-05 05:03 remkobonte Note Added: 0006420
2005-02-12 02:58 obones Assigned To => obones
2005-02-12 02:58 obones Status new => assigned
2005-02-12 02:58 obones Summary OnEnter/OnExit do not occur for most JVCL Components => OnEnter/OnExit do not occur if JvIPAddress is on the form
2005-02-12 09:11 obones Status assigned => resolved
2005-02-12 09:11 obones Fixed in Version => 3.00
2005-02-12 09:11 obones Resolution open => fixed
2005-02-12 09:11 obones Note Added: 0006471