Daily stuff not frequently posted a software developer finds out or rants about.

Tuesday, October 16, 2007

Auto-arranging the desktop

Total Commander is a file manager I use daily, and it's highly configurable. One feature very important to me is a copy/move queue that runs in the background, so that I can continue managing files while some are copied or moved. This queue always appears at position 0,0 on the screen though, which I find disturbing.

Since I like to train myself in the good old non-VCL non-RTL non-OO style myself from time to time, I wrote this little TCQueuePos.pas, which just continously tries to locate the window and moves it to the proper position if necessary.

The more I think about it, the more I like the idea of a more general kind of window clearance app which moves a bunch of windows into preferred positions (if you use two screens, you often have preferred positions for a bunch of small standard apps). No idea whether I find the time to do it, so I posted the file (link on filename above) LGPL'ed as a mini tutorial.

As a demonstration on how simple working with Desktop windows is, i've LGPL'ed and uploaded it (link on filename above). It compiles with Borland Delphi (the free Turbo Delphi edition, even the command line dcc32.exe, as well as the Win32 and Win64 versions of FreePascal).

0 Comments:

Post a Comment

<< Home