Last change
on this file since 1568 was 459, checked in by Kevin Toppenberg, 16 years ago |
Adding foia-cprs branch
|
File size:
1.1 KB
|
Rev | Line | |
---|
[459] | 1 | unit fxLists;
|
---|
| 2 |
|
---|
| 3 | interface
|
---|
| 4 |
|
---|
| 5 | uses
|
---|
| 6 | Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
|
---|
| 7 | StdCtrls;
|
---|
| 8 |
|
---|
| 9 | type
|
---|
| 10 | TfrmDbgList = class(TForm)
|
---|
| 11 | memData: TMemo;
|
---|
| 12 | procedure FormKeyUp(Sender: TObject; var Key: Word;
|
---|
| 13 | Shift: TShiftState);
|
---|
| 14 | private
|
---|
| 15 | { Private declarations }
|
---|
| 16 | public
|
---|
| 17 | { Public declarations }
|
---|
| 18 | end;
|
---|
| 19 |
|
---|
| 20 | procedure DebugListItems(AListBox: TListBox);
|
---|
| 21 |
|
---|
| 22 | implementation
|
---|
| 23 |
|
---|
| 24 | {$R *.DFM}
|
---|
| 25 |
|
---|
| 26 | uses
|
---|
| 27 | ORFn, ORCtrls;
|
---|
| 28 |
|
---|
| 29 | procedure DebugListItems(AListBox: TListBox);
|
---|
| 30 | var
|
---|
| 31 | frmDbgList: TfrmDbgList;
|
---|
| 32 | begin
|
---|
| 33 | frmDbgList := TfrmDbgList.Create(Application);
|
---|
| 34 | try
|
---|
| 35 | ResizeAnchoredFormToFont(frmDbgList);
|
---|
| 36 | with frmDbgList do
|
---|
| 37 | begin
|
---|
| 38 | if AListBox is TORListBox then
|
---|
| 39 | memData.Lines.Assign(TORListBox(AListBox).Items)
|
---|
| 40 | else
|
---|
| 41 | memData.Lines.Assign(AListBox.Items);
|
---|
| 42 | ShowModal;
|
---|
| 43 | end;
|
---|
| 44 | finally
|
---|
| 45 | frmDbgList.Release;
|
---|
| 46 | end;
|
---|
| 47 | end;
|
---|
| 48 |
|
---|
| 49 | procedure TfrmDbgList.FormKeyUp(Sender: TObject; var Key: Word;
|
---|
| 50 | Shift: TShiftState);
|
---|
| 51 | begin
|
---|
| 52 | if Key = VK_ESCAPE then
|
---|
| 53 | begin
|
---|
| 54 | Key := 0;
|
---|
| 55 | Close;
|
---|
| 56 | end;
|
---|
| 57 | end;
|
---|
| 58 |
|
---|
| 59 | end.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.