Mempercantik Tampilan Form dengan Hint


Tips & Trik Delphi, Tips Belajar Delphi, Belajar Delphi Online
unit Unit1;

 

interface

uses

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

type
TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Label1: TLabel;
StatusBar1: TStatusBar;
procedure FormCreate(Sender: TObject);
procedure tampilkanhint(Sender: TObject);

private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.tampilkanhint(Sender: TObject);
begin
label1.Caption:=application.Hint;
StatusBar1.SimpleText:=application.Hint;
caption:=application.Hint;
end;

procedure
TForm1.FormCreate(Sender: TObject);
begin
application.ShowHint:=true;
application.OnHint:=tampilkanhint;
end;

end.

TransCODE Software

Satu pemikiran pada “Mempercantik Tampilan Form dengan Hint

Tinggalkan Balasan

Please log in using one of these methods to post your comment:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s