-
Notifications
You must be signed in to change notification settings - Fork 4
/
Memo.inc
1133 lines (972 loc) · 33.3 KB
/
Memo.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//----------------------------------------
// ´úÂëÓÉGenlibVcl¹¤¾ß×Ô¶¯Éú³É¡£
// Copyright ? ying32. All Rights Reserved.
//
//----------------------------------------
function Memo_Create(AOwner: TComponent): TMemo; cdecl;
begin
Result := TMemo.Create(AOwner);
end;
procedure Memo_Free(AObj: TMemo); cdecl;
begin
AObj.Free;
end;
procedure Memo_Clear(AObj: TMemo); cdecl;
begin
AObj.Clear;
end;
procedure Memo_ClearSelection(AObj: TMemo); cdecl;
begin
AObj.ClearSelection;
end;
procedure Memo_CopyToClipboard(AObj: TMemo); cdecl;
begin
AObj.CopyToClipboard;
end;
procedure Memo_CutToClipboard(AObj: TMemo); cdecl;
begin
AObj.CutToClipboard;
end;
procedure Memo_PasteFromClipboard(AObj: TMemo); cdecl;
begin
AObj.PasteFromClipboard;
end;
procedure Memo_SelectAll(AObj: TMemo); cdecl;
begin
AObj.SelectAll;
end;
function Memo_GetSelTextBuf(AObj: TMemo; Buffer: PWideChar; BufSize: Integer): Integer; cdecl;
begin
//Result := AObj.GetSelTextBuf(Buffer, BufSize);
end;
function Memo_CanFocus(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.CanFocus;
end;
procedure Memo_FlipChildren(AObj: TMemo; AllLevels: LongBool); cdecl;
begin
AObj.FlipChildren(AllLevels);
end;
function Memo_Focused(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.Focused;
end;
function Memo_HandleAllocated(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.HandleAllocated;
end;
procedure Memo_Invalidate(AObj: TMemo); cdecl;
begin
AObj.Invalidate;
end;
procedure Memo_Realign(AObj: TMemo); cdecl;
begin
AObj.Realign;
end;
procedure Memo_Repaint(AObj: TMemo); cdecl;
begin
AObj.Repaint;
end;
procedure Memo_ScaleBy(AObj: TMemo; M: Integer; D: Integer); cdecl;
begin
AObj.ScaleBy(M, D);
end;
procedure Memo_SetBounds(AObj: TMemo; ALeft: Integer; ATop: Integer; AWidth: Integer; AHeight: Integer); cdecl;
begin
AObj.SetBounds(ALeft, ATop, AWidth, AHeight);
end;
procedure Memo_SetFocus(AObj: TMemo); cdecl;
begin
AObj.SetFocus;
end;
procedure Memo_Update(AObj: TMemo); cdecl;
begin
AObj.Update;
end;
procedure Memo_BringToFront(AObj: TMemo); cdecl;
begin
AObj.BringToFront;
end;
function Memo_HasParent(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.HasParent;
end;
procedure Memo_Hide(AObj: TMemo); cdecl;
begin
AObj.Hide;
end;
function Memo_Perform(AObj: TMemo; Msg: Cardinal; WParam: NativeUInt; LParam: NativeInt): NativeInt; cdecl;
begin
Result := AObj.Perform(Msg, WParam, LParam);
end;
procedure Memo_Refresh(AObj: TMemo); cdecl;
begin
AObj.Refresh;
end;
procedure Memo_SendToBack(AObj: TMemo); cdecl;
begin
AObj.SendToBack;
end;
procedure Memo_Show(AObj: TMemo); cdecl;
begin
AObj.Show;
end;
function Memo_GetTextBuf(AObj: TMemo; Buffer: PWideChar; BufSize: Integer): Integer; cdecl;
begin
Result := AObj.GetTextBuf(PChar(Buffer), BufSize);
end;
function Memo_FindComponent(AObj: TMemo; AName: PWideChar): TComponent; cdecl;
begin
Result := AObj.FindComponent(AName);
end;
function Memo_GetNamePath(AObj: TMemo): PWideChar; cdecl;
begin
Result := PWideChar(AObj.GetNamePath);
end;
procedure Memo_Assign(AObj: TMemo; Source: TPersistent); cdecl;
begin
AObj.Assign(Source);
end;
function Memo_ClassName(AObj: TMemo): PWideChar; cdecl;
begin
Result := ShortstrToPWideChar(AObj.ClassName);
end;
function Memo_Equals(AObj: TMemo; Obj: TObject): LongBool; cdecl;
begin
Result := AObj.Equals(Obj);
end;
function Memo_GetHashCode(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.GetHashCode;
end;
function Memo_ToString(AObj: TMemo): PWideChar; cdecl;
begin
Result := PWideChar(AObj.ToString);
end;
function Memo_GetAlign(AObj: TMemo): TAlign; cdecl;
begin
Result := AObj.Align;
end;
procedure Memo_SetAlign(AObj: TMemo; AValue: TAlign); cdecl;
begin
AObj.Align := AValue;
end;
function Memo_GetAlignment(AObj: TMemo): TAlignment; cdecl;
begin
Result := AObj.Alignment;
end;
procedure Memo_SetAlignment(AObj: TMemo; AValue: TAlignment); cdecl;
begin
AObj.Alignment := AValue;
end;
function Memo_GetAnchors(AObj: TMemo): TAnchors; cdecl;
begin
Result := AObj.Anchors;
end;
procedure Memo_SetAnchors(AObj: TMemo; AValue: TAnchors); cdecl;
begin
AObj.Anchors := AValue;
end;
//function Memo_GetBevelEdges(AObj: TMemo): TBevelEdges; cdecl;
//begin
// Result := AObj.BevelEdges;
//end;
//
//procedure Memo_SetBevelEdges(AObj: TMemo; AValue: TBevelEdges); cdecl;
//begin
// AObj.BevelEdges := AValue;
//end;
//function Memo_GetBevelInner(AObj: TMemo): TBevelCut; cdecl;
//begin
// Result := AObj.BevelInner;
//end;
//
//procedure Memo_SetBevelInner(AObj: TMemo; AValue: TBevelCut); cdecl;
//begin
// AObj.BevelInner := AValue;
//end;
//
//function Memo_GetBevelKind(AObj: TMemo): TBevelKind; cdecl;
//begin
// Result := AObj.BevelKind;
//end;
//
//procedure Memo_SetBevelKind(AObj: TMemo; AValue: TBevelKind); cdecl;
//begin
// AObj.BevelKind := AValue;
//end;
//
//function Memo_GetBevelOuter(AObj: TMemo): TBevelCut; cdecl;
//begin
// Result := AObj.BevelOuter;
//end;
//
//procedure Memo_SetBevelOuter(AObj: TMemo; AValue: TBevelCut); cdecl;
//begin
// AObj.BevelOuter := AValue;
//end;
function Memo_GetBiDiMode(AObj: TMemo): TBiDiMode; cdecl;
begin
Result := AObj.BiDiMode;
end;
procedure Memo_SetBiDiMode(AObj: TMemo; AValue: TBiDiMode); cdecl;
begin
AObj.BiDiMode := AValue;
end;
function Memo_GetBorderStyle(AObj: TMemo): TBorderStyle; cdecl;
begin
Result := AObj.BorderStyle;
end;
procedure Memo_SetBorderStyle(AObj: TMemo; AValue: TBorderStyle); cdecl;
begin
AObj.BorderStyle := AValue;
end;
function Memo_GetColor(AObj: TMemo): TColor; cdecl;
begin
Result := AObj.Color;
end;
procedure Memo_SetColor(AObj: TMemo; AValue: TColor); cdecl;
begin
AObj.Color := AValue;
end;
function Memo_GetDoubleBuffered(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.DoubleBuffered;
end;
procedure Memo_SetDoubleBuffered(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.DoubleBuffered := AValue;
end;
function Memo_GetEnabled(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.Enabled;
end;
procedure Memo_SetEnabled(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.Enabled := AValue;
end;
function Memo_GetFont(AObj: TMemo): TFont; cdecl;
begin
Result := AObj.Font;
end;
procedure Memo_SetFont(AObj: TMemo; AValue: TFont); cdecl;
begin
AObj.Font := AValue;
end;
function Memo_GetHideSelection(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.HideSelection;
end;
procedure Memo_SetHideSelection(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.HideSelection := AValue;
end;
function Memo_GetLines(AObj: TMemo): TStrings; cdecl;
begin
Result := AObj.Lines;
end;
procedure Memo_SetLines(AObj: TMemo; AValue: TStrings); cdecl;
begin
AObj.Lines := AValue;
end;
function Memo_GetMaxLength(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.MaxLength;
end;
procedure Memo_SetMaxLength(AObj: TMemo; AValue: Integer); cdecl;
begin
AObj.MaxLength := AValue;
end;
function Memo_GetParentColor(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.ParentColor;
end;
procedure Memo_SetParentColor(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.ParentColor := AValue;
end;
//function Memo_GetParentCtl3D(AObj: TMemo): LongBool; cdecl;
//begin
// Result := AObj.ParentCtl3D;
//end;
//
//procedure Memo_SetParentCtl3D(AObj: TMemo; AValue: LongBool); cdecl;
//begin
// AObj.ParentCtl3D := AValue;
//end;
//
//function Memo_GetParentDoubleBuffered(AObj: TMemo): LongBool; cdecl;
//begin
// Result := AObj.ParentDoubleBuffered;
//end;
//
//procedure Memo_SetParentDoubleBuffered(AObj: TMemo; AValue: LongBool); cdecl;
//begin
// AObj.ParentDoubleBuffered := AValue;
//end;
function Memo_GetParentFont(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.ParentFont;
end;
procedure Memo_SetParentFont(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.ParentFont := AValue;
end;
function Memo_GetParentShowHint(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.ParentShowHint;
end;
procedure Memo_SetParentShowHint(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.ParentShowHint := AValue;
end;
function Memo_GetPopupMenu(AObj: TMemo): TPopupMenu; cdecl;
begin
Result := AObj.PopupMenu;
end;
procedure Memo_SetPopupMenu(AObj: TMemo; AValue: TPopupMenu); cdecl;
begin
AObj.PopupMenu := AValue;
end;
function Memo_GetReadOnly(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.ReadOnly;
end;
procedure Memo_SetReadOnly(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.ReadOnly := AValue;
end;
function Memo_GetScrollBars(AObj: TMemo): TScrollStyle; cdecl;
begin
Result := AObj.ScrollBars;
end;
procedure Memo_SetScrollBars(AObj: TMemo; AValue: TScrollStyle); cdecl;
begin
AObj.ScrollBars := AValue;
end;
function Memo_GetShowHint(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.ShowHint;
end;
procedure Memo_SetShowHint(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.ShowHint := AValue;
end;
function Memo_GetTabOrder(AObj: TMemo): TTabOrder; cdecl;
begin
Result := AObj.TabOrder;
end;
procedure Memo_SetTabOrder(AObj: TMemo; AValue: TTabOrder); cdecl;
begin
AObj.TabOrder := AValue;
end;
function Memo_GetTabStop(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.TabStop;
end;
procedure Memo_SetTabStop(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.TabStop := AValue;
end;
function Memo_GetVisible(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.Visible;
end;
procedure Memo_SetVisible(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.Visible := AValue;
end;
function Memo_GetWantReturns(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.WantReturns;
end;
procedure Memo_SetWantReturns(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.WantReturns := AValue;
end;
function Memo_GetWantTabs(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.WantTabs;
end;
procedure Memo_SetWantTabs(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.WantTabs := AValue;
end;
function Memo_GetWordWrap(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.WordWrap;
end;
procedure Memo_SetWordWrap(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.WordWrap := AValue;
end;
//function Memo_GetStyleElements(AObj: TMemo): TStyleElements; cdecl;
//begin
// Result := AObj.StyleElements;
//end;
//
//procedure Memo_SetStyleElements(AObj: TMemo; AValue: TStyleElements); cdecl;
//begin
// AObj.StyleElements := AValue;
//end;
procedure Memo_SetOnChange(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnChange := nil;
TEventClass.Remove(AObj, geChange);
Exit;
end;
AObj.OnChange := TEventClass.OnChange;
TEventClass.Add(AObj, geChange, AEventId);
end;
procedure Memo_SetOnClick(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnClick := nil;
TEventClass.Remove(AObj, geClick);
Exit;
end;
AObj.OnClick := TEventClass.OnClick;
TEventClass.Add(AObj, geClick, AEventId);
end;
procedure Memo_SetOnDblClick(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnDblClick := nil;
TEventClass.Remove(AObj, geDblClick);
Exit;
end;
AObj.OnDblClick := TEventClass.OnDblClick;
TEventClass.Add(AObj, geDblClick, AEventId);
end;
procedure Memo_SetOnEnter(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnEnter := nil;
TEventClass.Remove(AObj, geEnter);
Exit;
end;
AObj.OnEnter := TEventClass.OnEnter;
TEventClass.Add(AObj, geEnter, AEventId);
end;
procedure Memo_SetOnExit(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnExit := nil;
TEventClass.Remove(AObj, geExit);
Exit;
end;
AObj.OnExit := TEventClass.OnExit;
TEventClass.Add(AObj, geExit, AEventId);
end;
procedure Memo_SetOnKeyDown(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnKeyDown := nil;
TEventClass.Remove(AObj, geKeyDown);
Exit;
end;
AObj.OnKeyDown := TEventClass.OnKeyDown;
TEventClass.Add(AObj, geKeyDown, AEventId);
end;
procedure Memo_SetOnKeyPress(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnKeyPress := nil;
TEventClass.Remove(AObj, geKeyPress);
Exit;
end;
AObj.OnKeyPress := TEventClass.OnKeyPress;
TEventClass.Add(AObj, geKeyPress, AEventId);
end;
procedure Memo_SetOnKeyUp(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnKeyUp := nil;
TEventClass.Remove(AObj, geKeyUp);
Exit;
end;
AObj.OnKeyUp := TEventClass.OnKeyUp;
TEventClass.Add(AObj, geKeyUp, AEventId);
end;
procedure Memo_SetOnMouseDown(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseDown := nil;
TEventClass.Remove(AObj, geMouseDown);
Exit;
end;
AObj.OnMouseDown := TEventClass.OnMouseDown;
TEventClass.Add(AObj, geMouseDown, AEventId);
end;
procedure Memo_SetOnMouseEnter(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseEnter := nil;
TEventClass.Remove(AObj, geMouseEnter);
Exit;
end;
AObj.OnMouseEnter := TEventClass.OnMouseEnter;
TEventClass.Add(AObj, geMouseEnter, AEventId);
end;
procedure Memo_SetOnMouseLeave(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseLeave := nil;
TEventClass.Remove(AObj, geMouseLeave);
Exit;
end;
AObj.OnMouseLeave := TEventClass.OnMouseLeave;
TEventClass.Add(AObj, geMouseLeave, AEventId);
end;
procedure Memo_SetOnMouseMove(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseMove := nil;
TEventClass.Remove(AObj, geMouseMove);
Exit;
end;
AObj.OnMouseMove := TEventClass.OnMouseMove;
TEventClass.Add(AObj, geMouseMove, AEventId);
end;
procedure Memo_SetOnMouseUp(AObj: TMemo; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseUp := nil;
TEventClass.Remove(AObj, geMouseUp);
Exit;
end;
AObj.OnMouseUp := TEventClass.OnMouseUp;
TEventClass.Add(AObj, geMouseUp, AEventId);
end;
procedure Memo_GetCaretPos(AObj: TMemo; var Result: TPoint); cdecl;
begin
Result := AObj.CaretPos;
end;
procedure Memo_SetCaretPos(AObj: TMemo; var AValue: TPoint); cdecl;
begin
AObj.CaretPos := AValue;
end;
function Memo_GetModified(AObj: TMemo): LongBool; cdecl;
begin
Result := AObj.Modified;
end;
procedure Memo_SetModified(AObj: TMemo; AValue: LongBool); cdecl;
begin
AObj.Modified := AValue;
end;
function Memo_GetSelLength(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.SelLength;
end;
procedure Memo_SetSelLength(AObj: TMemo; AValue: Integer); cdecl;
begin
AObj.SelLength := AValue;
end;
function Memo_GetSelStart(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.SelStart;
end;
procedure Memo_SetSelStart(AObj: TMemo; AValue: Integer); cdecl;
begin
AObj.SelStart := AValue;
end;
function Memo_GetSelText(AObj: TMemo): PWideChar; cdecl;
begin
Result := PWideChar(AObj.SelText);
end;
procedure Memo_SetSelText(AObj: TMemo; AValue: PWideChar); cdecl;
begin
AObj.SelText := AValue;
end;
function Memo_GetText(AObj: TMemo): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Text);
end;
procedure Memo_SetText(AObj: TMemo; AValue: PWideChar); cdecl;
begin
AObj.Text := AValue;
end;
function Memo_GetTextHint(AObj: TMemo): PWideChar; cdecl;
begin
Result := PWideChar(AObj.TextHint);
end;
procedure Memo_SetTextHint(AObj: TMemo; AValue: PWideChar); cdecl;
begin
AObj.TextHint := AValue;
end;
function Memo_GetBrush(AObj: TMemo): TBrush; cdecl;
begin
Result := AObj.Brush;
end;
function Memo_GetControlCount(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.ControlCount;
end;
function Memo_GetHandle(AObj: TMemo): HWND; cdecl;
begin
Result := AObj.Handle;
end;
function Memo_GetParentWindow(AObj: TMemo): HWND; cdecl;
begin
Result := AObj.ParentWindow;
end;
procedure Memo_SetParentWindow(AObj: TMemo; AValue: HWND); cdecl;
begin
AObj.ParentWindow := AValue;
end;
function Memo_GetAction(AObj: TMemo): TBasicAction; cdecl;
begin
Result := AObj.Action;
end;
procedure Memo_SetAction(AObj: TMemo; AValue: TBasicAction); cdecl;
begin
AObj.Action := AValue;
end;
procedure Memo_GetBoundsRect(AObj: TMemo; var Result: TRect); cdecl;
begin
Result := AObj.BoundsRect;
end;
procedure Memo_SetBoundsRect(AObj: TMemo; var AValue: TRect); cdecl;
begin
AObj.BoundsRect := AValue;
end;
function Memo_GetClientHeight(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.ClientHeight;
end;
procedure Memo_SetClientHeight(AObj: TMemo; AValue: Integer); cdecl;
begin
AObj.ClientHeight := AValue;
end;
procedure Memo_GetClientRect(AObj: TMemo; var Result: TRect); cdecl;
begin
Result := AObj.ClientRect;
end;
function Memo_GetClientWidth(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.ClientWidth;
end;
procedure Memo_SetClientWidth(AObj: TMemo; AValue: Integer); cdecl;
begin
AObj.ClientWidth := AValue;
end;
//function Memo_GetExplicitLeft(AObj: TMemo): Integer; cdecl;
//begin
// Result := AObj.ExplicitLeft;
//end;
//
//function Memo_GetExplicitTop(AObj: TMemo): Integer; cdecl;
//begin
// Result := AObj.ExplicitTop;
//end;
//
//function Memo_GetExplicitWidth(AObj: TMemo): Integer; cdecl;
//begin
// Result := AObj.ExplicitWidth;
//end;
//
//function Memo_GetExplicitHeight(AObj: TMemo): Integer; cdecl;
//begin
// Result := AObj.ExplicitHeight;
//end;
function Memo_GetParent(AObj: TMemo): TWinControl; cdecl;
begin
Result := AObj.Parent;
end;
procedure Memo_SetParent(AObj: TMemo; AValue: TWinControl); cdecl;
begin
AObj.Parent := AValue;
end;
//function Memo_GetAlignWithMargins(AObj: TMemo): LongBool; cdecl;
//begin
// Result := AObj.AlignWithMargins;
//end;
//
//procedure Memo_SetAlignWithMargins(AObj: TMemo; AValue: LongBool); cdecl;
//begin
// AObj.AlignWithMargins := AValue;
//end;
function Memo_GetLeft(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.Left;
end;
procedure Memo_SetLeft(AObj: TMemo; AValue: Integer); cdecl;
begin
AObj.Left := AValue;
end;
function Memo_GetTop(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.Top;
end;
procedure Memo_SetTop(AObj: TMemo; AValue: Integer); cdecl;
begin
AObj.Top := AValue;
end;
function Memo_GetWidth(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.Width;
end;
procedure Memo_SetWidth(AObj: TMemo; AValue: Integer); cdecl;
begin
AObj.Width := AValue;
end;
function Memo_GetHeight(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.Height;
end;
procedure Memo_SetHeight(AObj: TMemo; AValue: Integer); cdecl;
begin
AObj.Height := AValue;
end;
function Memo_GetCursor(AObj: TMemo): TCursor; cdecl;
begin
Result := AObj.Cursor;
end;
procedure Memo_SetCursor(AObj: TMemo; AValue: TCursor); cdecl;
begin
AObj.Cursor := AValue;
end;
function Memo_GetHint(AObj: TMemo): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Hint);
end;
procedure Memo_SetHint(AObj: TMemo; AValue: PWideChar); cdecl;
begin
AObj.Hint := AValue;
end;
//function Memo_GetMargins(AObj: TMemo): TMargins; cdecl;
//begin
// Result := AObj.Margins;
//end;
//
//procedure Memo_SetMargins(AObj: TMemo; AValue: TMargins); cdecl;
//begin
// AObj.Margins := AValue;
//end;
function Memo_GetComponentCount(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.ComponentCount;
end;
function Memo_GetComponentIndex(AObj: TMemo): Integer; cdecl;
begin
Result := AObj.ComponentIndex;
end;
procedure Memo_SetComponentIndex(AObj: TMemo; AValue: Integer); cdecl;
begin
AObj.ComponentIndex := AValue;
end;
function Memo_GetOwner(AObj: TMemo): TComponent; cdecl;
begin
Result := AObj.Owner;
end;
function Memo_GetName(AObj: TMemo): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Name);
end;
procedure Memo_SetName(AObj: TMemo; AValue: PWideChar); cdecl;
begin
AObj.Name := AValue;
end;
function Memo_GetTag(AObj: TMemo): NativeInt; cdecl;
begin
Result := AObj.Tag;
end;
procedure Memo_SetTag(AObj: TMemo; AValue: NativeInt); cdecl;
begin
AObj.Tag := AValue;
end;
function Memo_GetControls(AObj: TMemo; Index: Integer): TControl; cdecl;
begin
Result := AObj.Controls[Index];
end;
function Memo_GetComponents(AObj: TMemo; AIndex: Integer): TComponent; cdecl;
begin
Result := AObj.Components[AIndex];
end;
exports
Memo_Create {$IFNDEF MSWINDOWS}name '_Memo_Create'{$ENDIF},
Memo_Free {$IFNDEF MSWINDOWS}name '_Memo_Free'{$ENDIF},
Memo_Clear {$IFNDEF MSWINDOWS}name '_Memo_Clear'{$ENDIF},
Memo_ClearSelection {$IFNDEF MSWINDOWS}name '_Memo_ClearSelection'{$ENDIF},
Memo_CopyToClipboard {$IFNDEF MSWINDOWS}name '_Memo_CopyToClipboard'{$ENDIF},
Memo_CutToClipboard {$IFNDEF MSWINDOWS}name '_Memo_CutToClipboard'{$ENDIF},
Memo_PasteFromClipboard {$IFNDEF MSWINDOWS}name '_Memo_PasteFromClipboard'{$ENDIF},
Memo_SelectAll {$IFNDEF MSWINDOWS}name '_Memo_SelectAll'{$ENDIF},
Memo_GetSelTextBuf {$IFNDEF MSWINDOWS}name '_Memo_GetSelTextBuf'{$ENDIF},
Memo_CanFocus {$IFNDEF MSWINDOWS}name '_Memo_CanFocus'{$ENDIF},
Memo_FlipChildren {$IFNDEF MSWINDOWS}name '_Memo_FlipChildren'{$ENDIF},
Memo_Focused {$IFNDEF MSWINDOWS}name '_Memo_Focused'{$ENDIF},
Memo_HandleAllocated {$IFNDEF MSWINDOWS}name '_Memo_HandleAllocated'{$ENDIF},
Memo_Invalidate {$IFNDEF MSWINDOWS}name '_Memo_Invalidate'{$ENDIF},
Memo_Realign {$IFNDEF MSWINDOWS}name '_Memo_Realign'{$ENDIF},
Memo_Repaint {$IFNDEF MSWINDOWS}name '_Memo_Repaint'{$ENDIF},
Memo_ScaleBy {$IFNDEF MSWINDOWS}name '_Memo_ScaleBy'{$ENDIF},
Memo_SetBounds {$IFNDEF MSWINDOWS}name '_Memo_SetBounds'{$ENDIF},
Memo_SetFocus {$IFNDEF MSWINDOWS}name '_Memo_SetFocus'{$ENDIF},
Memo_Update {$IFNDEF MSWINDOWS}name '_Memo_Update'{$ENDIF},
Memo_BringToFront {$IFNDEF MSWINDOWS}name '_Memo_BringToFront'{$ENDIF},
Memo_HasParent {$IFNDEF MSWINDOWS}name '_Memo_HasParent'{$ENDIF},
Memo_Hide {$IFNDEF MSWINDOWS}name '_Memo_Hide'{$ENDIF},
Memo_Perform {$IFNDEF MSWINDOWS}name '_Memo_Perform'{$ENDIF},
Memo_Refresh {$IFNDEF MSWINDOWS}name '_Memo_Refresh'{$ENDIF},
Memo_SendToBack {$IFNDEF MSWINDOWS}name '_Memo_SendToBack'{$ENDIF},
Memo_Show {$IFNDEF MSWINDOWS}name '_Memo_Show'{$ENDIF},
Memo_GetTextBuf {$IFNDEF MSWINDOWS}name '_Memo_GetTextBuf'{$ENDIF},
Memo_FindComponent {$IFNDEF MSWINDOWS}name '_Memo_FindComponent'{$ENDIF},
Memo_GetNamePath {$IFNDEF MSWINDOWS}name '_Memo_GetNamePath'{$ENDIF},
Memo_Assign {$IFNDEF MSWINDOWS}name '_Memo_Assign'{$ENDIF},
Memo_ClassName {$IFNDEF MSWINDOWS}name '_Memo_ClassName'{$ENDIF},
Memo_Equals {$IFNDEF MSWINDOWS}name '_Memo_Equals'{$ENDIF},
Memo_GetHashCode {$IFNDEF MSWINDOWS}name '_Memo_GetHashCode'{$ENDIF},
Memo_ToString {$IFNDEF MSWINDOWS}name '_Memo_ToString'{$ENDIF},
Memo_GetAlign {$IFNDEF MSWINDOWS}name '_Memo_GetAlign'{$ENDIF},
Memo_SetAlign {$IFNDEF MSWINDOWS}name '_Memo_SetAlign'{$ENDIF},
Memo_GetAlignment {$IFNDEF MSWINDOWS}name '_Memo_GetAlignment'{$ENDIF},
Memo_SetAlignment {$IFNDEF MSWINDOWS}name '_Memo_SetAlignment'{$ENDIF},
Memo_GetAnchors {$IFNDEF MSWINDOWS}name '_Memo_GetAnchors'{$ENDIF},