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: ToolBar() and custom icons??
Topic Summary:
Created On: 17-Nov-2003 13:08
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.
Answer This question was answered by Jeremy Schaus, on Wednesday, November 19, 2003 3:13 PM

Answer:
I sent this question to Telelogic support. I was informed that there is no way to add custom icons to toolBars or buttons, only the standard icons within DOORS.
 17-Nov-2003 13:08
User is offline View Users Profile Print this message


Jeremy Schaus

Posts: 6
Joined: 25-Sep-2002

I have created a toolbar but I am unable to added custom icons to it. The DXL reference manual says to use the int param[] variable. Which the utils/icons.inc has a list of int vars to represent each of the standard icons. I can set a button on the toolbar to one of the standard icons in DOORS. Is there a way to add custom icons to that list or add the icon directly to the toolBar? Or is there a way to use custom icons on a regular DBE button?

Thank you,
Jeremy Schaus
Report this to a Moderator Report this to a Moderator
 19-Nov-2003 15:13
User is offline View Users Profile Print this message


Jeremy Schaus

Posts: 6
Joined: 25-Sep-2002

Answer Answer
I sent this question to Telelogic support. I was informed that there is no way to add custom icons to toolBars or buttons, only the standard icons within DOORS.
Report this to a Moderator Report this to a Moderator
 20-Nov-2003 19:08
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Jeremy,

I had the same problem. I solved it by using a DBE canvas and actually drawing the icon in a short subroutine. You can trap button presses at specific points on the canvas, and if the intersection falls within the button area, call a subroutine to perform the action of the button.

It worked for me because I had simple icons, just a box with some straight lines to represent left-, center-, and right-justification. A more complex image will require a much more complex drawing routine, but the canvas can be placed anywhere in a standard dialog box. Each canvas will have a local cooordinate system with the zero point (0,0) in the upper-left hand corner.

Good luck!

-Dennis
Report this to a Moderator Report this to a Moderator
 26-Nov-2003 14:25
User is offline View Users Profile Print this message


Jeremy Schaus

Posts: 6
Joined: 25-Sep-2002

Dennis,

Thanks for the idea. I ended up using buttons instead and placed them beside each other. I will experiment with the canvas DBE though.

On a side note I have submitted an enhancement request to Telelogic for custom icons in the toolbar. Hopefully it gets approved and is implemented in the next release.

Thank you,

Jeremy Schaus

Edited: 26-Nov-2003 at 14:27 by Jeremy Schaus
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.