-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathStringGrid.inc
57 lines (49 loc) · 1.66 KB
/
StringGrid.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//----------------------------------------
// Copyright Linkonoid. All Rights Reserved.
// linkonoid.com
//----------------------------------------
function StringGrid_Create(AOwner: TComponent): TKGrid; stdcall;
begin
Result := TKGrid.Create(AOwner)
end;
procedure StringGrid_Free(AObj: TKGrid); cdecl;
begin
AObj.Free;
end;
function StringGrid_GetParent(AObj: TKGrid): TWinControl; cdecl;
begin
Result := AObj.Parent;
end;
procedure StringGrid_SetParent(AObj: TKGrid; AValue: TWinControl); cdecl;
begin
AObj.Parent := AValue;
end;
procedure StringGrid_SetLeft(AObj: TKGrid; AValue: Integer); cdecl;
begin
AObj.Left := AValue;
end;
procedure StringGrid_SetTop(AObj: TKGrid; AValue: Integer); cdecl;
begin
AObj.Top := AValue;
end;
procedure StringGrid_Cells(AObj: TKGrid; ACol,ARow :Integer; AValue:PWideChar); cdecl;
//var
//CellData: TCellData;
begin
//CellData := TCellData.Create;
//StateYes := False;
//CellData.Foreground := clBlack;
//CellData.Background := clWhite;
AObj.Col:=ACol;
AObj.Row:=Arow;
AObj.FocusCell(ACol,Arow);
AObj.Cells[ACol,Arow] := AValue;
end;
exports
StringGrid_Create {$IFNDEF MSWINDOWS}name '_StringGrid_Create'{$ENDIF},
StringGrid_Free {$IFNDEF MSWINDOWS}name '_StringGrid_Free'{$ENDIF},
//StringGrid_GetParent {$IFNDEF MSWINDOWS}name '_StringGrid_GetParent'{$ENDIF},
StringGrid_SetParent {$IFNDEF MSWINDOWS}name '_StringGrid_SetParent'{$ENDIF},
StringGrid_SetTop {$IFNDEF MSWINDOWS}name '_StringGrid_SetTop'{$ENDIF},
StringGrid_SetLeft {$IFNDEF MSWINDOWS}name '_StringGrid_SetLeft'{$ENDIF},
StringGrid_Cells {$IFNDEF MSWINDOWS}name '_StringGrid_Cell'{$ENDIF};