![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Accelerator in DXL Topic Summary: Created On: 13-Dec-2005 14:54 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I know how to define an cntrl-key Accelerator when deploying DXL via Addins, e.g. make Cntr-B activate script backup.dxl. I also see how to do it when creating your own menus with createItem.
Is there a way that a DXL program can assign an accelerator to one of its buttons, prefereably do that assignment after the button is created, e.g. assign Cntrl-B to button [Backup Now]. - Louie |
|
![]() |
|
![]() |
|
You cannot assign accelerator keys to dialog box elements.
You can, however assign a callback to a canvas that captures keyboard inputs, including ctrl-key combinations. This allows you to "cheat" and have key presses captured and handled by your dialog box. The code snippet is a test DXL that prints the ASCII code of the last key pressed. ------------------------- Tony Goodman http://www.smartdxl.com Edited: 14-Dec-2005 at 16:04 by Tony Goodman |
|
![]() |
|
![]() |
|
Was hoping to be able to do it for a dialog that's "show"n, so that if the user has the dialog open but is browsing a module, cntr-B will jump back to the dialog that does something. Will keep the code for future reference.
- Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Accelerator in DXL
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.