View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Sat Sep 03, 2005 4:43 pm Post subject: Accelerators in enhanced menus |
|
|
*** From a user ***
In ClearWin+ it is possible in the %mn format to associate an accelerator key with a menu item (using the paragraph symbol).
How is this accomplished using the enhanced menu format %`mn ?
|
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Mon Sep 05, 2005 1:46 am Post subject: Accelerators in enhanced menus |
|
|
You can use %ac or add_accelerator_key@ to attach a callback function (cb_accel1 say) to a given accelerator key.
An enhanced menu takes only one callback function for all its items so in this callback function you can identify the item that was clicked (as shown in the help file) and then call cb_accel1 etc from there. |
|
Back to top |
|
|
|