Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Notification mit Progressbar (https://www.delphipraxis.net/208116-notification-mit-progressbar.html)

QuickAndDirty 11. Jun 2021 14:22

Notification mit Progressbar
 
Hallo kann ich eine Notifcation mit Progressbar wie hier
https://www.tutlane.com/tutorial/and...-with-examples

anzeigen ?

QuickAndDirty 17. Jun 2021 14:50

AW: Notification mit Progressbar
 
Hallo sorry, aber hat irgendwer dazu eine idee?
Oder gibts irgendwo nen Crashcurs wie Marshalling in Delphi funktioniert?

KodeZwerg 17. Jun 2021 19:11

AW: Notification mit Progressbar
 
Ich weiß nicht so genau worauf Du es nun angelegt hast, falls Du auf ein Gegenstück für Windows suchst müsste Delphi-Referenz durchsuchenTTaskBarProgressState Dich glücklich machen.

KodeZwerg 17. Jun 2021 19:37

AW: Notification mit Progressbar
 
Delphi-Quellcode:
uses ... Vcl.Taskbar;

type
  TfrmMain = class(TForm)
    ...
    tbMain: TTaskbar;
    ...
  public
    procedure Test;
  end;

implementation

procedure TfrmMain.Test;
var
  i: Integer;
  fProgress: Single;
begin
  tbMain.ProgressState := TTaskBarProgressState.Normal;
  tbMain.ProgressMaxValue := 5000;
  for i := 0 to tbMain.ProgressMaxValue do
    begin
      tbMain.ProgressValue := i;
      fProgress := i * 100 / tbMain.ProgressMaxValue;
      tbMain.ToolTip := Format('%s: %3.1f%% (%d %s %d)', ['Progess', fProgress, i, 'of', tbMain.ProgressMaxValue]);
    end;

  tbMain.ProgressState := TTaskBarProgressState.None;
  tbMain.ToolTip := '';
end;
So als Beispiel dafür.

QuickAndDirty 18. Jun 2021 09:07

AW: Notification mit Progressbar
 
Es gibt ja in Android so notifications die kann man vom oberen bildschirm rand herunter wischen.
Mit dem TNotificationcenter kann ich da auch welche plazieren und ich kann auch einen Button drauf packen so das die App darauf reagieren kann.
manche Android Apps können z.b. in so einer Notification eine Datei download anzeigen...mit einem laufbalken darunter.

Ich will diese art von notification auch erstellen können , aber tNotificationcenter stellt diese art der Notifications nicht zur verfügung.
also brauche ich entweder eine Komponente die das kann oder vielleicht einen Konverter der Java code für Android automatisch in wrapped und als PAS datei exportiert.
Oder einen guide wie ich Java code für Delphi wrappen kann.


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:10 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz