DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Text Control Text Not Centred?

Solved!
Go to solution

Hi,

 

I have a dialog box with a text control that is being used as a title. I centred the text only to find that when the text started on a new line it was actually left justified rather than fully centred as per familiar applications.

 

So, instead of this:

My Long Title That Runs

To Two Lines

I got this:

My Long Title That Runs

To Two Lines

 

Is it possible to fully centre text in DIAdem controls?

 

Regards.

0 Kudos
Message 1 of 6
(2,010 Views)

I meant to add: if you place the cursor in the text box then the centring is 'correct' (i.e. as per my expectations), but when you leave the text box the text is changed to the format I described.

 

Regards.

0 Kudos
Message 2 of 6
(1,995 Views)

Hello Simon_Aldworth,

 

If you use the setting

Walter_Rick_0-1675163463660.png

for the edit box it works fine on my side.

Walter_Rick_1-1675163510122.png

 

Tested with DIAdem 2022

 

Greetings

Walter

 

 

0 Kudos
Message 3 of 6
(1,971 Views)

Hi Walter,

 

Thanks for your reply. Sorry to point this out but you've misread my post. I'm using a text control. Centring text in an Editbox seems to work fine but not in a Text control. I'm using 2022 Q4.

 

Regards.

 

Simon_Aldworth_0-1675214591634.png

 

Simon_Aldworth_0-1675215041591.png

 

Simon_Aldworth_1-1675214629380.png

 

Simon_Aldworth_2-1675214692345.png

 

0 Kudos
Message 4 of 6
(1,955 Views)

Hi Simon_Aldworth,

 

You are right, I am sorry. This seems to be a bug and I will inform R&D about it. In the meantime you can use the following settings for the Edit Box to have a similar "feeling" as the Text Control.

Walter_Rick_0-1675233249173.png

 

Greetings

Walter

0 Kudos
Message 5 of 6
(1,943 Views)
Solution
Accepted by topic author Simon_Aldworth

Thanks Walter.

 

In the end I removed enough words to fit them all on one line!

 

Hope the bug gets fixed soon.

 

Regards.

0 Kudos
Message 6 of 6
(1,934 Views)