![]() |
|
Formun taşınması eventi nedir ? - Baskı Önizleme +- Delphi Can (https://www.delphican.com) +-- Forum: Delphi (https://www.delphican.com/forumdisplay.php?fid=3) +--- Forum: Genel Programlama (https://www.delphican.com/forumdisplay.php?fid=6) +--- Konu Başlığı: Formun taşınması eventi nedir ? (/showthread.php?tid=200) |
Formun taşınması eventi nedir ? - yhackup - 17-09-2016 Merhaba Formun kulağından tutup sağa sola taşıma olayında alphablend yapacağım. Form Eventlerinde bulamadım. Bu olayı nasıl yakalarım ? Cvp: Formun taşınması eventi nedir ? - Tuğrul HELVACI - 17-09-2016 (17-09-2016, Saat: 09:14)yhackup Adlı Kullanıcıdan Alıntı: Merhaba İlgili formun taşınması işlemini WM_MOVING mesajı ile ve taşınma işleminin bitişini WM_EXITSIZEMOVE mesajı ile kontrol edebilirsin. Örneğin: TForm1 = class(TForm)
private
//
protected
procedure WMMoving(var Message: TWMMoving); message WM_MOVING;
procedure WMExitsizemove(var Message: TMessage); message WM_EXITSIZEMOVE;
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
{ TForm1 }
procedure TForm1.WMExitsizemove(var Message: TMessage);
begin
AlphaBlend := false;
end;
procedure TForm1.WMMoving(var Message: TWMMoving);
begin
if not AlphaBlend then
AlphaBlend := true;
end;
Tabii AlphaBlendValue property'sine de bir değer vermeyi unutmamalısın
Formun taşınması eventi nedir ? - yhackup - 17-09-2016 Evvet tamda aradığım buydu teşekkürler Cvp: Formun taşınması eventi nedir ? - Tuğrul HELVACI - 17-09-2016 Rica ederim. Cvp: Formun taşınması eventi nedir ? - yhackup - 17-09-2016 Gayet güzel oldu ![]() Formu taşırken saydamlaştırıyorum bırakınca eski haline döndürüyorum. protected procedure WMExitsizemove(var Message: TMessage); message WM_EXITSIZEMOVE; procedure WMmove(var Message: TWMMoving); message WM_MOVE; procedure TForm4.WMExitsizemove(var Message: TMessage); begin AlphaBlend := false; saydamlik := 255; end; procedure TForm4.WMmove(var Message: TWMMoving); begin if (saydamlik > 150) then Dec(saydamlik); AlphaBlend := true; AlphaBlendValue := saydamlik; end; |