cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Trapping of Events

Newbie

Trapping of Events

I have a situation where I want to trap the different mouse and key =
events.
In Adept we have doc_add_callback function which traps various events =
like create, destroy, table deletion, table creation.
I am able to trap these events but what exactly I want is :
When ever any of the keyboard key's are pressed or any mouse button is =
pressed, I would like to trap it and do some operation at this pt.

Any Idea how to do this?

thanks in advance

Anita Nagri
HCL Technologies India Private Limited
anitan@ggn.hcltech.com
Tags (2)
10 REPLIES 10

Trapping of Events

-----Original Message-----
From: Anita Nagari
To: Adepters
Date: Wednesday, July 07, 1999 5:13 PM
Subject: Trapping of Events

I have a situation where I want to trap the different mouse and key =
events.
In Adept we have doc_add_callback function which traps various events =
like create, destroy, table deletion, table creation.
I am able to trap these events but what exactly I want is :
When ever any of the keyboard key's are pressed or any mouse button is =
pressed, I would like to trap it and do some operation at this pt.

Any Idea how to do this?

thanks in advance

Anita Nagri
HCL Technologies India Private Limited
anitan@ggn.hcltech.com

Trapping of Events

Anita,

You want to use the "map" command.

Write "help map" on the command line (which you can activate
by selecting "Preferences" from the "Options" menu,
then select the "Window" tab and make sure
the "Command Line" option is marked).

/ Svante Kleist - NEMESIS systemDesign, Stockholm, Sweden

Trapping of Events

Svante,
This is not actually what I need. Let me explain you
Whenver the caret moves inside a table by any of key's or key
combinations and by the mouse click .
I would like to trap this event (i.e I want to be notified that the
caret is inside the table)

Similarly when the caret moves outside the table , I would like to
trace this event also.

for e.g In Adept editor whenever the cursor moves inside a table the
table rulers get's activated and when
it comes out of the table , the table rulers get de-activated.

But if we use the map command then we have to write the same code
for each and every key mappings or
key combinations , which is very tedious.

>Anita,
>
>You want to use the "map" command.
>
>Write "help map" on the command line (which you can activate
>by selecting "Preferences" from the "Options" menu,
>then select the "Window" tab and make sure
>the "Command Line" option is marked).
>
>/ Svante Kleist - NEMESIS systemDesign, Stockholm, Sweden
>
>
>--On den 7 juli 1999, 17:13 +0530 Anita Nagari
>wrote:
>
>>
>> I have a situation where I want to trap the different mouse and key
>> events. In Adept we have doc_add_callback function which traps various
>> events like create, destroy, table deletion, table creation. I am able
>> to trap these events but what exactly I want is :
>> When ever any of the keyboard key's are pressed or any mouse button is
>> pressed, I would like to trap it and do some operation at this pt.
>>
>> Any Idea how to do this?
>>
>> thanks in advance
>>
>> Anita Nagri
>> HCL Technologies India Private Limited
>> anitan@ggn.hcltech.com
>>
>
>
>

Trapping of Events

Aha,

Something like this should do it:

Trapping of Events

Svante,

Many thanks, part of the code you put out here today filled in a blank spot
I needed for something I've been working off and on for a while. I knew
what I wanted, just couldn't get my limited ability with ACL to do it for me
til now.

Lynn E. Hales
Information Systems Specialist
AMSEC LLC
(757)688-9324
hales_le@nns.com

Trapping of Events

I have a situation where I want to trap the different mouse and key =
events.
In Adept we have doc_add_callback function which traps various events =
like create, destroy, table deletion, table creation.
I am able to trap these events but what exactly I want is :
When ever any of the keyboard key's are pressed or any mouse button is =
pressed, I would like to trap it and do some operation at this pt.

Any Idea how to do this?

thanks in advance

Anita Nagri
HCL Technologies India Private Limited
anitan@ggn.hcltech.com

Trapping of Events

-----Original Message-----
From: Anita Nagari
To: Adepters
Date: Wednesday, July 07, 1999 5:13 PM
Subject: Trapping of Events

I have a situation where I want to trap the different mouse and key =
events.
In Adept we have doc_add_callback function which traps various events =
like create, destroy, table deletion, table creation.
I am able to trap these events but what exactly I want is :
When ever any of the keyboard key's are pressed or any mouse button is =
pressed, I would like to trap it and do some operation at this pt.

Any Idea how to do this?

thanks in advance

Anita Nagri
HCL Technologies India Private Limited
anitan@ggn.hcltech.com

Trapping of Events

Svante,
This is not actually what I need. Let me explain you
Whenver the caret moves inside a table by any of key's or key
combinations and by the mouse click .
I would like to trap this event (i.e I want to be notified that the
caret is inside the table)

Similarly when the caret moves outside the table , I would like to
trace this event also.

for e.g In Adept editor whenever the cursor moves inside a table the
table rulers get's activated and when
it comes out of the table , the table rulers get de-activated.

But if we use the map command then we have to write the same code
for each and every key mappings or
key combinations , which is very tedious.

>Anita,
>
>You want to use the "map" command.
>
>Write "help map" on the command line (which you can activate
>by selecting "Preferences" from the "Options" menu,
>then select the "Window" tab and make sure
>the "Command Line" option is marked).
>
>/ Svante Kleist - NEMESIS systemDesign, Stockholm, Sweden
>
>
>--On den 7 juli 1999, 17:13 +0530 Anita Nagari
>wrote:
>
>>
>> I have a situation where I want to trap the different mouse and key
>> events. In Adept we have doc_add_callback function which traps various
>> events like create, destroy, table deletion, table creation. I am able
>> to trap these events but what exactly I want is :
>> When ever any of the keyboard key's are pressed or any mouse button is
>> pressed, I would like to trap it and do some operation at this pt.
>>
>> Any Idea how to do this?
>>
>> thanks in advance
>>
>> Anita Nagri
>> HCL Technologies India Private Limited
>> anitan@ggn.hcltech.com
>>
>
>
>

Trapping of Events

Aha,

Something like this should do it: