(Refer to http://blackbox4wind...lackbox/?p=2941 for installing and using bbTCL in bbZero x64)
Hello everyone, I just finished with a new bbTCL powered bbInterface control and actually I'm pretty happy with the result.
As you can see in the video below it's a wallpaper switcher widget.
Full video: http://webmup.com/34e8e/vid.webm
It scans image files from a specific folder and let the user browse them in the form of thumbnails before setting them as a desktop wallpaper.
Usage
The first thing to do is to hit the "update thumbs" button for letting it generate the thumbnails that will be used on the bbInterface control itself.
After that clicking the arrows will go trough the thumbnails and the "SET!" button will apply the selected image as the desktop wallpaper.
The "random" button will select and set a random background from the list.
If you rightclick the thumbnail the widget resets itself deleting all the generated thumbnails.
If you add new images in the folder, or delete some of them, pressing again "update thumbs" will take action accordingly: it will delete the thumbnails for the wallpapers that don't exist anymore and generate them for the new ones.
I've enabled the auto-hide property for the widget because I think it's convenient it goes away when snapped to the screen edge, while you can drag it somewhere on the desktop to pin it during use.
Installation
Please note that you have to install ImageMagick because my bbTCL script uses its "convert.exe" command-line utility to generate the thumbnails. You have two options here:
- install a suitable release from http://www.imagemagi...ry-releases.php
- use the attached file that I extracted from the release: convert.zip 4.57MB 38 downloads
The utility "convert.exe" needs to be in a folder that is specified in Window's PATH variable.
In my case the bbZero root folder is in it so I put it there. I guess if you use ImageMagick's installer it will include itself in the PATH variable.
If you use wallpaper files that doesn't have your screen resolution, it's better to disable, under Blackbox>Configuration>Graphics, both "Enable Background" and "Smart Wallpaper".
These are the TCL scripts and bbInterface controls:
WallpaperSwitcher.zip 2.46KB 40 downloads
In the TCL scripts, just in the beginning, two paths need to be modified to your needs:
proc WallpapersFolder {} { return "C:/bbZero/wallpapers" }
And...
set fp [open "C:/bbZero/plugins/bbInterface/BBInterface.rc" r]
Enjoy (and let me know if you have any trouble)!