Jump to content
Sign in to follow this  
VincentG

TGroupBox Text problem

Recommended Posts

Hello,

 

I've got a problem using a TGroupBox. I'm pretty sure it's a silly thing but I can't point it out...

 

When I put a groupbox on my Form, it appears like that :

image.png.4e2325307d2540217be175c81f68bc94.png

 

Which is fine for me.

 

But when I launch the app on my phone, it appears like that :

image.thumb.png.33b0d909d69ca4f7b40d13b200e67a7b.png

 

Text is inside the box, and centered.

 

On 1st try, I've got nothing set in the StyleLookUp property.

On the 2nd try, I set it as groupboxstyle (default) : same

On 3rd try I customized a style :

image.png.ca231841cdbad9be307e50636fed3c30.png

result is the same in the app.

 

I tried to change the text color to blue (in the Style), and it appears like that in Delphi, so it seems ok :

image.thumb.png.95c35906ba703fc564df57e7fe1efa80.png

 

But when I'm launching the app on the phone, still the same...

 

What obvious thing am I missing ?

 

I of course have no code that could change things in this form.

 

Thanks a lot.

 

 

Share this post


Link to post

You probably have set the "Style" preview to "Windows", try selecting the right destination (you can find it in Design)

Share this post


Link to post
1 hour ago, Minox said:

You probably have set the "Style" preview to "Windows", try selecting the right destination (you can find it in Design)

Yes indeed, didn't pay attention to that. I struggled to find where that was but found it. Thanks !

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×