Jump to content

MDI Child form


csyasar

Recommended Posts

  • 4 weeks later...

Oluşturacağınız diğer formların FormStyle özelliğini fsMDIChild yapın. Child formun Position özelliğini poDefault'a getirin. Son olarakta child formu açmadan önce (butona tıklayıp açılacaksa butonun onclick eventine, mdiform gösterildiğinde açılacaksa formun onshow eventine) left ve top değerlerini ayarlayın.

 

Örnek kod:

	UniForm1.Top:= 0; // UniForm1.Height:= Self.ClientHeight; dediğinizde child formun height'i mdiform ile aynı olacağı için burasına gerek yok aslında
	UniForm1.Left := Self.Width-UniForm1.Width;
	UniForm1.Height:= Self.ClientHeight;
	UniForm1.Show();
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...