csyasar Posted August 17, 2014 Share Posted August 17, 2014 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? Quote Link to comment Share on other sites More sharing options...
bugra Posted September 10, 2014 Share Posted September 10, 2014 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(); 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.