Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/fmx-compilation #53

Merged
merged 2 commits into from
Feb 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
14 changes: 5 additions & 9 deletions SimpleRTTI.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -142,12 +142,6 @@ implementation

uses
SimpleAttributes,


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

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

{$ENDIF}



Expand Down Expand Up @@ -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
Expand Down