-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathComboBox.inc
1088 lines (935 loc) · 34.7 KB
/
ComboBox.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 ComboBox_Create(AOwner: TComponent): TComboBox; cdecl;
begin
Result := TComboBox.Create(AOwner);
end;
procedure ComboBox_Free(AObj: TComboBox); cdecl;
begin
AObj.Free;
end;
procedure ComboBox_AddItem(AObj: TComboBox; Item: PWideChar; AObject: TObject); cdecl;
begin
AObj.AddItem(Item, AObject);
end;
procedure ComboBox_Clear(AObj: TComboBox); cdecl;
begin
AObj.Clear;
end;
procedure ComboBox_ClearSelection(AObj: TComboBox); cdecl;
begin
AObj.ClearSelection;
end;
//procedure ComboBox_DeleteSelected(AObj: TComboBox); cdecl;
//begin
// AObj.DeleteSelected;
//end;
function ComboBox_Focused(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.Focused;
end;
procedure ComboBox_SelectAll(AObj: TComboBox); cdecl;
begin
AObj.SelectAll;
end;
function ComboBox_CanFocus(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.CanFocus;
end;
procedure ComboBox_FlipChildren(AObj: TComboBox; AllLevels: LongBool); cdecl;
begin
AObj.FlipChildren(AllLevels);
end;
function ComboBox_HandleAllocated(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.HandleAllocated;
end;
procedure ComboBox_Invalidate(AObj: TComboBox); cdecl;
begin
AObj.Invalidate;
end;
procedure ComboBox_Realign(AObj: TComboBox); cdecl;
begin
AObj.Realign;
end;
procedure ComboBox_Repaint(AObj: TComboBox); cdecl;
begin
AObj.Repaint;
end;
procedure ComboBox_ScaleBy(AObj: TComboBox; M: Integer; D: Integer); cdecl;
begin
AObj.ScaleBy(M, D);
end;
procedure ComboBox_SetBounds(AObj: TComboBox; ALeft: Integer; ATop: Integer; AWidth: Integer; AHeight: Integer); cdecl;
begin
AObj.SetBounds(ALeft, ATop, AWidth, AHeight);
end;
procedure ComboBox_SetFocus(AObj: TComboBox); cdecl;
begin
AObj.SetFocus;
end;
procedure ComboBox_Update(AObj: TComboBox); cdecl;
begin
AObj.Update;
end;
procedure ComboBox_BringToFront(AObj: TComboBox); cdecl;
begin
AObj.BringToFront;
end;
function ComboBox_HasParent(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.HasParent;
end;
procedure ComboBox_Hide(AObj: TComboBox); cdecl;
begin
AObj.Hide;
end;
function ComboBox_Perform(AObj: TComboBox; Msg: Cardinal; WParam: NativeUInt; LParam: NativeInt): NativeInt; cdecl;
begin
Result := AObj.Perform(Msg, WParam, LParam);
end;
procedure ComboBox_Refresh(AObj: TComboBox); cdecl;
begin
AObj.Refresh;
end;
procedure ComboBox_SendToBack(AObj: TComboBox); cdecl;
begin
AObj.SendToBack;
end;
procedure ComboBox_Show(AObj: TComboBox); cdecl;
begin
AObj.Show;
end;
function ComboBox_GetTextBuf(AObj: TComboBox; Buffer: PWideChar; BufSize: Integer): Integer; cdecl;
begin
Result := AObj.GetTextBuf(PChar(Buffer), BufSize);
end;
function ComboBox_FindComponent(AObj: TComboBox; AName: PWideChar): TComponent; cdecl;
begin
Result := AObj.FindComponent(AName);
end;
function ComboBox_GetNamePath(AObj: TComboBox): PWideChar; cdecl;
begin
Result := PWideChar(AObj.GetNamePath);
end;
procedure ComboBox_Assign(AObj: TComboBox; Source: TPersistent); cdecl;
begin
AObj.Assign(Source);
end;
function ComboBox_ClassName(AObj: TComboBox): PWideChar; cdecl;
begin
Result := ShortstrToPWideChar(AObj.ClassName);
end;
function ComboBox_Equals(AObj: TComboBox; Obj: TObject): LongBool; cdecl;
begin
Result := AObj.Equals(Obj);
end;
function ComboBox_GetHashCode(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.GetHashCode;
end;
function ComboBox_ToString(AObj: TComboBox): PWideChar; cdecl;
begin
Result := PWideChar(AObj.ToString);
end;
function ComboBox_GetAlign(AObj: TComboBox): TAlign; cdecl;
begin
Result := AObj.Align;
end;
procedure ComboBox_SetAlign(AObj: TComboBox; AValue: TAlign); cdecl;
begin
AObj.Align := AValue;
end;
function ComboBox_GetAutoComplete(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.AutoComplete;
end;
procedure ComboBox_SetAutoComplete(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.AutoComplete := AValue;
end;
//function ComboBox_GetAutoCompleteDelay(AObj: TComboBox): Cardinal; cdecl;
//begin
// Result := AObj.AutoCompleteDelay;
//end;
//
//procedure ComboBox_SetAutoCompleteDelay(AObj: TComboBox; AValue: Cardinal); cdecl;
//begin
// AObj.AutoCompleteDelay := AValue;
//end;
function ComboBox_GetAutoDropDown(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.AutoDropDown;
end;
procedure ComboBox_SetAutoDropDown(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.AutoDropDown := AValue;
end;
//function ComboBox_GetAutoCloseUp(AObj: TComboBox): LongBool; cdecl;
//begin
// Result := AObj.AutoCloseUp;
//end;
//
//procedure ComboBox_SetAutoCloseUp(AObj: TComboBox; AValue: LongBool); cdecl;
//begin
// AObj.AutoCloseUp := AValue;
//end;
//
//function ComboBox_GetBevelEdges(AObj: TComboBox): TBevelEdges; cdecl;
//begin
// Result := AObj.BevelEdges;
//end;
//
//procedure ComboBox_SetBevelEdges(AObj: TComboBox; AValue: TBevelEdges); cdecl;
//begin
// AObj.BevelEdges := AValue;
//end;
//
//function ComboBox_GetBevelInner(AObj: TComboBox): TBevelCut; cdecl;
//begin
// Result := AObj.BevelInner;
//end;
//procedure ComboBox_SetBevelInner(AObj: TComboBox; AValue: TBevelCut); cdecl;
//begin
// AObj.BevelInner := AValue;
//end;
//
//function ComboBox_GetBevelKind(AObj: TComboBox): TBevelKind; cdecl;
//begin
// Result := AObj.BevelKind;
//end;
//
//procedure ComboBox_SetBevelKind(AObj: TComboBox; AValue: TBevelKind); cdecl;
//begin
// AObj.BevelKind := AValue;
//end;
//
//function ComboBox_GetBevelOuter(AObj: TComboBox): TBevelCut; cdecl;
//begin
// Result := AObj.BevelOuter;
//end;
//
//procedure ComboBox_SetBevelOuter(AObj: TComboBox; AValue: TBevelCut); cdecl;
//begin
// AObj.BevelOuter := AValue;
//end;
function ComboBox_GetStyle(AObj: TComboBox): TComboBoxStyle; cdecl;
begin
Result := AObj.Style;
end;
procedure ComboBox_SetStyle(AObj: TComboBox; AValue: TComboBoxStyle); cdecl;
begin
AObj.Style := AValue;
end;
function ComboBox_GetAnchors(AObj: TComboBox): TAnchors; cdecl;
begin
Result := AObj.Anchors;
end;
procedure ComboBox_SetAnchors(AObj: TComboBox; AValue: TAnchors); cdecl;
begin
AObj.Anchors := AValue;
end;
function ComboBox_GetBiDiMode(AObj: TComboBox): TBiDiMode; cdecl;
begin
Result := AObj.BiDiMode;
end;
procedure ComboBox_SetBiDiMode(AObj: TComboBox; AValue: TBiDiMode); cdecl;
begin
AObj.BiDiMode := AValue;
end;
function ComboBox_GetColor(AObj: TComboBox): TColor; cdecl;
begin
Result := AObj.Color;
end;
procedure ComboBox_SetColor(AObj: TComboBox; AValue: TColor); cdecl;
begin
AObj.Color := AValue;
end;
function ComboBox_GetDoubleBuffered(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.DoubleBuffered;
end;
procedure ComboBox_SetDoubleBuffered(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.DoubleBuffered := AValue;
end;
function ComboBox_GetDropDownCount(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.DropDownCount;
end;
procedure ComboBox_SetDropDownCount(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.DropDownCount := AValue;
end;
function ComboBox_GetEnabled(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.Enabled;
end;
procedure ComboBox_SetEnabled(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.Enabled := AValue;
end;
function ComboBox_GetFont(AObj: TComboBox): TFont; cdecl;
begin
Result := AObj.Font;
end;
procedure ComboBox_SetFont(AObj: TComboBox; AValue: TFont); cdecl;
begin
AObj.Font := AValue;
end;
function ComboBox_GetItemHeight(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.ItemHeight;
end;
procedure ComboBox_SetItemHeight(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.ItemHeight := AValue;
end;
function ComboBox_GetItemIndex(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.ItemIndex;
end;
procedure ComboBox_SetItemIndex(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.ItemIndex := AValue;
end;
function ComboBox_GetMaxLength(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.MaxLength;
end;
procedure ComboBox_SetMaxLength(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.MaxLength := AValue;
end;
function ComboBox_GetParentColor(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.ParentColor;
end;
procedure ComboBox_SetParentColor(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.ParentColor := AValue;
end;
//function ComboBox_GetParentCtl3D(AObj: TComboBox): LongBool; cdecl;
//begin
// Result := AObj.ParentCtl3D;
//end;
//
//procedure ComboBox_SetParentCtl3D(AObj: TComboBox; AValue: LongBool); cdecl;
//begin
// AObj.ParentCtl3D := AValue;
//end;
//
//function ComboBox_GetParentDoubleBuffered(AObj: TComboBox): LongBool; cdecl;
//begin
// Result := AObj.ParentDoubleBuffered;
//end;
//
//procedure ComboBox_SetParentDoubleBuffered(AObj: TComboBox; AValue: LongBool); cdecl;
//begin
// AObj.ParentDoubleBuffered := AValue;
//end;
function ComboBox_GetParentFont(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.ParentFont;
end;
procedure ComboBox_SetParentFont(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.ParentFont := AValue;
end;
function ComboBox_GetParentShowHint(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.ParentShowHint;
end;
procedure ComboBox_SetParentShowHint(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.ParentShowHint := AValue;
end;
function ComboBox_GetPopupMenu(AObj: TComboBox): TPopupMenu; cdecl;
begin
Result := AObj.PopupMenu;
end;
procedure ComboBox_SetPopupMenu(AObj: TComboBox; AValue: TPopupMenu); cdecl;
begin
AObj.PopupMenu := AValue;
end;
function ComboBox_GetShowHint(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.ShowHint;
end;
procedure ComboBox_SetShowHint(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.ShowHint := AValue;
end;
function ComboBox_GetSorted(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.Sorted;
end;
procedure ComboBox_SetSorted(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.Sorted := AValue;
end;
function ComboBox_GetTabOrder(AObj: TComboBox): TTabOrder; cdecl;
begin
Result := AObj.TabOrder;
end;
procedure ComboBox_SetTabOrder(AObj: TComboBox; AValue: TTabOrder); cdecl;
begin
AObj.TabOrder := AValue;
end;
function ComboBox_GetTabStop(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.TabStop;
end;
procedure ComboBox_SetTabStop(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.TabStop := AValue;
end;
function ComboBox_GetText(AObj: TComboBox): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Text);
end;
procedure ComboBox_SetText(AObj: TComboBox; AValue: PWideChar); cdecl;
begin
AObj.Text := AValue;
end;
//function ComboBox_GetTextHint(AObj: TComboBox): PWideChar; cdecl;
//begin
// Result := PWideChar(AObj.TextHint);
//end;
//
//procedure ComboBox_SetTextHint(AObj: TComboBox; AValue: PWideChar); cdecl;
//begin
// AObj.TextHint := AValue;
//end;
function ComboBox_GetVisible(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.Visible;
end;
procedure ComboBox_SetVisible(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.Visible := AValue;
end;
//function ComboBox_GetStyleElements(AObj: TComboBox): TStyleElements; cdecl;
//begin
// Result := AObj.StyleElements;
//end;
//
//procedure ComboBox_SetStyleElements(AObj: TComboBox; AValue: TStyleElements); cdecl;
//begin
// AObj.StyleElements := AValue;
//end;
procedure ComboBox_SetOnChange(AObj: TComboBox; 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 ComboBox_SetOnClick(AObj: TComboBox; 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 ComboBox_SetOnDblClick(AObj: TComboBox; 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 ComboBox_SetOnEnter(AObj: TComboBox; 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 ComboBox_SetOnExit(AObj: TComboBox; 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 ComboBox_SetOnKeyDown(AObj: TComboBox; 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 ComboBox_SetOnKeyPress(AObj: TComboBox; 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 ComboBox_SetOnKeyUp(AObj: TComboBox; 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 ComboBox_SetOnMouseEnter(AObj: TComboBox; 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 ComboBox_SetOnMouseLeave(AObj: TComboBox; 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;
function ComboBox_GetItems(AObj: TComboBox): TStrings; cdecl;
begin
Result := AObj.Items;
end;
procedure ComboBox_SetItems(AObj: TComboBox; AValue: TStrings); cdecl;
begin
AObj.Items := AValue;
end;
function ComboBox_GetSelText(AObj: TComboBox): PWideChar; cdecl;
begin
Result := PWideChar(AObj.SelText);
end;
procedure ComboBox_SetSelText(AObj: TComboBox; AValue: PWideChar); cdecl;
begin
AObj.SelText := AValue;
end;
function ComboBox_GetCanvas(AObj: TComboBox): TCanvas; cdecl;
begin
Result := AObj.Canvas;
end;
function ComboBox_GetDroppedDown(AObj: TComboBox): LongBool; cdecl;
begin
Result := AObj.DroppedDown;
end;
procedure ComboBox_SetDroppedDown(AObj: TComboBox; AValue: LongBool); cdecl;
begin
AObj.DroppedDown := AValue;
end;
function ComboBox_GetSelLength(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.SelLength;
end;
procedure ComboBox_SetSelLength(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.SelLength := AValue;
end;
function ComboBox_GetSelStart(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.SelStart;
end;
procedure ComboBox_SetSelStart(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.SelStart := AValue;
end;
function ComboBox_GetBrush(AObj: TComboBox): TBrush; cdecl;
begin
Result := AObj.Brush;
end;
function ComboBox_GetControlCount(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.ControlCount;
end;
function ComboBox_GetHandle(AObj: TComboBox): HWND; cdecl;
begin
Result := AObj.Handle;
end;
function ComboBox_GetParentWindow(AObj: TComboBox): HWND; cdecl;
begin
Result := AObj.ParentWindow;
end;
procedure ComboBox_SetParentWindow(AObj: TComboBox; AValue: HWND); cdecl;
begin
AObj.ParentWindow := AValue;
end;
function ComboBox_GetAction(AObj: TComboBox): TBasicAction; cdecl;
begin
Result := AObj.Action;
end;
procedure ComboBox_SetAction(AObj: TComboBox; AValue: TBasicAction); cdecl;
begin
AObj.Action := AValue;
end;
procedure ComboBox_GetBoundsRect(AObj: TComboBox; var Result: TRect); cdecl;
begin
Result := AObj.BoundsRect;
end;
procedure ComboBox_SetBoundsRect(AObj: TComboBox; var AValue: TRect); cdecl;
begin
AObj.BoundsRect := AValue;
end;
function ComboBox_GetClientHeight(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.ClientHeight;
end;
procedure ComboBox_SetClientHeight(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.ClientHeight := AValue;
end;
procedure ComboBox_GetClientRect(AObj: TComboBox; var Result: TRect); cdecl;
begin
Result := AObj.ClientRect;
end;
function ComboBox_GetClientWidth(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.ClientWidth;
end;
procedure ComboBox_SetClientWidth(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.ClientWidth := AValue;
end;
//function ComboBox_GetExplicitLeft(AObj: TComboBox): Integer; cdecl;
//begin
// Result := AObj.ExplicitLeft;
//end;
//
//function ComboBox_GetExplicitTop(AObj: TComboBox): Integer; cdecl;
//begin
// Result := AObj.ExplicitTop;
//end;
//
//function ComboBox_GetExplicitWidth(AObj: TComboBox): Integer; cdecl;
//begin
// Result := AObj.ExplicitWidth;
//end;
//
//function ComboBox_GetExplicitHeight(AObj: TComboBox): Integer; cdecl;
//begin
// Result := AObj.ExplicitHeight;
//end;
function ComboBox_GetParent(AObj: TComboBox): TWinControl; cdecl;
begin
Result := AObj.Parent;
end;
procedure ComboBox_SetParent(AObj: TComboBox; AValue: TWinControl); cdecl;
begin
AObj.Parent := AValue;
end;
//function ComboBox_GetAlignWithMargins(AObj: TComboBox): LongBool; cdecl;
//begin
// Result := AObj.AlignWithMargins;
//end;
//
//procedure ComboBox_SetAlignWithMargins(AObj: TComboBox; AValue: LongBool); cdecl;
//begin
// AObj.AlignWithMargins := AValue;
//end;
function ComboBox_GetLeft(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.Left;
end;
procedure ComboBox_SetLeft(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.Left := AValue;
end;
function ComboBox_GetTop(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.Top;
end;
procedure ComboBox_SetTop(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.Top := AValue;
end;
function ComboBox_GetWidth(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.Width;
end;
procedure ComboBox_SetWidth(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.Width := AValue;
end;
function ComboBox_GetHeight(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.Height;
end;
procedure ComboBox_SetHeight(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.Height := AValue;
end;
function ComboBox_GetCursor(AObj: TComboBox): TCursor; cdecl;
begin
Result := AObj.Cursor;
end;
procedure ComboBox_SetCursor(AObj: TComboBox; AValue: TCursor); cdecl;
begin
AObj.Cursor := AValue;
end;
function ComboBox_GetHint(AObj: TComboBox): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Hint);
end;
procedure ComboBox_SetHint(AObj: TComboBox; AValue: PWideChar); cdecl;
begin
AObj.Hint := AValue;
end;
//function ComboBox_GetMargins(AObj: TComboBox): TMargins; cdecl;
//begin
// Result := AObj.Margins;
//end;
//
//procedure ComboBox_SetMargins(AObj: TComboBox; AValue: TMargins); cdecl;
//begin
// AObj.Margins := AValue;
//end;
function ComboBox_GetComponentCount(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.ComponentCount;
end;
function ComboBox_GetComponentIndex(AObj: TComboBox): Integer; cdecl;
begin
Result := AObj.ComponentIndex;
end;
procedure ComboBox_SetComponentIndex(AObj: TComboBox; AValue: Integer); cdecl;
begin
AObj.ComponentIndex := AValue;
end;
function ComboBox_GetOwner(AObj: TComboBox): TComponent; cdecl;
begin
Result := AObj.Owner;
end;
function ComboBox_GetName(AObj: TComboBox): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Name);
end;
procedure ComboBox_SetName(AObj: TComboBox; AValue: PWideChar); cdecl;
begin
AObj.Name := AValue;
end;
function ComboBox_GetTag(AObj: TComboBox): NativeInt; cdecl;
begin
Result := AObj.Tag;
end;
procedure ComboBox_SetTag(AObj: TComboBox; AValue: NativeInt); cdecl;
begin
AObj.Tag := AValue;
end;
function ComboBox_GetControls(AObj: TComboBox; Index: Integer): TControl; cdecl;
begin
Result := AObj.Controls[Index];
end;
function ComboBox_GetComponents(AObj: TComboBox; AIndex: Integer): TComponent; cdecl;
begin
Result := AObj.Components[AIndex];
end;
exports
ComboBox_Create {$IFNDEF MSWINDOWS}name '_ComboBox_Create'{$ENDIF},
ComboBox_Free {$IFNDEF MSWINDOWS}name '_ComboBox_Free'{$ENDIF},
ComboBox_AddItem {$IFNDEF MSWINDOWS}name '_ComboBox_AddItem'{$ENDIF},
ComboBox_Clear {$IFNDEF MSWINDOWS}name '_ComboBox_Clear'{$ENDIF},
ComboBox_ClearSelection {$IFNDEF MSWINDOWS}name '_ComboBox_ClearSelection'{$ENDIF},
//ComboBox_DeleteSelected {$IFNDEF MSWINDOWS}name '_ComboBox_DeleteSelected'{$ENDIF},
ComboBox_Focused {$IFNDEF MSWINDOWS}name '_ComboBox_Focused'{$ENDIF},
ComboBox_SelectAll {$IFNDEF MSWINDOWS}name '_ComboBox_SelectAll'{$ENDIF},
ComboBox_CanFocus {$IFNDEF MSWINDOWS}name '_ComboBox_CanFocus'{$ENDIF},
ComboBox_FlipChildren {$IFNDEF MSWINDOWS}name '_ComboBox_FlipChildren'{$ENDIF},
ComboBox_HandleAllocated {$IFNDEF MSWINDOWS}name '_ComboBox_HandleAllocated'{$ENDIF},
ComboBox_Invalidate {$IFNDEF MSWINDOWS}name '_ComboBox_Invalidate'{$ENDIF},
ComboBox_Realign {$IFNDEF MSWINDOWS}name '_ComboBox_Realign'{$ENDIF},
ComboBox_Repaint {$IFNDEF MSWINDOWS}name '_ComboBox_Repaint'{$ENDIF},
ComboBox_ScaleBy {$IFNDEF MSWINDOWS}name '_ComboBox_ScaleBy'{$ENDIF},
ComboBox_SetBounds {$IFNDEF MSWINDOWS}name '_ComboBox_SetBounds'{$ENDIF},
ComboBox_SetFocus {$IFNDEF MSWINDOWS}name '_ComboBox_SetFocus'{$ENDIF},
ComboBox_Update {$IFNDEF MSWINDOWS}name '_ComboBox_Update'{$ENDIF},
ComboBox_BringToFront {$IFNDEF MSWINDOWS}name '_ComboBox_BringToFront'{$ENDIF},
ComboBox_HasParent {$IFNDEF MSWINDOWS}name '_ComboBox_HasParent'{$ENDIF},
ComboBox_Hide {$IFNDEF MSWINDOWS}name '_ComboBox_Hide'{$ENDIF},
ComboBox_Perform {$IFNDEF MSWINDOWS}name '_ComboBox_Perform'{$ENDIF},
ComboBox_Refresh {$IFNDEF MSWINDOWS}name '_ComboBox_Refresh'{$ENDIF},
ComboBox_SendToBack {$IFNDEF MSWINDOWS}name '_ComboBox_SendToBack'{$ENDIF},
ComboBox_Show {$IFNDEF MSWINDOWS}name '_ComboBox_Show'{$ENDIF},
ComboBox_GetTextBuf {$IFNDEF MSWINDOWS}name '_ComboBox_GetTextBuf'{$ENDIF},
ComboBox_FindComponent {$IFNDEF MSWINDOWS}name '_ComboBox_FindComponent'{$ENDIF},
ComboBox_GetNamePath {$IFNDEF MSWINDOWS}name '_ComboBox_GetNamePath'{$ENDIF},
ComboBox_Assign {$IFNDEF MSWINDOWS}name '_ComboBox_Assign'{$ENDIF},
ComboBox_ClassName {$IFNDEF MSWINDOWS}name '_ComboBox_ClassName'{$ENDIF},
ComboBox_Equals {$IFNDEF MSWINDOWS}name '_ComboBox_Equals'{$ENDIF},
ComboBox_GetHashCode {$IFNDEF MSWINDOWS}name '_ComboBox_GetHashCode'{$ENDIF},
ComboBox_ToString {$IFNDEF MSWINDOWS}name '_ComboBox_ToString'{$ENDIF},
ComboBox_GetAlign {$IFNDEF MSWINDOWS}name '_ComboBox_GetAlign'{$ENDIF},
ComboBox_SetAlign {$IFNDEF MSWINDOWS}name '_ComboBox_SetAlign'{$ENDIF},
ComboBox_GetAutoComplete {$IFNDEF MSWINDOWS}name '_ComboBox_GetAutoComplete'{$ENDIF},
ComboBox_SetAutoComplete {$IFNDEF MSWINDOWS}name '_ComboBox_SetAutoComplete'{$ENDIF},
//ComboBox_GetAutoCompleteDelay {$IFNDEF MSWINDOWS}name '_ComboBox_GetAutoCompleteDelay'{$ENDIF},
//ComboBox_SetAutoCompleteDelay {$IFNDEF MSWINDOWS}name '_ComboBox_SetAutoCompleteDelay'{$ENDIF},
ComboBox_GetAutoDropDown {$IFNDEF MSWINDOWS}name '_ComboBox_GetAutoDropDown'{$ENDIF},
ComboBox_SetAutoDropDown {$IFNDEF MSWINDOWS}name '_ComboBox_SetAutoDropDown'{$ENDIF},
//ComboBox_GetAutoCloseUp {$IFNDEF MSWINDOWS}name '_ComboBox_GetAutoCloseUp'{$ENDIF},
//ComboBox_SetAutoCloseUp {$IFNDEF MSWINDOWS}name '_ComboBox_SetAutoCloseUp'{$ENDIF},
//ComboBox_GetBevelEdges {$IFNDEF MSWINDOWS}name '_ComboBox_GetBevelEdges'{$ENDIF},
//ComboBox_SetBevelEdges {$IFNDEF MSWINDOWS}name '_ComboBox_SetBevelEdges'{$ENDIF},
//ComboBox_GetBevelInner {$IFNDEF MSWINDOWS}name '_ComboBox_GetBevelInner'{$ENDIF},
//ComboBox_SetBevelInner {$IFNDEF MSWINDOWS}name '_ComboBox_SetBevelInner'{$ENDIF},
//ComboBox_GetBevelKind {$IFNDEF MSWINDOWS}name '_ComboBox_GetBevelKind'{$ENDIF},
//ComboBox_SetBevelKind {$IFNDEF MSWINDOWS}name '_ComboBox_SetBevelKind'{$ENDIF},
//ComboBox_GetBevelOuter {$IFNDEF MSWINDOWS}name '_ComboBox_GetBevelOuter'{$ENDIF},
//ComboBox_SetBevelOuter {$IFNDEF MSWINDOWS}name '_ComboBox_SetBevelOuter'{$ENDIF},
ComboBox_GetStyle {$IFNDEF MSWINDOWS}name '_ComboBox_GetStyle'{$ENDIF},
ComboBox_SetStyle {$IFNDEF MSWINDOWS}name '_ComboBox_SetStyle'{$ENDIF},
ComboBox_GetAnchors {$IFNDEF MSWINDOWS}name '_ComboBox_GetAnchors'{$ENDIF},
ComboBox_SetAnchors {$IFNDEF MSWINDOWS}name '_ComboBox_SetAnchors'{$ENDIF},
ComboBox_GetBiDiMode {$IFNDEF MSWINDOWS}name '_ComboBox_GetBiDiMode'{$ENDIF},
ComboBox_SetBiDiMode {$IFNDEF MSWINDOWS}name '_ComboBox_SetBiDiMode'{$ENDIF},
ComboBox_GetColor {$IFNDEF MSWINDOWS}name '_ComboBox_GetColor'{$ENDIF},
ComboBox_SetColor {$IFNDEF MSWINDOWS}name '_ComboBox_SetColor'{$ENDIF},
ComboBox_GetDoubleBuffered {$IFNDEF MSWINDOWS}name '_ComboBox_GetDoubleBuffered'{$ENDIF},
ComboBox_SetDoubleBuffered {$IFNDEF MSWINDOWS}name '_ComboBox_SetDoubleBuffered'{$ENDIF},
ComboBox_GetDropDownCount {$IFNDEF MSWINDOWS}name '_ComboBox_GetDropDownCount'{$ENDIF},
ComboBox_SetDropDownCount {$IFNDEF MSWINDOWS}name '_ComboBox_SetDropDownCount'{$ENDIF},
ComboBox_GetEnabled {$IFNDEF MSWINDOWS}name '_ComboBox_GetEnabled'{$ENDIF},
ComboBox_SetEnabled {$IFNDEF MSWINDOWS}name '_ComboBox_SetEnabled'{$ENDIF},
ComboBox_GetFont {$IFNDEF MSWINDOWS}name '_ComboBox_GetFont'{$ENDIF},
ComboBox_SetFont {$IFNDEF MSWINDOWS}name '_ComboBox_SetFont'{$ENDIF},
ComboBox_GetItemHeight {$IFNDEF MSWINDOWS}name '_ComboBox_GetItemHeight'{$ENDIF},
ComboBox_SetItemHeight {$IFNDEF MSWINDOWS}name '_ComboBox_SetItemHeight'{$ENDIF},
ComboBox_GetItemIndex {$IFNDEF MSWINDOWS}name '_ComboBox_GetItemIndex'{$ENDIF},
ComboBox_SetItemIndex {$IFNDEF MSWINDOWS}name '_ComboBox_SetItemIndex'{$ENDIF},
ComboBox_GetMaxLength {$IFNDEF MSWINDOWS}name '_ComboBox_GetMaxLength'{$ENDIF},
ComboBox_SetMaxLength {$IFNDEF MSWINDOWS}name '_ComboBox_SetMaxLength'{$ENDIF},
ComboBox_GetParentColor {$IFNDEF MSWINDOWS}name '_ComboBox_GetParentColor'{$ENDIF},
ComboBox_SetParentColor {$IFNDEF MSWINDOWS}name '_ComboBox_SetParentColor'{$ENDIF},
//ComboBox_GetParentCtl3D {$IFNDEF MSWINDOWS}name '_ComboBox_GetParentCtl3D'{$ENDIF},
//ComboBox_SetParentCtl3D {$IFNDEF MSWINDOWS}name '_ComboBox_SetParentCtl3D'{$ENDIF},
//ComboBox_GetParentDoubleBuffered {$IFNDEF MSWINDOWS}name '_ComboBox_GetParentDoubleBuffered'{$ENDIF},
//ComboBox_SetParentDoubleBuffered {$IFNDEF MSWINDOWS}name '_ComboBox_SetParentDoubleBuffered'{$ENDIF},
ComboBox_GetParentFont {$IFNDEF MSWINDOWS}name '_ComboBox_GetParentFont'{$ENDIF},
ComboBox_SetParentFont {$IFNDEF MSWINDOWS}name '_ComboBox_SetParentFont'{$ENDIF},