Jump to content


Photo

Same problem...


  • Please log in to reply
6 replies to this topic

#1 downwards1

downwards1
  • Members
  • 57 posts

Posted 23 April 2007 - 10:13 PM

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!

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 23 April 2007 - 10:45 PM

Hello Downwards,

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;


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.

#3 downwards1

downwards1
  • Members
  • 57 posts

Posted 24 April 2007 - 09:07 PM

No, didn't work sad.gif

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

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
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.

#5 downwards1

downwards1
  • Members
  • 57 posts

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

Attached Files



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

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 smile.gif

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.

#7 downwards1

downwards1
  • Members
  • 57 posts

Posted 30 April 2007 - 07:15 PM

Works now! smile.gif
Thanx!




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users