View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002722 | JEDI VCL | 00 JVCL Components | public | 2005-03-07 04:38 | 2005-03-10 14:52 |
Reporter | marcgeldon | Assigned To | user72 | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2.10 | ||||
Target Version | Fixed in Version | 3.00 | |||
Summary | 0002722: TJvEnterAsTab does not react on Checkboxes | ||||
Description | Hello! Because checkboxes are inherited from TButtonControl TJvEnterAsTab does not react on checkboxes. BUT: with an ENTER on a checkbox you can do NOTHING. Just a "space" helps you to change the value. So we should make TJvEnterAsTab possible to work with checkboxes. Best wishes from Germany, Marc Geldon (PRO IT SYSTEMS -> www.proitsystems.de) | ||||
Additional Information | ===== OLD VERSION FROM JvEnterTab.PAS ===== procedure TJvEnterAsTab.CMDialogKey(var Msg: TCMDialogKey); begin if (GetParentForm(Self).ActiveControl is TButtonControl) and (FAllowDefault) then inherited else if (Msg.CharCode = VK_RETURN) and FEnterAsTab then begin GetParentForm(Self).Perform(CM_DIALOGKEY, VK_TAB, 0); Msg.Result := 1; end else inherited; end; ===== NEW VERSION FROM JvEnterTab.PAS ===== procedure TJvEnterAsTab.CMDialogKey(var Msg: TCMDialogKey); begin if (not (GetParentForm(Self).ActiveControl is TCustomCheckBox)) and (GetParentForm(Self).ActiveControl is TButtonControl) and (FAllowDefault) then inherited else if (Msg.CharCode = VK_RETURN) and FEnterAsTab then begin GetParentForm(Self).Perform(CM_DIALOGKEY, VK_TAB, 0); Msg.Result := 1; end else inherited; end; | ||||
Tags | No tags attached. | ||||
2005-03-07 04:55
|
JvEnterTab.pas (3,316 bytes) |
|
Please upgrade to the latest version where there is an OnHandleEnter event where you can specify whether ENTER should be handled as tabs or not. In your case, you'd write something like this (set Handled to true to not convert ENTER to TAB): procedure TForm1.JvEnterAsTab1HandleEnter(Sender: TObject; AControl: TWinControl; var Handled: Boolean); begin Handled := (AControl is TButtonControl) and not (AControl is TCustomCheckBox) and not (AControl is TRadioButton); end; |
|
Ok. Thank you very much for your information. |
|
Can we close this issue? |
|
Yes. But just one question: I can't find the new JvEnterAsTab. I have downloaded and installed JVCL 3.00 RC1? |
|
It seems someone has messed up the unit and removed the OnHandleEnter event. I'll sort it out and get back to you. |
|
I've updated the JvEnterTab.pas in CVS with the OnHandleEnter event. Please try it out and post again if it doesn't work for you |
Date Modified | Username | Field | Change |
---|---|---|---|
2005-03-07 04:38 | marcgeldon | New Issue | |
2005-03-07 04:55 | marcgeldon | File Added: JvEnterTab.pas | |
2005-03-07 09:54 |
|
Note Added: 0006650 | |
2005-03-07 09:54 |
|
Status | new => feedback |
2005-03-07 09:55 |
|
Note Edited: 0006650 | |
2005-03-07 23:25 | marcgeldon | Note Added: 0006655 | |
2005-03-09 00:59 |
|
Note Added: 0006657 | |
2005-03-09 01:05 | marcgeldon | Note Added: 0006659 | |
2005-03-09 03:44 |
|
Note Added: 0006660 | |
2005-03-10 14:52 |
|
Status | feedback => resolved |
2005-03-10 14:52 |
|
Resolution | open => fixed |
2005-03-10 14:52 |
|
Assigned To | => user72 |
2005-03-10 14:52 |
|
Note Added: 0006680 |