Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Kompo für Screensaver gesucht

Empfohlene Antworten

Veröffentlicht

Ich suche dringend eine Screensaver Komponente für Delphi 7!

Kennt jemand ne Gute?

auf DSP und Torry habe ich schon geguckt...

Wozu eine Komponente?

Mach eine normale Anwendung. mit 2 Formularen. Eines ist das Screensaver Formular, das andere das Setup-Formular.

In den Projektquellcode fügst du dann ein:


program Project1;


uses

  Forms, 

  System, 

  Form1 in 'Unit1.pas',

  Form2 in 'Unit2.pas';


{$R *.res}


var param: String;


begin

  param:= copy(UpperCase(paramstr(1), 1, 2);

  if param = '/C' then

  begin

    Application.Initialize;

    Application.CreateForm(TForm2, Form2);

    Application.Run;

  end

  else 

  if param = '/S' then 

  begin

    Application.Initialize;

    Application.CreateForm(TForm1, Form1);

    Application.Run;

  end;

end.


Ein Screensaver ist eine ganz normale Exe. Allerdings muss die Endung .scr sein und sie muss im System-Verzeichnis liegen. Beim Starten wird ein Parameter übergeben. /S für Start bzw. Show und /C für Config (/P für Preview gibt es auch noch). Entpsrechend werden die Formulare angezeigt.

Ach ja, auf Tastendruck bzw. Maus muss das Programm beendet werden.

Viel spass mit deinem Screensaver.

EDIT:

Ach ja, du könntest (solltest) noch eine Stringtable als Resource erstellen, die de den kurzen Text enthält, der in der Listbox angezeigt wird. Also {$R title.res} hinzufügen.

danke!

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.