File tree 1 file changed +14
-5
lines changed 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,10 @@ implementation
146
146
147
147
148
148
{ $IFNDEF CONSOLE}
149
- Vcl.ComCtrls,
150
- Vcl.Graphics,
149
+ { $IFNDEF FMX}
150
+ Vcl.ComCtrls,
151
+ Vcl.Graphics,
152
+ { $ENDIF}
151
153
{ $ENDIF}
152
154
Variants,
153
155
SimpleRTTIHelper,
@@ -193,8 +195,11 @@ function TSimpleRTTI<T>.__BindValueToComponent(aComponent: TComponent;
193
195
{ $ENDIF}
194
196
195
197
if aComponent is TTrackBar then
196
- (aComponent as TTrackBar).Position := aValue;
197
-
198
+ { $IFDEF VCL}
199
+ (aComponent as TTrackBar).Position := aValue;
200
+ { $ELSEIF IFDEF FMX}
201
+ (aComponent as TTrackBar).Position.X := aValue;
202
+ { $ENDIF}
198
203
199
204
200
205
@@ -282,7 +287,11 @@ function TSimpleRTTI<T>.__GetComponentToValue(aComponent: TComponent): TValue;
282
287
283
288
284
289
if aComponent is TTrackBar then
285
- Result := TValue.FromVariant((aComponent as TTrackBar).Position);
290
+ { $IFDEF VCL}
291
+ Result := TValue.FromVariant((aComponent as TTrackBar).Position);
292
+ { $ELSEIF IFDEF FMX}
293
+ Result := TValue.FromVariant((aComponent as TTrackBar).Position.X);
294
+ { $ENDIF}
286
295
287
296
{ $IFDEF VCL}
288
297
if aComponent is TDateTimePicker then
You can’t perform that action at this time.
0 commit comments