forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Load Filelist - Choose from - And do it!

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Sun Oct 27, 2002 12:49 pm    Post subject: Load Filelist - Choose from - And do it! Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sun Oct 27, 2002 2:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
noveltech
Contributor
Contributor


Joined: 16 Sep 2002
Posts: 105

PostPosted: Sun Oct 27, 2002 6:57 pm    Post subject: Thanks Skit Reply with quote

Thanks Skit3000,

It works great but how can I get it to use the
highlited bmp as current wallpaper? mike
Back to top
View user's profile Send private message
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sun Oct 27, 2002 10:41 pm    Post subject: Reply with quote

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. Wink

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Mon Oct 28, 2002 4:29 am    Post subject: Reply with quote

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 Wink

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Mon Oct 28, 2002 4:38 am    Post subject: Reply with quote

Well, there ya go. I haven't used the VDSBACK.DLL... Wink

And to Sheep... Razz Razz Razz Very Happy

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group