Last change
on this file since 1482 was 459, checked in by Kevin Toppenberg, 16 years ago |
Adding foia-cprs branch
|
File size:
1.1 KB
|
Line | |
---|
1 | unit fOptionsPrimaryList;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
7 | ORCtrls, StdCtrls, ORFn, ExtCtrls;
|
---|
8 |
|
---|
9 | type
|
---|
10 | TfrmOptionsPrimaryList = class(TForm)
|
---|
11 | pnlBottom: TPanel;
|
---|
12 | btnOK: TButton;
|
---|
13 | btnCancel: TButton;
|
---|
14 | lblPrimaryList: TLabel;
|
---|
15 | cboPrimary: TORComboBox;
|
---|
16 | private
|
---|
17 | { Private declarations }
|
---|
18 | public
|
---|
19 | { Public declarations }
|
---|
20 | end;
|
---|
21 |
|
---|
22 | procedure DialogOptionsPrimaryList(fontsize: integer; var actiontype: Integer);
|
---|
23 |
|
---|
24 | var
|
---|
25 | frmOptionsPrimaryList: TfrmOptionsPrimaryList;
|
---|
26 |
|
---|
27 | implementation
|
---|
28 |
|
---|
29 | {$R *.DFM}
|
---|
30 |
|
---|
31 | procedure DialogOptionsPrimaryList(fontsize: integer; var actiontype: Integer);
|
---|
32 | // create the form and make in modal, return an action
|
---|
33 | var
|
---|
34 | frmOptionsPrimaryList: TfrmOptionsPrimaryList;
|
---|
35 | begin
|
---|
36 | frmOptionsPrimaryList := TfrmOptionsPrimaryList.Create(Application);
|
---|
37 | actiontype := 0;
|
---|
38 | try
|
---|
39 | with frmOptionsPrimaryList do
|
---|
40 | begin
|
---|
41 | Position := poScreenCenter;
|
---|
42 | Font.Size := MainFontSize;
|
---|
43 | ShowModal;
|
---|
44 | actiontype := btnOK.Tag;
|
---|
45 | end;
|
---|
46 | finally
|
---|
47 | frmOptionsPrimaryList.Release;
|
---|
48 | end;
|
---|
49 | end;
|
---|
50 |
|
---|
51 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.