View Issue Details

IDProjectCategoryView StatusLast Update
0003748JEDI VCL00 JVCL Componentspublic2006-06-07 03:18
ReporteranudedeusAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.20 
Target VersionFixed in Version3.30 
Summary0003748: JvXPCheckbox doesn't answer to space bar pressing
DescriptionApparently the authors forgot that checkboxes should toggle its state (checked/unchecked) when it has the focus and the spacebar is pressed.

Fix:

TJvXPCustomCheckControl = class(...)
protected
{add the line:}
 procedure KeyDown(var Key: Word; Shift: TShiftState); override;
(...)
end;

implementation

{add the following}
procedure TJvXPCustomCheckControl.KeyDown(var Key: Word; Shift: TShiftState);
begin
  if Key = VK_SPACE then
    Checked := not Checked;
  inherited KeyDown(Key, Shift);
end;



Additional InformationRecompile JvXPCtrlsD7R.dpk after changes. (Delphi7, check correct name for other versions)
TagsNo tags attached.

Activities

anudedeus

2006-06-06 12:17

reporter   ~0009392

Sorry, forgot to mention original filename:
\jvcl\run\JvXPCheckCtrls.pas

obones

2006-06-07 03:18

administrator   ~0009401

Thanks, this is now in CVS

Issue History

Date Modified Username Field Change
2006-06-06 12:14 anudedeus New Issue
2006-06-06 12:17 anudedeus Note Added: 0009392
2006-06-07 03:18 obones Status new => resolved
2006-06-07 03:18 obones Resolution open => fixed
2006-06-07 03:18 obones Assigned To => obones
2006-06-07 03:18 obones Note Added: 0009401