Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Accelerator in DXL
Topic Summary:
Created On: 13-Dec-2005 14:54
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 13-Dec-2005 14:54
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 14-Dec-2005 16:03
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 14-Dec-2005 22:54
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.