0

hi, I'm fairly experienced with delphi however
have come across a tiny problem, i have a create
box known as Edit1 for my web browser, but the
label on this is always edit1, before you type the
text into it, how can i make this blank or at least
edit the text? thanks!

would love a reply asap :)

4
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by FlamingClaw
0

1. At design time you may clear the Edit1 text from the Property Text
2. At runtime you may execute: Edit1.Text := '';

0

If you select your box in the Design mode, it will bring up a list of properties on the left side of your screen.
Scroll through this list and find a value called Text, this will change the default value of that textbox.

0

on the form's onshow events :

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TForm1 = class(TForm)
    Edit1: TEdit;
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormShow(Sender: TObject);
begin
  Edit1.Text:='';
end;

end.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.