View Single Post
  #10  
Old 23-08-2017, 05:17
Gupta Gupta is offline
Banned
 
Join Date: Aug 2016
Location: https://t.me/pump_upp
Posts: 399
Thanks: 139
Thanked 715 Times in 231 Posts
Gupta is on a distinguished road
Send a message via ICQ to Gupta Send a message via AIM to Gupta Send a message via Yahoo to Gupta
yener had used A dummy label to use as shadows.
jst top and left property be +1 else everything is same

Code:
procedure UpdateShadow(var Current, Shadow :TLabel);
begin
  if Shadow = nil then
    Shadow := TLabel.Create(WizardForm);
  if Current.Visible and (ShadowTXT >= 0) then begin
    with Shadow do begin
      Caption := Current.Caption;
      Alignment := Current.Alignment;
      AutoSize := Current.Autosize;
      Transparent := Current.Transparent;
      WordWrap := Current.Wordwrap;
      Parent := Current.Parent;
      OnClick := Current.OnClick;
      OnDblClick := Current.OnDblClick;
      OnMouseDown := Current.OnMouseDown;
      OnMouseMove := Current.OnMouseMove;
      OnMouseUp := Current.OnMouseUp;
      Font.Color := ShadowTXT;  
      Font.Size := Current.Font.Size;
      Font.Name := Current.Font.Name;
      Font.Style := Current.Font.Style;
      Visible := Current.Visible;
      Height := Current.Height;
      Width := Current.Width;
      Left := Current.Left + 1;
      Top := Current.Top + 1;
      SendToBack;
    end;
  end else
    Shadow.Hide;
end;
or
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
Reply With Quote
The Following 3 Users Say Thank You to Gupta For This Useful Post:
Chayan Manna (27-09-2017), KaktoR (23-08-2017), Kobi Blade (23-08-2017)