<quote>Det var nu den value, som var markeret/selectet.
Med venlig hilsen
Mikkel Bøg Clemmensen
mt.clemmensen@vip.cybercity.dk
</quote>
<b> Hvad så med dette her (?): </b>
----------------------------------------------------------------------
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Grids, ValEdit;
type
TForm1 = class(TForm)
ValueListEditor1: TValueListEditor;
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure ValueListEditor1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean);
private
fCol, fRow: Integer;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
Caption := ValueListEditor1.Cells[fCol, fRow];
end;
procedure TForm1.ValueListEditor1SelectCell(Sender: TObject; ACol, ARow: Integer; var CanSelect: Boolean);
begin
fCol := aCol;
fRow := aRow;
end;
end.
----------------------------------------------------------------------
Mvh.
Lars Haslev
Always Look On The Bright Side Of Life! :-)
*********************************