Hi Boki,
the same problem as described here http://www.bergsoft....?showtopic=1310
exists for the Grid itself. I added a handling for KeyDown and those keys which are no shortcuts for other components on the same form are accepted, others aren't!
Same problem...
Started by downwards1, Apr 23 2007 10:13 PM
6 replies to this topic
#1
Posted 23 April 2007 - 10:13 PM
#2
Posted 23 April 2007 - 10:45 PM
Hello Downwards,
Try to replace next procedure in NxCustomGrid.pas:
I hope that now will work.
regards
Try to replace next procedure in NxCustomGrid.pas:
CODE
procedure TNxCustomGrid.WMGetDlgCode(var Message: TWMGetDlgCode);
begin
inherited;
Message.Result := Message.Result or DLGC_WANTARROWS;
if WantTabs then Message.Result := Message.Result or DLGC_WANTTAB
else Message.Result := Message.Result and not DLGC_WANTTAB;
end;
begin
inherited;
Message.Result := Message.Result or DLGC_WANTARROWS;
if WantTabs then Message.Result := Message.Result or DLGC_WANTTAB
else Message.Result := Message.Result and not DLGC_WANTTAB;
end;
I hope that now will work.
regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#3
Posted 24 April 2007 - 09:07 PM
No, didn't work
#4
Posted 25 April 2007 - 02:36 PM
Hello Downwards,
Can you please send me here again one small demo, and I will fix it quickly. I have no luck to produce this bug, or I am not sure how Grid need to act in this situations (when it is not in edit mode)
Best regards
Can you please send me here again one small demo, and I will fix it quickly. I have no luck to produce this bug, or I am not sure how Grid need to act in this situations (when it is not in edit mode)
Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#5
Posted 26 April 2007 - 01:34 PM
Hi,
see the attached test.zip.
Press "b" and item "Brad" will be selected.
Press "s" and item "Sandy" will NOT be selected! Instead the checkbox is checked.
Did not change any grid option. It is in its default state. Just added 10 rows and a handler for OnKeyDown.
BR
DW
see the attached test.zip.
Press "b" and item "Brad" will be selected.
Press "s" and item "Sandy" will NOT be selected! Instead the checkbox is checked.
Did not change any grid option. It is in its default state. Just added 10 rows and a handler for OnKeyDown.
BR
DW
Attached Files
#6
Posted 26 April 2007 - 05:32 PM
Hello,
Try to add
Message.Result := Message.Result or DLGC_WANTCHARS;
after inherited in
procedure TNxCustomGrid.WMGetDlgCode(var Message: TWMGetDlgCode);
I hope that now work
regards
Try to add
Message.Result := Message.Result or DLGC_WANTCHARS;
after inherited in
procedure TNxCustomGrid.WMGetDlgCode(var Message: TWMGetDlgCode);
I hope that now work
regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#7
Posted 30 April 2007 - 07:15 PM
Works now! 
Thanx!
Thanx!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












