Jump to content

Recommended Posts

Posted

arkadaşlar merhaba,

 

resim 1 deki mdi formum var. bunun üzerinde açılan tüm formlar child olsun ve mdi formun istediğim kısmını kaplasın istiyorum. mdi formum resim1 deki. olmasını istediğim şey resim 2. nasıl yaparım?

post-1917-0-46492700-1408234606_thumb.jpg

post-1917-0-71117000-1408234609_thumb.jpg

  • 4 weeks later...
Posted

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();

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