@@ -40,6 +40,28 @@ TPyDelphiListBox = class(TPyDelphiCustomListBox)
40
40
write SetDelphiObject;
41
41
end ;
42
42
43
+ TPyDelphiCustomComboBox = class (TPyDelphiStyledControl)
44
+ private
45
+ function GetDelphiObject : TCustomComboBox;
46
+ procedure SetDelphiObject (const Value : TCustomComboBox);
47
+ public
48
+ class function DelphiObjectClass : TClass; override;
49
+ // Properties
50
+ property DelphiObject: TCustomComboBox read GetDelphiObject
51
+ write SetDelphiObject;
52
+ end ;
53
+
54
+ TPyDelphiComboBox = class (TPyDelphiCustomComboBox)
55
+ private
56
+ function GetDelphiObject : TComboBox;
57
+ procedure SetDelphiObject (const Value : TComboBox);
58
+ public
59
+ class function DelphiObjectClass : TClass; override;
60
+ // Properties
61
+ property DelphiObject: TComboBox read GetDelphiObject
62
+ write SetDelphiObject;
63
+ end ;
64
+
43
65
implementation
44
66
45
67
uses
@@ -73,6 +95,8 @@ procedure TListBoxRegistration.RegisterWrappers(
73
95
APyDelphiWrapper.RegisterDelphiWrapper(TPyListBoxItem);
74
96
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomListBox);
75
97
APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiListBox);
98
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiCustomComboBox);
99
+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiComboBox);
76
100
end ;
77
101
78
102
{ TPyListBoxItem }
@@ -127,6 +151,40 @@ procedure TPyDelphiListBox.SetDelphiObject(const Value: TListBox);
127
151
inherited DelphiObject := Value ;
128
152
end ;
129
153
154
+ { TPyDelphiCustomComboBox }
155
+
156
+ class function TPyDelphiCustomComboBox.DelphiObjectClass : TClass;
157
+ begin
158
+ Result := TCustomComboBox;
159
+ end ;
160
+
161
+ function TPyDelphiCustomComboBox.GetDelphiObject : TCustomComboBox;
162
+ begin
163
+ Result := TCustomComboBox(inherited DelphiObject)
164
+ end ;
165
+
166
+ procedure TPyDelphiCustomComboBox.SetDelphiObject (const Value : TCustomComboBox);
167
+ begin
168
+ inherited DelphiObject := Value ;
169
+ end ;
170
+
171
+ { TPyDelphiComboBox }
172
+
173
+ class function TPyDelphiComboBox.DelphiObjectClass : TClass;
174
+ begin
175
+ Result := TComboBox;
176
+ end ;
177
+
178
+ function TPyDelphiComboBox.GetDelphiObject : TComboBox;
179
+ begin
180
+ Result := TComboBox(inherited DelphiObject)
181
+ end ;
182
+
183
+ procedure TPyDelphiComboBox.SetDelphiObject (const Value : TComboBox);
184
+ begin
185
+ inherited DelphiObject := Value ;
186
+ end ;
187
+
130
188
initialization
131
189
RegisteredUnits.Add(TListBoxRegistration.Create);
132
190
0 commit comments