Anfidya'nın arka bahçesi..

There is dark web in the deep web..

Archive for the ‘main form’ tag

[Delphi] Çalışma Zamanında Ana Form’u Değiştirme

leave a comment

Merhaba,

Bildiğimiz üzere programımız ne kadar form içerirse içersin bir tanesi ana form(main form) şeklinde oluşturuluyor. Aşağıdaki kod ile çalışma zamanında(at run-time) ana formumuzu değiştirebiliriz.

 

procedure SetAsMainForm(aForm:TForm);
var
 P:Pointer;
begin
 P := @Application.Mainform;
 Pointer(P^) := aForm;
end;

Buradan alıntı yaptım(http://www.swissdelphicenter.ch/torry/showcode.php?id=665)

Written by anfidya

Eylül 11th, 2014 at 12:39 am