Silverfrost Logo About Us | Contact Us
 

ADD_ACCELERATOR@

Platform

Win32(ClearWin+)

Purpose

To associate an accelerator key with a given window.

Syntax

SUBROUTINE ADD_ACCELERATOR@( W, KEY_NAME, F )
INTEGER(7) W
CHARACTER*(*) KEY_NAME
EXTERNAL F

Description

This associates the callback function F with the named key (see the definition of %ac in Accelerator key format for details of the names of keys). W is the handle of the window which you can obtain using %hw when the window is created. If a previous accelerator definition for this key in this window exists then it is removed.

Notes

You could use this routine if you were writing a configurable editor and you wished to change the accelerator definitions of the surounding window dynamically.

The call-back function cannot be a string representing a standard call-back.

See also

%ac, REMOVE_ACCELERATOR@

 

 

Copyright © 1999-2017 Silverfrost Limited