-
Notifications
You must be signed in to change notification settings - Fork 4
/
Form.inc
1110 lines (943 loc) · 32.5 KB
/
Form.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 Form_Create(AOwner: TComponent): TForm; cdecl;
begin
Result := TForm.Create(AOwner);
end;
procedure Form_Free(AObj: TForm); cdecl;
begin
AObj.Free;
end;
procedure Form_Close(AObj: TForm); cdecl;
begin
AObj.Close;
end;
procedure Form_Hide(AObj: TForm); cdecl;
begin
AObj.Hide;
end;
procedure Form_Print(AObj: TForm); cdecl;
begin
//AObj.Print;
end;
procedure Form_SetFocus(AObj: TForm); cdecl;
begin
AObj.SetFocus;
end;
procedure Form_Show(AObj: TForm); cdecl;
begin
AObj.Show;
end;
function Form_ShowModal(AObj: TForm): Integer; cdecl;
begin
Result := AObj.ShowModal;
end;
function Form_CanFocus(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.CanFocus;
end;
procedure Form_FlipChildren(AObj: TForm; AllLevels: LongBool); cdecl;
begin
AObj.FlipChildren(AllLevels);
end;
function Form_Focused(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.Focused;
end;
function Form_HandleAllocated(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.HandleAllocated;
end;
procedure Form_Invalidate(AObj: TForm); cdecl;
begin
AObj.Invalidate;
end;
procedure Form_Realign(AObj: TForm); cdecl;
begin
AObj.Realign;
end;
procedure Form_Repaint(AObj: TForm); cdecl;
begin
AObj.Repaint;
end;
procedure Form_ScaleBy(AObj: TForm; M: Integer; D: Integer); cdecl;
begin
AObj.ScaleBy(M, D);
end;
procedure Form_SetBounds(AObj: TForm; ALeft: Integer; ATop: Integer; AWidth: Integer; AHeight: Integer); cdecl;
begin
AObj.SetBounds(ALeft, ATop, AWidth, AHeight);
end;
procedure Form_Update(AObj: TForm); cdecl;
begin
AObj.Update;
end;
procedure Form_BringToFront(AObj: TForm); cdecl;
begin
AObj.BringToFront;
end;
function Form_HasParent(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.HasParent;
end;
function Form_Perform(AObj: TForm; Msg: Cardinal; WParam: NativeUInt; LParam: NativeInt): NativeInt; cdecl;
begin
Result := AObj.Perform(Msg, WParam, LParam);
end;
procedure Form_Refresh(AObj: TForm); cdecl;
begin
AObj.Refresh;
end;
procedure Form_SendToBack(AObj: TForm); cdecl;
begin
AObj.SendToBack;
end;
function Form_GetTextBuf(AObj: TForm; Buffer: PWideChar; BufSize: Integer): Integer; cdecl;
begin
Result := AObj.GetTextBuf(PChar(Buffer), BufSize);
end;
function Form_FindComponent(AObj: TForm; AName: PWideChar): TComponent; cdecl;
begin
Result := AObj.FindComponent(AName);
end;
function Form_GetNamePath(AObj: TForm): PWideChar; cdecl;
begin
Result := PWideChar(AObj.GetNamePath);
end;
procedure Form_Assign(AObj: TForm; Source: TPersistent); cdecl;
begin
AObj.Assign(Source);
end;
function Form_ClassName(AObj: TForm): PWideChar; cdecl;
begin
//Max.S.Barulin****************************
// Result := PWideChar(AObj.ClassName);
Result := ShortstrToPWideChar(AObj.ClassName);
//*****************************************
end;
function Form_Equals(AObj: TForm; Obj: TObject): LongBool; cdecl;
begin
Result := AObj.Equals(Obj);
end;
function Form_GetHashCode(AObj: TForm): Integer; cdecl;
begin
Result := AObj.GetHashCode;
end;
function Form_ToString(AObj: TForm): PWideChar; cdecl;
begin
Result := PWideChar(AObj.ToString);
end;
function Form_GetAction(AObj: TForm): TBasicAction; cdecl;
begin
Result := AObj.Action;
end;
procedure Form_SetAction(AObj: TForm; AValue: TBasicAction); cdecl;
begin
AObj.Action := AValue;
end;
function Form_GetAlign(AObj: TForm): TAlign; cdecl;
begin
Result := AObj.Align;
end;
procedure Form_SetAlign(AObj: TForm; AValue: TAlign); cdecl;
begin
AObj.Align := AValue;
end;
function Form_GetAlphaBlend(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.AlphaBlend;
end;
procedure Form_SetAlphaBlend(AObj: TForm; AValue: LongBool); cdecl;
begin
AObj.AlphaBlend := AValue;
end;
function Form_GetAlphaBlendValue(AObj: TForm): Byte; cdecl;
begin
Result := AObj.AlphaBlendValue;
end;
procedure Form_SetAlphaBlendValue(AObj: TForm; AValue: Byte); cdecl;
begin
AObj.AlphaBlendValue := AValue;
end;
function Form_GetAnchors(AObj: TForm): TAnchors; cdecl;
begin
Result := AObj.Anchors;
end;
procedure Form_SetAnchors(AObj: TForm; AValue: TAnchors); cdecl;
begin
AObj.Anchors := AValue;
end;
function Form_GetAutoSize(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.AutoSize;
end;
procedure Form_SetAutoSize(AObj: TForm; AValue: LongBool); cdecl;
begin
AObj.AutoSize := AValue;
end;
function Form_GetBiDiMode(AObj: TForm): TBiDiMode; cdecl;
begin
Result := AObj.BiDiMode;
end;
procedure Form_SetBiDiMode(AObj: TForm; AValue: TBiDiMode); cdecl;
begin
AObj.BiDiMode := AValue;
end;
function Form_GetBorderIcons(AObj: TForm): TBorderIcons; cdecl;
begin
Result := AObj.BorderIcons;
end;
procedure Form_SetBorderIcons(AObj: TForm; AValue: TBorderIcons); cdecl;
begin
AObj.BorderIcons := AValue;
end;
function Form_GetBorderStyle(AObj: TForm): TFormBorderStyle; cdecl;
begin
Result := AObj.BorderStyle;
end;
procedure Form_SetBorderStyle(AObj: TForm; AValue: TFormBorderStyle); cdecl;
begin
AObj.BorderStyle := AValue;
end;
function Form_GetBorderWidth(AObj: TForm): TBorderWidth; cdecl;
begin
Result := AObj.BorderWidth;
end;
procedure Form_SetBorderWidth(AObj: TForm; AValue: TBorderWidth); cdecl;
begin
AObj.BorderWidth := AValue;
end;
function Form_GetCaption(AObj: TForm): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Caption);
end;
procedure Form_SetCaption(AObj: TForm; AValue: PWideChar); cdecl;
begin
AObj.Caption := AValue;
end;
function Form_GetClientHeight(AObj: TForm): Integer; cdecl;
begin
Result := AObj.ClientHeight;
end;
procedure Form_SetClientHeight(AObj: TForm; AValue: Integer); cdecl;
begin
AObj.ClientHeight := AValue;
end;
function Form_GetClientWidth(AObj: TForm): Integer; cdecl;
begin
Result := AObj.ClientWidth;
end;
procedure Form_SetClientWidth(AObj: TForm; AValue: Integer); cdecl;
begin
AObj.ClientWidth := AValue;
end;
function Form_GetColor(AObj: TForm): TColor; cdecl;
begin
Result := AObj.Color;
end;
procedure Form_SetColor(AObj: TForm; AValue: TColor); cdecl;
begin
AObj.Color := AValue;
end;
function Form_GetTransparentColor(AObj: TForm): LongBool; cdecl;
begin
//Result := AObj.TransparentColor;
end;
procedure Form_SetTransparentColor(AObj: TForm; AValue: LongBool); cdecl;
begin
//AObj.TransparentColor := AValue;
end;
function Form_GetTransparentColorValue(AObj: TForm): TColor; cdecl;
begin
//Result := AObj.TransparentColorValue;
end;
procedure Form_SetTransparentColorValue(AObj: TForm; AValue: TColor); cdecl;
begin
//AObj.TransparentColorValue := AValue;
end;
function Form_GetDoubleBuffered(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.DoubleBuffered;
end;
procedure Form_SetDoubleBuffered(AObj: TForm; AValue: LongBool); cdecl;
begin
AObj.DoubleBuffered := AValue;
end;
function Form_GetEnabled(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.Enabled;
end;
procedure Form_SetEnabled(AObj: TForm; AValue: LongBool); cdecl;
begin
AObj.Enabled := AValue;
end;
function Form_GetParentFont(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.ParentFont;
end;
procedure Form_SetParentFont(AObj: TForm; AValue: LongBool); cdecl;
begin
AObj.ParentFont := AValue;
end;
function Form_GetFont(AObj: TForm): TFont; cdecl;
begin
Result := AObj.Font;
end;
procedure Form_SetFont(AObj: TForm; AValue: TFont); cdecl;
begin
AObj.Font := AValue;
end;
function Form_GetFormStyle(AObj: TForm): TFormStyle; cdecl;
begin
Result := AObj.FormStyle;
end;
procedure Form_SetFormStyle(AObj: TForm; AValue: TFormStyle); cdecl;
begin
AObj.FormStyle := AValue;
end;
function Form_GetHeight(AObj: TForm): Integer; cdecl;
begin
Result := AObj.Height;
end;
procedure Form_SetHeight(AObj: TForm; AValue: Integer); cdecl;
begin
AObj.Height := AValue;
end;
function Form_GetIcon(AObj: TForm): TIcon; cdecl;
begin
Result := AObj.Icon;
end;
procedure Form_SetIcon(AObj: TForm; AValue: TIcon); cdecl;
begin
AObj.Icon := AValue;
end;
function Form_GetKeyPreview(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.KeyPreview;
end;
procedure Form_SetKeyPreview(AObj: TForm; AValue: LongBool); cdecl;
begin
AObj.KeyPreview := AValue;
end;
function Form_GetMenu(AObj: TForm): TMainMenu; cdecl;
begin
//Result := AObj.Menu;
end;
procedure Form_SetMenu(AObj: TForm; AValue: TMainMenu); cdecl;
begin
AObj.Menu := AValue;
end;
function Form_GetPixelsPerInch(AObj: TForm): Integer; cdecl;
begin
Result := AObj.PixelsPerInch;
end;
procedure Form_SetPixelsPerInch(AObj: TForm; AValue: Integer); cdecl;
begin
AObj.PixelsPerInch := AValue;
end;
function Form_GetPopupMenu(AObj: TForm): TPopupMenu; cdecl;
begin
Result := AObj.PopupMenu;
end;
procedure Form_SetPopupMenu(AObj: TForm; AValue: TPopupMenu); cdecl;
begin
AObj.PopupMenu := AValue;
end;
function Form_GetPosition(AObj: TForm): TPosition; cdecl;
begin
Result := AObj.Position;
end;
procedure Form_SetPosition(AObj: TForm; AValue: TPosition); cdecl;
begin
AObj.Position := AValue;
end;
function Form_GetScaled(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.Scaled;
end;
procedure Form_SetScaled(AObj: TForm; AValue: LongBool); cdecl;
begin
AObj.Scaled := AValue;
end;
function Form_GetShowHint(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.ShowHint;
end;
procedure Form_SetShowHint(AObj: TForm; AValue: LongBool); cdecl;
begin
AObj.ShowHint := AValue;
end;
function Form_GetVisible(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.Visible;
end;
procedure Form_SetVisible(AObj: TForm; AValue: LongBool); cdecl;
begin
AObj.Visible := AValue;
end;
function Form_GetWidth(AObj: TForm): Integer; cdecl;
begin
Result := AObj.Width;
end;
procedure Form_SetWidth(AObj: TForm; AValue: Integer); cdecl;
begin
AObj.Width := AValue;
end;
function Form_GetWindowState(AObj: TForm): TWindowState; cdecl;
begin
Result := AObj.WindowState;
end;
procedure Form_SetWindowState(AObj: TForm; AValue: TWindowState); cdecl;
begin
AObj.WindowState := AValue;
end;
//function Form_GetStyleElements(AObj: TForm): TStyleElements; cdecl;
//begin
//Result := AObj.StyleElements;
//end;
//procedure Form_SetStyleElements(AObj: TForm; AValue: TStyleElements); cdecl;
//begin
// AObj.StyleElements := AValue;
//end;
procedure Form_SetOnClick(AObj: TForm; 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 Form_SetOnClose(AObj: TForm; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnClose := nil;
TEventClass.Remove(AObj, geFormClose);
Exit;
end;
AObj.OnClose := TEventClass.FormOnClose;
TEventClass.Add(AObj, geFormClose, AEventId);
end;
procedure Form_SetOnCloseQuery(AObj: TForm; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnCloseQuery := nil;
TEventClass.Remove(AObj, geFormCloseQuery);
Exit;
end;
AObj.OnCloseQuery := TEventClass.FormOnCloseQuery;
TEventClass.Add(AObj, geFormCloseQuery, AEventId);
end;
procedure Form_SetOnDblClick(AObj: TForm; 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 Form_SetOnHide(AObj: TForm; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnHide := nil;
TEventClass.Remove(AObj, geHide);
Exit;
end;
AObj.OnHide := TEventClass.OnHide;
TEventClass.Add(AObj, geHide, AEventId);
end;
procedure Form_SetOnKeyDown(AObj: TForm; 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 Form_SetOnKeyPress(AObj: TForm; 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 Form_SetOnKeyUp(AObj: TForm; 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 Form_SetOnMouseDown(AObj: TForm; 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 Form_SetOnMouseEnter(AObj: TForm; 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 Form_SetOnMouseLeave(AObj: TForm; 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 Form_SetOnMouseMove(AObj: TForm; 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 Form_SetOnMouseUp(AObj: TForm; 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 Form_SetOnMouseWheel(AObj: TForm; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnMouseWheel := nil;
TEventClass.Remove(AObj, geMouseWheel);
Exit;
end;
AObj.OnMouseWheel := TEventClass.OnMouseWheel;
TEventClass.Add(AObj, geMouseWheel, AEventId);
end;
procedure Form_SetOnPaint(AObj: TForm; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnPaint := nil;
TEventClass.Remove(AObj, gePaint);
Exit;
end;
AObj.OnPaint := TEventClass.OnPaint;
TEventClass.Add(AObj, gePaint, AEventId);
end;
procedure Form_SetOnResize(AObj: TForm; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnResize := nil;
TEventClass.Remove(AObj, geResize);
Exit;
end;
AObj.OnResize := TEventClass.OnResize;
TEventClass.Add(AObj, geResize, AEventId);
end;
procedure Form_SetOnShow(AObj: TForm; AEventId: NativeUInt); stdcall;
begin
if AEventId = 0 then
begin
AObj.OnShow := nil;
TEventClass.Remove(AObj, geShow);
Exit;
end;
AObj.OnShow := TEventClass.OnShow;
TEventClass.Add(AObj, geShow, AEventId);
end;
function Form_GetCanvas(AObj: TForm): TCanvas; cdecl;
begin
Result := AObj.Canvas;
end;
function Form_GetDropTarget(AObj: TForm): LongBool; cdecl;
begin
//Result := AObj.DropTarget;
end;
procedure Form_SetDropTarget(AObj: TForm; AValue: LongBool); cdecl;
begin
//AObj.DropTarget := AValue;
end;
function Form_GetModalResult(AObj: TForm): TModalResult; cdecl;
begin
Result := AObj.ModalResult;
end;
procedure Form_SetModalResult(AObj: TForm; AValue: TModalResult); cdecl;
begin
AObj.ModalResult := AValue;
end;
function Form_GetLeft(AObj: TForm): Integer; cdecl;
begin
Result := AObj.Left;
end;
procedure Form_SetLeft(AObj: TForm; AValue: Integer); cdecl;
begin
AObj.Left := AValue;
end;
function Form_GetTop(AObj: TForm): Integer; cdecl;
begin
Result := AObj.Top;
end;
procedure Form_SetTop(AObj: TForm; AValue: Integer); cdecl;
begin
AObj.Top := AValue;
end;
function Form_GetBrush(AObj: TForm): TBrush; cdecl;
begin
Result := AObj.Brush;
end;
function Form_GetControlCount(AObj: TForm): Integer; cdecl;
begin
Result := AObj.ControlCount;
end;
function Form_GetHandle(AObj: TForm): HWND; cdecl;
begin
Result := AObj.Handle;
end;
function Form_GetParentDoubleBuffered(AObj: TForm): LongBool; cdecl;
begin
//Result := AObj.ParentDoubleBuffered;
end;
procedure Form_SetParentDoubleBuffered(AObj: TForm; AValue: LongBool); cdecl;
begin
//AObj.ParentDoubleBuffered := AValue;
end;
function Form_GetParentWindow(AObj: TForm): HWND; cdecl;
begin
Result := AObj.ParentWindow;
end;
procedure Form_SetParentWindow(AObj: TForm; AValue: HWND); cdecl;
begin
AObj.ParentWindow := AValue;
end;
function Form_GetTabOrder(AObj: TForm): TTabOrder; cdecl;
begin
Result := AObj.TabOrder;
end;
procedure Form_SetTabOrder(AObj: TForm; AValue: TTabOrder); cdecl;
begin
AObj.TabOrder := AValue;
end;
function Form_GetTabStop(AObj: TForm): LongBool; cdecl;
begin
Result := AObj.TabStop;
end;
procedure Form_SetTabStop(AObj: TForm; AValue: LongBool); cdecl;
begin
AObj.TabStop := AValue;
end;
procedure Form_GetBoundsRect(AObj: TForm; var Result: TRect); cdecl;
begin
Result := AObj.BoundsRect;
end;
procedure Form_SetBoundsRect(AObj: TForm; var AValue: TRect); cdecl;
begin
AObj.BoundsRect := AValue;
end;
procedure Form_GetClientRect(AObj: TForm; var Result: TRect); cdecl;
begin
Result := AObj.ClientRect;
end;
function Form_GetExplicitLeft(AObj: TForm): Integer; cdecl;
begin
//Result := AObj.ExplicitLeft;
end;
function Form_GetExplicitTop(AObj: TForm): Integer; cdecl;
begin
//Result := AObj.ExplicitTop;
end;
function Form_GetExplicitWidth(AObj: TForm): Integer; cdecl;
begin
//Result := AObj.ExplicitWidth;
end;
function Form_GetExplicitHeight(AObj: TForm): Integer; cdecl;
begin
//Result := AObj.ExplicitHeight;
end;
function Form_GetParent(AObj: TForm): TWinControl; cdecl;
begin
Result := AObj.Parent;
end;
procedure Form_SetParent(AObj: TForm; AValue: TWinControl); cdecl;
begin
AObj.Parent := AValue;
end;
function Form_GetAlignWithMargins(AObj: TForm): LongBool; cdecl;
begin
//Result := AObj.AlignWithMargins;
end;
procedure Form_SetAlignWithMargins(AObj: TForm; AValue: LongBool); cdecl;
begin
//AObj.AlignWithMargins := AValue;
end;
function Form_GetCursor(AObj: TForm): TCursor; cdecl;
begin
Result := AObj.Cursor;
end;
procedure Form_SetCursor(AObj: TForm; AValue: TCursor); cdecl;
begin
AObj.Cursor := AValue;
end;
function Form_GetHint(AObj: TForm): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Hint);
end;
procedure Form_SetHint(AObj: TForm; AValue: PWideChar); cdecl;
begin
AObj.Hint := AValue;
end;
//function Form_GetMargins(AObj: TForm): TMargins; cdecl;
//begin
// Result := AObj.Margins;
//end;
//procedure Form_SetMargins(AObj: TForm; AValue: TMargins); cdecl;
//begin
// AObj.Margins := AValue;
//end;
function Form_GetComponentCount(AObj: TForm): Integer; cdecl;
begin
Result := AObj.ComponentCount;
end;
function Form_GetComponentIndex(AObj: TForm): Integer; cdecl;
begin
Result := AObj.ComponentIndex;
end;
procedure Form_SetComponentIndex(AObj: TForm; AValue: Integer); cdecl;
begin
AObj.ComponentIndex := AValue;
end;
function Form_GetOwner(AObj: TForm): TComponent; cdecl;
begin
Result := AObj.Owner;
end;
function Form_GetName(AObj: TForm): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Name);
end;
procedure Form_SetName(AObj: TForm; AValue: PWideChar); cdecl;
begin
AObj.Name := AValue;
end;
function Form_GetTag(AObj: TForm): NativeInt; cdecl;
begin
Result := AObj.Tag;
end;
procedure Form_SetTag(AObj: TForm; AValue: NativeInt); cdecl;
begin
AObj.Tag := AValue;
end;
function Form_GetControls(AObj: TForm; Index: Integer): TControl; cdecl;
begin
Result := AObj.Controls[Index];
end;
function Form_GetComponents(AObj: TForm; AIndex: Integer): TComponent; cdecl;
begin
Result := AObj.Components[AIndex];
end;
exports
Form_Create {$IFNDEF MSWINDOWS}name '_Form_Create'{$ENDIF},
Form_Free {$IFNDEF MSWINDOWS}name '_Form_Free'{$ENDIF},
Form_Close {$IFNDEF MSWINDOWS}name '_Form_Close'{$ENDIF},
Form_Hide {$IFNDEF MSWINDOWS}name '_Form_Hide'{$ENDIF},
Form_Print {$IFNDEF MSWINDOWS}name '_Form_Print'{$ENDIF},
Form_SetFocus {$IFNDEF MSWINDOWS}name '_Form_SetFocus'{$ENDIF},
Form_Show {$IFNDEF MSWINDOWS}name '_Form_Show'{$ENDIF},
Form_ShowModal {$IFNDEF MSWINDOWS}name '_Form_ShowModal'{$ENDIF},
Form_CanFocus {$IFNDEF MSWINDOWS}name '_Form_CanFocus'{$ENDIF},
Form_FlipChildren {$IFNDEF MSWINDOWS}name '_Form_FlipChildren'{$ENDIF},
Form_Focused {$IFNDEF MSWINDOWS}name '_Form_Focused'{$ENDIF},
Form_HandleAllocated {$IFNDEF MSWINDOWS}name '_Form_HandleAllocated'{$ENDIF},
Form_Invalidate {$IFNDEF MSWINDOWS}name '_Form_Invalidate'{$ENDIF},
Form_Realign {$IFNDEF MSWINDOWS}name '_Form_Realign'{$ENDIF},
Form_Repaint {$IFNDEF MSWINDOWS}name '_Form_Repaint'{$ENDIF},
Form_ScaleBy {$IFNDEF MSWINDOWS}name '_Form_ScaleBy'{$ENDIF},
Form_SetBounds {$IFNDEF MSWINDOWS}name '_Form_SetBounds'{$ENDIF},
Form_Update {$IFNDEF MSWINDOWS}name '_Form_Update'{$ENDIF},
Form_BringToFront {$IFNDEF MSWINDOWS}name '_Form_BringToFront'{$ENDIF},
Form_HasParent {$IFNDEF MSWINDOWS}name '_Form_HasParent'{$ENDIF},
Form_Perform {$IFNDEF MSWINDOWS}name '_Form_Perform'{$ENDIF},
Form_Refresh {$IFNDEF MSWINDOWS}name '_Form_Refresh'{$ENDIF},
Form_SendToBack {$IFNDEF MSWINDOWS}name '_Form_SendToBack'{$ENDIF},
Form_GetTextBuf {$IFNDEF MSWINDOWS}name '_Form_GetTextBuf'{$ENDIF},
Form_FindComponent {$IFNDEF MSWINDOWS}name '_Form_FindComponent'{$ENDIF},
Form_GetNamePath {$IFNDEF MSWINDOWS}name '_Form_GetNamePath'{$ENDIF},
Form_Assign {$IFNDEF MSWINDOWS}name '_Form_Assign'{$ENDIF},
Form_ClassName {$IFNDEF MSWINDOWS}name '_Form_ClassName'{$ENDIF},
Form_Equals {$IFNDEF MSWINDOWS}name '_Form_Equals'{$ENDIF},
Form_GetHashCode {$IFNDEF MSWINDOWS}name '_Form_GetHashCode'{$ENDIF},
Form_ToString {$IFNDEF MSWINDOWS}name '_Form_ToString'{$ENDIF},
Form_GetAction {$IFNDEF MSWINDOWS}name '_Form_GetAction'{$ENDIF},
Form_SetAction {$IFNDEF MSWINDOWS}name '_Form_SetAction'{$ENDIF},
Form_GetAlign {$IFNDEF MSWINDOWS}name '_Form_GetAlign'{$ENDIF},
Form_SetAlign {$IFNDEF MSWINDOWS}name '_Form_SetAlign'{$ENDIF},
Form_GetAlphaBlend {$IFNDEF MSWINDOWS}name '_Form_GetAlphaBlend'{$ENDIF},
Form_SetAlphaBlend {$IFNDEF MSWINDOWS}name '_Form_SetAlphaBlend'{$ENDIF},
Form_GetAlphaBlendValue {$IFNDEF MSWINDOWS}name '_Form_GetAlphaBlendValue'{$ENDIF},
Form_SetAlphaBlendValue {$IFNDEF MSWINDOWS}name '_Form_SetAlphaBlendValue'{$ENDIF},
Form_GetAnchors {$IFNDEF MSWINDOWS}name '_Form_GetAnchors'{$ENDIF},
Form_SetAnchors {$IFNDEF MSWINDOWS}name '_Form_SetAnchors'{$ENDIF},
Form_GetAutoSize {$IFNDEF MSWINDOWS}name '_Form_GetAutoSize'{$ENDIF},
Form_SetAutoSize {$IFNDEF MSWINDOWS}name '_Form_SetAutoSize'{$ENDIF},
Form_GetBiDiMode {$IFNDEF MSWINDOWS}name '_Form_GetBiDiMode'{$ENDIF},
Form_SetBiDiMode {$IFNDEF MSWINDOWS}name '_Form_SetBiDiMode'{$ENDIF},
Form_GetBorderIcons {$IFNDEF MSWINDOWS}name '_Form_GetBorderIcons'{$ENDIF},
Form_SetBorderIcons {$IFNDEF MSWINDOWS}name '_Form_SetBorderIcons'{$ENDIF},
Form_GetBorderStyle {$IFNDEF MSWINDOWS}name '_Form_GetBorderStyle'{$ENDIF},
Form_SetBorderStyle {$IFNDEF MSWINDOWS}name '_Form_SetBorderStyle'{$ENDIF},
Form_GetBorderWidth {$IFNDEF MSWINDOWS}name '_Form_GetBorderWidth'{$ENDIF},
Form_SetBorderWidth {$IFNDEF MSWINDOWS}name '_Form_SetBorderWidth'{$ENDIF},
Form_GetCaption {$IFNDEF MSWINDOWS}name '_Form_GetCaption'{$ENDIF},
Form_SetCaption {$IFNDEF MSWINDOWS}name '_Form_SetCaption'{$ENDIF},
Form_GetClientHeight {$IFNDEF MSWINDOWS}name '_Form_GetClientHeight'{$ENDIF},