root / UFCommentMat.pas @ 5
Historique | Voir | Annoter | Télécharger (873 octets)
1 | 3 | avalancogn | unit UFCommentMat;
|
---|---|---|---|
2 | |||
3 | interface
|
||
4 | |||
5 | uses
|
||
6 | Windows, Forms, Classes, Controls, StdCtrls, Buttons; |
||
7 | |||
8 | type
|
||
9 | TFCommentMat = class(TForm)
|
||
10 | Memo: TMemo; |
||
11 | BBOk: TBitBtn; |
||
12 | BBCancel: TBitBtn; |
||
13 | CBType: TComboBox; |
||
14 | LType: TLabel; |
||
15 | procedure FormShow(Sender: TObject);
|
||
16 | procedure FormCreate(Sender: TObject);
|
||
17 | private
|
||
18 | { D?clarations priv?es }
|
||
19 | public
|
||
20 | { D?clarations publiques }
|
||
21 | end;
|
||
22 | |||
23 | var
|
||
24 | FCommentMat: TFCommentMat; |
||
25 | |||
26 | implementation
|
||
27 | |||
28 | uses
|
||
29 | gnugettext; |
||
30 | |||
31 | {$R *.dfm}
|
||
32 | |||
33 | { TFCommentMat }
|
||
34 | |||
35 | procedure TFCommentMat.FormCreate(Sender: TObject);
|
||
36 | begin
|
||
37 | if Screen.Fonts.IndexOf('Arial Unicode MS') <> -1 |
||
38 | then
|
||
39 | Font.Name := 'Arial Unicode MS';
|
||
40 | TranslateComponent(Self); |
||
41 | CBType.ItemIndex := 0;
|
||
42 | end;
|
||
43 | |||
44 | procedure TFCommentMat.FormShow(Sender: TObject);
|
||
45 | begin
|
||
46 | Memo.SelectAll; |
||
47 | ActiveControl := Memo; |
||
48 | end;
|
||
49 | |||
50 | end. |