Autor Beitrag
xXFloXx
Hält's aus hier
Beiträge: 8

Windows 2000
Delphi 7
BeitragVerfasst: So 05.08.07 15:23 
Hi, :welcome:
ich bin neu hier und habe mich angemeldet weil ich ein ziemlicher Anfänger in Delphi bin und immer viele Fragen habe !!!

Obwohl es mehrere Beiträge zu diesem Thema gibt muss ich es nochmal aufgreifen!
ich habe folgendes problem : ich benutze den programmcode :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
if not SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, Pointer(Filename),SPIF_UPDATEINIFILE ) then
    begin
      ShowMessage('Konnte folgende Datei nicht als Desktop-Hintergrund setzen: '+Filename);
    end;


und habe folgendes problem ich kann den hintergrund ändern aber ich will ihn z.B. nach 5 minuten mit einen timer wieder ändern und das bild wird nicht aktualisiert!! :?!?:

Ich hoffe ihr könnt mir helfen!!Und versteht was ich meine! :D

Moderiert von user profile iconGausi: I- durch Delphi-Tags ersetzt
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: So 05.08.07 15:44 
Bitte Forensuche benutzen! :roll:

Nach seeeehr kurzem Suchen mittels der Foren-Suche habe ich einen Beitrag gefunden:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure SetBackground(const AFilename: String);
begin
 if not SystemParametersInfo(SPI_SETDESKWALLPAPER,
                             0,
                             PChar(AFilename),
                             SPIF_SENDCHANGE OR SPIF_UPDATEINIFILE) then
   RaiseLastOSError;
End;
xXFloXx Threadstarter
Hält's aus hier
Beiträge: 8

Windows 2000
Delphi 7
BeitragVerfasst: So 05.08.07 16:07 
ja das habe ich schon auf unendlich vielen seiten gefunden !!!!
Aber es funktioniert ja nicht!!!!

Könnte es an meinen betriebssystem liegen??? Ich hab da sowas gehört!
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: So 05.08.07 16:27 
Prüf mal bitte ob du den Parameter SPIF_SENDCHANGE benutzt!
xXFloXx Threadstarter
Hält's aus hier
Beiträge: 8

Windows 2000
Delphi 7
BeitragVerfasst: So 05.08.07 16:47 
user profile iconarj hat folgendes geschrieben:
Prüf mal bitte ob du den Parameter SPIF_SENDCHANGE benutzt!


Also ich benutzte den Parameter: SPIF_UPDATEINIFILE!!!

aber noch etwas wenn ich keinen timer benutzte sondern mehrere Buttons dann funktioniert es! :autsch: ???
xXFloXx Threadstarter
Hält's aus hier
Beiträge: 8

Windows 2000
Delphi 7
BeitragVerfasst: So 05.08.07 18:54 
Sorry ich hab jetzt meinen Fehler gefunden!!!
pigfacejoe
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 332
Erhaltene Danke: 1

Win 10, Ubuntu
Delphi,Javascript, PHP, Java, Python
BeitragVerfasst: So 05.08.07 22:18 
Wo lag dein Fehler? Könnte für andere interessant sein...

Gruss
PigfaceJoe
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: So 05.08.07 22:24 
Naja er hat vermutlich SPIF_SENDCHANGE vergessen anzugeben ^^
xXFloXx Threadstarter
Hält's aus hier
Beiträge: 8

Windows 2000
Delphi 7
BeitragVerfasst: Di 07.08.07 19:54 
da ich noch ein totaler anfänger bin hab ich ein fehler in einer Schleife gehabt!!! :D :D