Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > VCL

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 06-16-2018, 10:53 PM
~MaRcUs~ ~MaRcUs~ is offline
Junior Member
 
Join Date: Apr 2017
Posts: 4
Default HEllo gUys

can anybody tell how to create label on image
I did this but label is not on the image but buttons are
Attached Images
File Type: jpg 56.jpg (15.7 KB, 8 views)
Reply With Quote
  #2  
Old 06-19-2018, 07:43 AM
Norrit Norrit is offline
Moderator
 
Join Date: Aug 2001
Location: Landgraaf
Posts: 7,303
Default

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;
Reply With Quote
  #3  
Old 06-20-2018, 06:15 AM
~MaRcUs~ ~MaRcUs~ is offline
Junior Member
 
Join Date: Apr 2017
Posts: 4
Default ..................

Quote:
Originally Posted by Norrit View Post
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:42 PM.


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