Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodComponentDelphiDemoFiremonkeyIOSWindows

Native Platform Progress Dialogs For Delphi XE5 Firemonkey On Android And IOS

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Native Delphi XE5 Firemonkey Progress Dialog | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSOne of the comments on our Multithreaded dialog post pointed out another set of progress and activity dialog components for Delphi XE5 Firemonkey. These components are from Yaroslav Brovin and it looks like they wrap native Android and IOS functionality. So when you use this progress dialog on Android you’re actually using the native Java progress and activity dialog. On IOS you’re actually using a native UIView for your progress and activity dialogs. The names of the two components are TfgProgressDialog and TfgActivityDialog. I like this solution a lot because it is cross platform which means it handles both Android and IOS natively with Delphi XE5 Firemonkey. The components include a full demo on how to use them and I’ve included some of that code below:
procedure TForm6.Button1Click(Sender: TObject);
begin
fgProgressDialog.Show;
try
fgProgressDialog.Message := 'Preparing downloading content';
fgProgressDialog.Kind := TfgProgressDialogKind.Undeterminated;
// do work
fgProgressDialog.Kind := TfgProgressDialogKind.Determinated;
// do work
fgProgressDialog.Message := 'Union units...';
fgProgressDialog.Progress := 10;
// do work
fgProgressDialog.Message := 'Sorting units in package...';
fgProgressDialog.Progress := 20;
// do work
fgProgressDialog.Message := 'Removed comments...';
fgProgressDialog.Progress := 60;
// do work
fgProgressDialog.Message := 'Finishig';
fgProgressDialog.Progress := 90;
// do work
fgProgressDialog.Progress := 100;
// do work
finally
fgProgressDialog.Hide;
end;
end;

There isn’t really a blog post that I know of that goes with these components but instead there is a Youtube video. A link to the components is in the Youtube comments and I have mirrored them below as well in case the originals go down.

Check out the YouTube video on how to use the native progress and activity dialog components.

Mirror: Delphi XE5 Firemonkey Native Progress Dialog Components

Update: The packages have a complex directory structure but you might have trouble with. I made a new archive with the package directory structure flattened out. Hopefully this makes it easier to use. Download Delphi XE5 Firemonkey Native Platform Dialogs

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts
DelphiDemoFiremonkeyLinuxOSXShowcaseWindows

AutoBlogAI: FireMonkey Client To Leverage LLMs And Generative AI For Blogging

DelphiFiremonkeyShowcaseUtilityWindows

Unleashing Creativity With Song Writer AI: A Deep Dive

DelphiFiremonkeyShowcaseWindows

How To Build Stable Diffusion Text To Image Prompts

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes

Sign up for our Newsletter and
stay informed

13 Comments

Leave a Reply