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

Toolbar - function mappings

Newbie

Toolbar - function mappings

At 12:22 PM 2/24/98 -0500, Olson, Michael wrote:
>Skevi,
>
>I don't think you can map the Adept 5.4.1 toolbar
>buttons to your own functions. I think Adept 7.0
>provides for this via the "ACL Designer" -- an
>upgrade might get you what you want.

Adept 7.0 let's you re-map the existing toolbar icons
using the map command, e.g.,

map edit ToolbarOpen { myopenfunction() }

You need ACL designer if you want to change the icons,
or the arrangement of the icons, in the toolbars.

You cannot re-map the toolbar icons in version 5.4.1.

Paul

>-- Michael.Olson@westgroup.com
>
>
>> -----Original Message-----
>> From: sloizou@thomtech.com [SMTP:sloizou@thomtech.com]
>> Sent: Tuesday, February 24, 1998 3:51 PM
>> To: adepters@arbortext.com
>> Subject: Toolbar - function mappings
>>
>>
>>
>> Does anybody know which file contains the mapping between the
>> buttons on
>> the toolbar and the functions they perform. I need to map one of
>> the
>> buttons to my own function.
>>
>> I'm using Adept 5.4.1/w
>>
>> Thanks in advance,
>>
>> Skevi
>>
>> sloizou@thomtech.com
>>
>
>
Tags (2)
3 REPLIES 3

Toolbar - function mappings

Ooops, I goofed in my earlier response. I was thinking key mapping
instead of tool bar mapping. I plead lethargy of a full stomach after
lunch.

Anyway, there is a user function key that you can map with the map
command. The format is

map Toolbar_Function {enter the command you want here}.

This command can be placed in the pubrc other adept system file as
needed.

Lynn E. Hales
Information Systems Specialist
Newport News Shipbuilding
hales_le@nns.com
(757) 688-2949
🙂

----------

Toolbar - function mappings

You might want to check out the capabilities of the "map" command. The
command language manual has three or four pages dedicated to its uses.
Basically, the format is

map {the key or key combination to be mapped} {the command you want
mapped to the key or key combination}

As to what keys do what functions, I haven't found a comprehensive list
of them in "one" location. Good luck.

Lynn E. Hales
Information Systems Specialist
Newport News Shipbuilding
hales_le@nns.com
(757) 688-2949

----------

Toolbar - function mappings

> From Hales_le@nns.com Wed Feb 25 15:58:27 1998
...[snip]
> You might want to check out the capabilities of the "map" command. The
> command language manual has three or four pages dedicated to its uses.
> Basically, the format is
>
> map {the key or key combination to be mapped} {the command you want
> mapped to the key or key combination}

We have been experimenting a lot with the "map" command, but have run
into problems. Since the map command allows an optional parameter
with window_name to which the mapping applies to, I assumed that I could
customize maps to DTDs, something like

wn = window_name(...) # get the window_name of the document
# currently being edited.
exec map $wn F8 { response("Something interesting for F8-key"); }

The function window_name returns names like window1 or window7, so
my expectation was that if I run the code in one edit window, it would
not map in another edit window. However, it seems that the Adept
documentation does not distinguish between class and instance, the
map command applies to a class of windows so the above command, applied
to an instance called "window7", applies to the class of windows called
"edit".

The only way I can see to get the behaviour I want (although I
haven't tested it yet) is to create maps with "map @xxx" where
xxx is $docname, and then create a callback function on the
window that activates the map whenever the window gets focus.

My objective is to map the keys in a DTD specific manner, which the above
scheme would allow. However, it doesn't seem satisfying to go through
all these complications so I wonder if there is a simpler solution.

Has anybody experimented with anything similar ?

Per-ÃÂ
ke
--
Per-ÃÂ
ke Ling (note: Per-Åke, transliteration Per-Ake)
email: Per-Ake.Ling@uab.ericsson.se phone: +46 8 727 5674
Ericsson Utvecklings AB mobile: +46 70 790 2446
AXE Research and Development fax: +46 8 727 3463
Announcements