cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

Permanent text in graphics window

LarsZiegler
5-Regular Member

Permanent text in graphics window

Hello!

I want to display informations for the user in the bottom of the graphics window.

Iuse function ProGraphicsTextDisplay() but the text is not permanent visible.

What do I have to do to keep it visible?

Greetings Lars


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

Lars,
Read the API Wizard under User's Guide->User Interface: Basic
Graphics->Displaying Graphics (Wildfire 4.0) or User's Guide->Graphics and
Object Display->Displaying Graphics (Wildfire 3.0). In this section you
will read the following:

By default, the graphics elements are not stored in the Pro/ENGINEER
display list, so they do not get redrawn by Pro/ENGINEER when the user
selects View, Repaint or View, Orientation. However, if you store graphics
elements in either 2-D or 3-D display lists, Pro/ENGINEER redraws them.
See Display Lists for more information.

When you read the Display Lists section you will read the following:

For example, if you just use the functions described in Displaying
Graphics, the items you draw remain on the screen only until the window is
repainted. Furthermore, the objects are not plotted with the rest of the
contents of the window because Pro/ENGINEER does not know about them.

If, however, you add the same graphics items to the 2-D display list, they
will survive each repaint (when zooming and panning, for example) and will
be included in plots created by Pro/ENGINEER.

If you add graphics to the 3-D display list, you get the further benefit
that the graphics survive a change to the orientation of the solid and are
displayed, even when you spin the solid dynamically.

Therefore you need to create a display list for your drawing graphics to
survive a repaint. Good luck!

Patrick Williams
Sr. Systems Engineer II
Mechanical Engineering Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (business)
+1 520.545.6399 (fax)
-

TU/M12/8
6221 S Palo Verde Rd
Tucson, AZ 85706 USA
www.raytheon.com



This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this
message in error, please so advise the sender by reply e-mail and delete
this message. Thank you for your cooperation.



Top Tags