Re:Re:Re: Background picture for Delphi windows

Posted by WAllison:

In Reply to: Re:Re:Re: Background picture for Delphi windows posted by JiiPee:

: : heres the win32 basics :

: : procedure ChangeDesktop(Filename: string);
: : var lpBuffer: Array [0..MAX_PATH] of Char;
: : begin
: : StrPCopy(lpBuffer, Filename);
: : SystemParametersInfo(SPI_SETDESKWALLPAPER,0,@lpBuffer, 0);
: : end;

: : I know this works i've tried it myself - I think it might need some work in registering the files but just look up SystemParametersInfo in Win32 help.

: --------------------------------------------------
: But there is no advices for the file, path, and button. SORRY Im not an expert in coding.

Just design a simple form and use a OpenFileDialog to select a file.

If ur really struggling let us know and i'll email u an app maybe tomorrow.

Related Articles and Replies

DelphiLand Discussion Forum