Board logo

Subject: TApplicationEvents & TCNBitBtn incompatibilities [Print This Page]

Author: KADU    Time: 2009-4-30 00:51     Subject: TApplicationEvents & TCNBitBtn incompatibilities

I’m working with Delphi 7.
When use this event onShortCut of TApplicationEvents and TcnBitBtn fucused, it dont start event onShortCut.

ex. this event dont start when cnBitBtn fucused
procedure TfrmMainMenu.AppEventsShortCut(var Msg: TWMKey; var Handled: Boolean);
begin
  if      (Msg.CharCode = VK_F9) and (ssCtrl in  KeyboardStateToShiftState) then
  begin
    Handled := True;
    if FormOpenIndex('TfrmHKProduto') >= 0 then
      Screen.Forms[FormOpenIndex('TfrmHKProduto')].BringToFront
    else
      actHKProdutoExecute(Self);
  end;
end;

Why this?

obs.: I'm brazilian

tks
Author: Passion    Time: 2009-4-30 20:11

Thanks for your report.

After checking, it's a bug in our KeyDown processing method. It does not call "inherited" for somekey, which causing holding the shortcut.

Now this problem is fixed in our CVS. You can get it by CVS client.

Information:
http://www.cnpack.org/showdetail.php?id=372&lang=en
Author: KADU    Time: 2009-5-5 20:48

LiuXiao, i'm brazilian, I speak portuguese and my english is so so, but dont speak chinese.
I would you help me to connect in CVS?,
I do not know to connect in CVS,

You help me connect in CVS, step by step?

thank you,

I await a response.

bye
Author: Passion    Time: 2009-5-5 23:04

Well, you also can get this latest CnButton.pas file on our CVSTrac's web CVS.

It's another way to access single file.      But if you want to get all latest cvs files, it's recommended use cvs client, such as WinCVS or TCVS.

http://www.cnpack.org:8008/cnpac ... tons.pas&v=1.23




Welcome to CnPack Forum (http://bbs.cnpack.org/) Powered by Discuz! 5.0.0