Jump to content

How to center the form in this example


mierlp

Recommended Posts

hi 

 

I open a form when you click on the 'My account' text.at the left

 

This form needs to be opened in the top centered within UniPanel_Main
Now it openens at the left site instead of the top center

​Suggestions ?

 

Regards Peter

 

 

Link to comment
Share on other sites

Hi Mierlp,

 

  my suggestions:

 

- in frmAccount form, set AlignmentControl to uniAlignmentClient for each panel

- UniPanel_Main

    Layout = fit
    LayoutAttribs.Align = stretch

- add a new panel inside a UniPanel_Main and move inside UniDBEdit_Name and UniLabel_Name

- for this panel

     Layout = 'vbox'

     LayoutAttribs.Align = center
     LayoutAttribs.Pack = start
     LayoutConfig.Flex = 1
- optionally for UniDBEdit_Name and UniLabel_Name add a top margin with
        LayoutConfig.Padding = '10 0 0 0'
 

see in the attached file the changes.

regards
Cesare

frmAccount.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...