69 views
in GUI Development by
Hi,

I'd like to place a graphic to the left of the value in a ValueDisplay such that it is a fixed distance from the leftmost digit. I've tried using ValueDisplay.GetContentArea() but that doesn't seem to change as the width of the text in the ValueDisplay increases. Is there a way to do this?

thanks!

1 Answer

0 votes
by
 
Best answer

Hello Robert,

if you are using the Value Display widget, this is not possible. The widget does not provide any information concerning the actual position of the displayed text elements. Accordingly it is difficult to adjust other decoration views on the displayed content.

I would recommend to create your own Value Display component using the for this purpose available Component Template. In this component you are free to modify and enhance the appearance of the widget.

I hope it helps you further.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...