Statistiques
| Révision:

root / UFComment.pas @ 5

Historique | Voir | Annoter | Télécharger (782 octets)

1 3 avalancogn
unit UFComment;
2
3
interface
4
5
uses
6
  Windows, Forms, Classes, Controls, StdCtrls, Buttons;
7
8
type
9
  TFComment = class(TForm)
10
    Memo: TMemo;
11
    BBOk: TBitBtn;
12
    BBCancel: TBitBtn;
13
    procedure FormShow(Sender: TObject);
14
    procedure FormCreate(Sender: TObject);
15
  private
16
    { D?clarations priv?es }
17
  public
18
    { D?clarations publiques }
19
  end;
20
21
var
22
  FComment: TFComment;
23
24
implementation
25
26
uses
27
  gnugettext;
28
29
{$R *.dfm}
30
31
{ TFComment }
32
33
procedure TFComment.FormCreate(Sender: TObject);
34
begin
35
  if Screen.Fonts.IndexOf('Arial Unicode MS') <> -1
36
  then
37
    Font.Name := 'Arial Unicode MS';
38
  TranslateComponent(Self);
39
end;
40
41
procedure TFComment.FormShow(Sender: TObject);
42
begin
43
  Memo.SelectAll;
44
  ActiveControl := Memo;
45
end;
46
47
end.