Skip to content

Commit

Permalink
FMX component editor redesigned
Browse files Browse the repository at this point in the history
Added Zoom property for FMX components
Updated demo images of FMX
FMX version 2.2.2
  • Loading branch information
carloBarazzetta committed Dec 24, 2020
1 parent 5654778 commit 04d9559
Show file tree
Hide file tree
Showing 9 changed files with 4,023 additions and 577 deletions.
Binary file modified Demo/Images/ComponentEditorFMX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Demo/Images/DemoFMX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Demo/Images/SampleFMX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,161 changes: 3,121 additions & 40 deletions Demo/Source/UMainFMX.fmx

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions Demo/Source/UMainFMX.pas
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ TSVGIconImageListForm = class(TForm)
ImageView: TListBox;
ListBoxItem1: TListBoxItem;
ListBoxItem2: TListBoxItem;
SpinBox1: TSpinBox;
ListBoxItem3: TListBoxItem;
TopPanel: TPanel;
Glyph2: TGlyph;
Expand All @@ -34,13 +33,15 @@ TSVGIconImageListForm = class(TForm)
SVGIconImageList: TSVGIconImageList;
OpenDialog: TOpenDialog;
GrayScaleCheckBox: TCheckBox;
ZoomSpinBox: TSpinBox;
ZoomLabel: TLabel;
procedure FormCreate(Sender: TObject);
procedure NextButtonClick(Sender: TObject);
procedure RandomButtonClick(Sender: TObject);
procedure AutoSizeCheckBoxChange(Sender: TObject);
procedure PrevButtonClick(Sender: TObject);
procedure ShowEditorButtonClick(Sender: TObject);
procedure SpinBox1Change(Sender: TObject);
procedure ZoomSpinBoxChange(Sender: TObject);
procedure GrayScaleCheckBoxChange(Sender: TObject);
private
procedure UpdateGUI;
Expand Down Expand Up @@ -100,9 +101,9 @@ procedure TSVGIconImageListForm.ShowEditorButtonClick(Sender: TObject);
{$IFDEF MSWINDOWS}EditSVGIconImageList(SVGIconImageList);{$ENDIF}
end;

procedure TSVGIconImageListForm.SpinBox1Change(Sender: TObject);
procedure TSVGIconImageListForm.ZoomSpinBoxChange(Sender: TObject);
begin
SVGIconImageList.Size := Round(SpinBox1.Value);
SVGIconImageList.Zoom := Round(ZoomSpinBox.Value);
end;

procedure TSVGIconImageListForm.UpdateGUI;
Expand Down
Loading

0 comments on commit 04d9559

Please sign in to comment.