Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   VCL (http://www.delphipages.com/forum/forumdisplay.php?f=4)
-   -   HEllo gUys (http://www.delphipages.com/forum/showthread.php?t=217774)

~MaRcUs~ 06-16-2018 10:53 PM

HEllo gUys
 
1 Attachment(s)
can anybody tell how to create label on image
I did this but label is not on the image but buttons are

Norrit 06-19-2018 07:43 AM

Code:

procedure TForm2.FormCreate(Sender: TObject);
var
  lbl: TLabel;
begin
  lbl := TLabel.Create(Image1);
  lbl.Parent := Self; { the form }
  lbl.Top := Image1.Top + 10;
  lbl.Left := Image1.Left + 10;
  lbl.Caption := 'My custom text';
  lbl.BringToFront();
end;


~MaRcUs~ 06-20-2018 06:15 AM

..................
 
Quote:

Originally Posted by Norrit (Post 234203)
Code:

procedure TForm2.FormCreate(Sender: TObject);
var
  lbl: TLabel;
begin
  lbl := TLabel.Create(Image1);
  lbl.Parent := Self; { the form }
  lbl.Top := Image1.Top + 10;
  lbl.Left := Image1.Left + 10;
  lbl.Caption := 'My custom text';
  lbl.BringToFront();
end;


thankssssssssssssssssss


All times are GMT. The time now is 10:32 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.