View Issue Details

IDProjectCategoryView StatusLast Update
0001720JEDI VCL04 Feature Requestpublic2004-05-14 11:44
ReporteranonymousAssigned Touser72 
Status resolvedResolutionwon't fix 
Product Version 
Target VersionFixed in Version 
Summary0001720: Check Value on pressing <Enter> in TJvSpinEdit
Description1) It's useful (I think) if SpinEdit performs value checking on pressing <Enter> (not on exit only). Pressing <Enter> says "End of input, check me".
2) How can I get notification on value cange? OnChange doesn't work... (JVCL2.10)
Additional Information1)I did it for me:
procedure TJvCustomSpinEdit.KeyDown(var Key: Word; Shift: TShiftState);
  inherited KeyDown(Key, Shift);
// >
  if Key = VK_RETURN CheckValueRange(Value, true);
// <
  if ArrowKeys and (Key in [VK_UP, VK_DOWN]) then
2) I did it too (dirty :():
procedure TJvCustomSpinEdit.Change;
  if Assigned(OnChange) then OnChange(Self);

TagsNo tags attached.



2004-05-05 23:57


Please upgrade to JVCL 3 for an OnChange fix.

Checking the value when ENTER is pressed is non-standard behavior and is better handled by writing your own KeyDown/KeyPress handler.

Issue History

Date Modified Username Field Change
2004-05-04 04:49 anonymous New Issue
2004-05-05 23:57 user72 Note Added: 0004162
2004-05-06 00:43 user72 Status new => feedback
2004-05-14 11:44 user72 Status feedback => resolved
2004-05-14 11:44 user72 Resolution open => won't fix
2004-05-14 11:44 user72 Assigned To => user72