Max3073 Posted August 18, 2023 Share Posted August 18, 2023 Hello. i would like to place some dynamically generated panels in a container panel using "Client Alignment" and Layout = column. Column alignment seems perfect: panels are perfectly shown in a row that wraps when the form is resized. There is only one BIG (for me) problem: I cannot find a way to center them. Please help me. I'm attaching a picture of the actual result and a sample project that show exactly what I'm doing. UniGUAlignmentTest.zip Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 18, 2023 Share Posted August 18, 2023 Hello, You can analyze this demo: \FMSoft\Framework\uniGUI\Demos\Desktop\Clientside Alignment - Layout Column Quote Link to comment Share on other sites More sharing options...
Max3073 Posted August 18, 2023 Author Share Posted August 18, 2023 Thank you, i did it: in your demo you use percentages to cover the entire width of the containing panel. I cannot use percentages, I need to use the actual size of panels (and I need them to wrap to a second row in case the full size exceeds the container width). Besides changing your demo and using smaller percentages, you can clearly see that panels are not centered (I'm attaching a picture of your demo) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 19, 2023 Share Posted August 19, 2023 Centering may not work. And I've noticed that you use the Align properties when using client-side alignment. Don't use this property for client-side alignment... Quote Link to comment Share on other sites More sharing options...
Max3073 Posted August 19, 2023 Author Share Posted August 19, 2023 I tried in many ways but after two days i decided to write here. So actually you are telling me it is not possible,.. Sad Thank you anyway Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.