
01.05.2011, 09:35
|
 |
Let Me Show You
|
|
Регистрация: 30.04.2010
Адрес: Северодвинск
Сообщения: 5,426
Версия Delphi: 7, XE5
Репутация: 59586
|
|
Код:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, ValEdit, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
ValueListEditor1: TValueListEditor;
procedure FormCreate(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
ValueListEditor1.KeyOptions:=[]; // хотя по умолчанию и так
ValueListEditor1.Options:=ValueListEditor1.Options-[goEditing];
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
ValueListEditor1.Values['bill']:='gates';
ValueListEditor1.Values['steven']:='ballmer';
ValueListEditor1.Options:=ValueListEditor1.Options+[goEditing];
end;
end.
__________________
Пишу программы за еду.
__________________
|