Jump to content

Different behavior of center a panel (bug?)


mierlp

Recommended Posts

hi

 

I'm still struggling with the opening and positioning of a panel...and there is a difference
between opening at the onCreateEvent of the Mainform and calling it with by code

 

I have build :

  • ServerModule.MainFormDisplay - mfPage
  • FormMain as Main form and menu
  • FormTableEvents with no borders and layout = fit .........that works
  • When you start the application i created a FormMain.OnCreateEvent with the following code :


  FormTableEvents.Parent  := Self;
  FormTableEvents.Show();

 

 This is opening the form and places the panel directly in the center ....that works

 

BUT

  • When you close this form and then click on the menu button 'Tabellen' and 'Evenementen' (sorry it's dutch language)
    the form will be opened but the panel starts at the left site and is then centered

I did try some things like :

 

  • AlignmentControl = uniAlignmentServer but the the panel is also resized of the full width
  • Layout = several options but not working for what i need

 

Has anyone suggestions or is this a bug or do i need to build it otherways. The reason why i

build it this way is you don't have borders showing of the form.

 

Regards Peter

 

mijnSeminar.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...