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: DXL Graphics Libary & Callbacks
Topic Summary: Trouble repainting window on keyUp
Created On: 1-Dec-2006 18:47
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.
 1-Dec-2006 18:47
User is offline View Users Profile Print this message


Steve Shufelt

Posts: 8
Joined: 5-Apr-2006

I can't find much information on implementing the repaint function when a key is pressed.

Currently this program repaints everytime the wondow is resized. I would like to be able to read a keyUp event to do the same thing. Eventually I would like to be able to manipulate the position of the drawings on the screen based on keyboard events keyUp, keyDown, etc.

Any help would be greatly appreciated.

Thanks!
-Steve



-------------------------
Steven Shufelt
DOORS Admin
Harris Corp.
SShufelt@Harris.com
Report this to a Moderator Report this to a Moderator
 5-Dec-2006 07:46
User is offline View Users Profile Print this message


Reik Schroeder

Posts: 361
Joined: 28-Jul-2003

Hi Steve,
therefore you can use the keyboard callback function.

It can be set by using:
void set(DBE canvas, void callback(DBE canv, char key, bool controlDown, int x, int y))

Please refer to DXL-reference manual on topic set (key or mouse callback) for further information and an example.

I hope that helps you,

greetings
Reik Schröder

-------------------------
Evosoft GmbH
for Siemens Industry Sector


Berlin, Germany
Report this to a Moderator Report this to a Moderator
 5-Dec-2006 11:57
User is offline View Users Profile Print this message


Steve Shufelt

Posts: 8
Joined: 5-Apr-2006

Thank You Reik. I this is exactly what I was looking for.

Much Appreciated



-------------------------
Steven Shufelt
DOORS Admin
Harris Corp.
SShufelt@Harris.com
Report this to a Moderator Report this to a Moderator
 14-Dec-2006 13:44
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

You may find my Recreational DXL examples of use.

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 2-Jan-2007 22:30
User is offline View Users Profile Print this message


Steve Shufelt

Posts: 8
Joined: 5-Apr-2006

Thanks Tony. Recreational Dxl, thats great.

-------------------------
Steven Shufelt
DOORS Admin
Harris Corp.
SShufelt@Harris.com
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 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 2 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.