For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

AIS_TextLabel with background?

Robert W.'s picture
Forums: 

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.

Robert W.'s picture

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.