Skip to content

Commit

Permalink
Merge pull request #53 from reinaldoacdc/feat/update-readme
Browse files Browse the repository at this point in the history
fix/fmx-compilation
alepmedeiros authored Feb 18, 2022
2 parents a6e45f3 + b0e6d09 commit 3710fb4
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -76,7 +76,7 @@ Obs.: Em casos como o "Campo('ID')" a anotação é opcional, pois a `property`


## Instalação
Basta adicionar ao LibraryPatch o Caminho do SimpleORM ou via [Boss](https://github.com/HashLoad/boss) com o comando `boss install bittencourtthulio/SimpleORM`, não precisa realizar a instalação de nenhum componente.
Basta adicionar ao LibraryPatch o Caminho do SimpleORM ou via [Boss](https://github.com/HashLoad/boss) com o comando `boss install academiadocodigo/SimpleORM`, não precisa realizar a instalação de nenhum componente.

## Uses Necessárias

14 changes: 5 additions & 9 deletions SimpleRTTI.pas
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ interface
{$IFDEF FMX}
FMX.Types,FMX.Forms, FMX.Edit, FMX.ListBox, FMX.StdCtrls, FMX.DateTimeCtrls,
{$ELSE}
Vcl.Forms, VCL.StdCtrls, Vcl.ExtCtrls,
Vcl.ComCtrls, Vcl.Graphics, Vcl.Forms, VCL.StdCtrls, Vcl.ExtCtrls,
{$ENDIF}
{$ENDIF}
System.Classes,
@@ -142,12 +142,6 @@ implementation

uses
SimpleAttributes,


{$IFNDEF CONSOLE}
Vcl.ComCtrls,
Vcl.Graphics,
{$ENDIF}
Variants,
SimpleRTTIHelper,
System.UITypes;
@@ -192,8 +186,9 @@ function TSimpleRTTI<T>.__BindValueToComponent(aComponent: TComponent;
{$ENDIF}

if aComponent is TTrackBar then
{$IFDEF VCL}
(aComponent as TTrackBar).Position := aValue;

{$ENDIF}



@@ -281,9 +276,10 @@ function TSimpleRTTI<T>.__GetComponentToValue(aComponent: TComponent): TValue;
Result := TValue.FromVariant((aComponent as TCheckBox).IsChecked);
{$ENDIF}


{$IFDEF VCL}
if aComponent is TTrackBar then
Result := TValue.FromVariant((aComponent as TTrackBar).Position);
{$ENDIF}

{$IFDEF VCL}
if aComponent is TDateTimePicker then

0 comments on commit 3710fb4

Please sign in to comment.