M
Mitko
Hello there
I am using Microsoft Visual .Net to develop a smart device
application.
The application has many forms and many controls on each form.
Is there any way to capture all click event in a central place?
As an example, in Delphi this is done with code like this:
...
Application.OnEvent := SomeHandler;
...
procedure TForm.SomeHandler(Sender: QObjectH; Event: QEventH; var
Handled: Boolean);
begin
Handled := False;
if (QEvent_isQMouseEvent(Event)) then begin
DoSomeThings(Sender);
end;
end;
...
Any suggestions will be appreciated.
I am using Microsoft Visual .Net to develop a smart device
application.
The application has many forms and many controls on each form.
Is there any way to capture all click event in a central place?
As an example, in Delphi this is done with code like this:
...
Application.OnEvent := SomeHandler;
...
procedure TForm.SomeHandler(Sender: QObjectH; Event: QEventH; var
Handled: Boolean);
begin
Handled := False;
if (QEvent_isQMouseEvent(Event)) then begin
DoSomeThings(Sender);
end;
end;
...
Any suggestions will be appreciated.