Forum archiveIssue archiveVisualization and 3D Viewer

Archived discussion

AIS_TextLabel with background?

Visualization and 3D ViewerTue, 11/28/2017 - 16:321 reply

Browse this forum
QuestionAuthor

Hello,

i am looking for the ability to render some text with a semi-transparent background (or background in general). I am not able to find any method on AIS_Textlabel which would fulfill that requirement.

Is it possible? I want the text to be visible independently from the 3D Models that are also shown on the screen.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Author

Ok, for those who come here with a similar problem:

An AIS_TextLabel object hat a DisplayType (from an enum Aspect_TypeOfDisplayText) with a value of Aspect_TODT_SUBTITLE. This enables setting the "ColorSubTitle" (on AIS_TextLabel) which is a background color for the text.

Maybe this post will save someone some time.