| View previous topic :: View next topic |
| Author |
Message |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Sun Oct 27, 2002 12:49 pm Post subject: Load Filelist - Choose from - And do it! |
|
|
1. need to load a file list from specific sub dir.
2. Then choose from the list - highlite item
3. Click button and something is activated with list item
A list is created of all existing win bmp's.
Highlite choice.
It is now chosen as desktop wallpaper.
All feedback welcomed. Thanks to all, mike |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Oct 27, 2002 2:07 pm Post subject: |
|
|
Here is an example of how to do it. It usses vdsback.dll from PGWARE.
Btw. I haven't test it, cause I didn't downloaded the DLL, but it should work...
| Code: | external @path(%0)vdsback.dll
DIALOG CREATE,Wallpaper,-1,0,180,145
DIALOG ADD,LIST,LIST1,0,0,180,145,DBLCLICK
DIALOG SHOW
%%dir = @dirdlg(Choose the directory with the BMP's)
list filelist,list1,%%dir\*.bmp
:Evloop
wait event
goto @event()
:List1dblclick
background bitmap,%%dir\@item(list1),center
goto evloop
:Close
exit |
|
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Sun Oct 27, 2002 6:57 pm Post subject: Thanks Skit |
|
|
Thanks Skit3000,
It works great but how can I get it to use the
highlited bmp as current wallpaper? mike |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sun Oct 27, 2002 10:41 pm Post subject: |
|
|
In Window 95 (and possibly later):
There are keys in both the WIN.INI file and the registry
containing the wallpaper setting. However, changing these
has no effect until Windows is restarted.
WIN.INI:
[Desktop]
Wallpaper=C:\WINDOWS\CLOUDS.BMP
Registry (Changing either of these also changes the other):
HKEY_CURRENT_USER\Control Panel\desktop\Wallpaper
HKEY_USERS\Control Panel\desktop\Wallpaper
You can open the Display Properties window from VDS and
change the wallpaper immediately:
Shell Open,Control.exe,desk.cpl
Someone else may know a better way to do this.
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Mon Oct 28, 2002 4:29 am Post subject: |
|
|
I believe skit's example does change the wallpaper to the highlighted BMP when you double-click it
PGWare's VDSBack DLL works well for setting the wallpaper to a BMP. For other file formats I make the registry changes like Mac suggested and have the VDSBack dll tell Windows to show the new wallpaper. I posted an example of this in the Knowledge Base section a while back, not sure how well it works on different versions of Windows..doubt it works on 95, suprised Mac didn't jump in to tell me it didn't  _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Mon Oct 28, 2002 4:38 am Post subject: |
|
|
Well, there ya go. I haven't used the VDSBACK.DLL...
And to Sheep...
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
|