José Roca Forum
Web Site
News: Version 1.16 of the Windows API headers released
 
*
Welcome, Guest. Please login or register. September 09, 2010, 02:28:40 PM


Login with username, password and session length


PowerBASIC is a trademark of PowerBASIC, Inc.
This is not an official PowerBASIC site and we are not affiliated with PowerBASIC, Inc.
DISCLAIMER: The software and accompanying documentation are provided "as is" and without warranties as to performance or merchantability or any other warranties whether expressed or implied. Because of the various hardware environments into which the software may be used, no warranty of fitness for a particular purpose is offered. The user must assume the entire risk of using the software. In no case shall any of the contributors to this project be liable for any incidental, special or consequential damages or loss, including, without limitation, lost profits or the inability to use equipment or access data. This is true even if we are advised of the possibility of such damages. We also don't have any obligation of fix eventual bugs or to add new features.
Pages: « 1 2 3 4 5 »   Go Down
  Print  
Author Topic: "Of The Bay"  (Read 13801 times)
0 Members and 3 Guests are viewing this topic.
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #15 on: October 28, 2008, 08:05:19 AM »

Thank you Bud!

I am glad to read that it runs also on your XP SP3 computer.

I did it, because i like to use a nice picture for my desktop background, but with all these icons spread out over it, it looks more like a teenager bed room than my wife's lounge. But now with DockBar, everything has been clean up to please her. Grin

The idea behind Dockbar is to use it also like a super-menu to start your own applications without resorting on shortcuts, and reading what to do from a disk file working like a playlist.

Example of script file:
(ApplicationFullPathName, WorkingDir, CmdLine, IconToUse)
Quote
"C:\MyApplications\BassBox24\BassBox.exe","","D:\Audio\PlayList.bbp","C:\MyApplications\DockBar\FolderIcon\BassBox.png"
"C:\MyApplications\MovieBox\MovieBox.exe","","","C:\MyApplications\DockBar\FolderIcon\MovieBox.png"
"D:\SED\SED_116.exe","","",C:\MyApplications\DockBar\FolderIcon\PowerBASIC.png"
"C:\WinDev12\Programmes\WinDev12.exe","@EXEPATH@","","@EXEICON@"
etc.

« Last Edit: October 28, 2008, 08:13:10 AM by Patrice Terrier » Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #16 on: October 28, 2008, 08:23:45 AM »

In AERO DockBar, each icon (32x32) is being drawn on a frame (48x48) named "Back.png" located in the "Resource" sub-folder.

Thus you can use your own frame if you replace "Back.png" with another PNG using a size of 48x48.

See the attached example (save first the current "Back.png" to later restore it)

 
« Last Edit: October 28, 2008, 09:00:39 AM by Patrice Terrier » Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #17 on: October 28, 2008, 10:02:17 AM »

I like these two
Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Emil Weiss
Guest
« Reply #18 on: October 28, 2008, 01:28:28 PM »

i have XP sp2 only what i can show is in Attached Pic

greets Emil
Logged
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #19 on: October 28, 2008, 03:58:44 PM »

Emil,

Do you have any shortcuts on your desktop (apart "tray" and "computer") ?

...
Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Emil Weiss
Guest
« Reply #20 on: October 28, 2008, 04:18:51 PM »

Emil,

Do you have any shortcuts on your desktop (apart "tray" and "computer") ?

...

Arbeitsplatz; Netzwerk; Papierkorb

greets Emil
Logged
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #21 on: October 28, 2008, 06:29:03 PM »

Then add a few more shortcuts  Grin

...
Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #22 on: October 28, 2008, 08:26:00 PM »

This new version allows you to change on the fly (from the poup menu) the icon's frame background.

It is provided with several PNG files that are stored in the \Resource\IconFrame sub-folder.

The new ZIP file is attached to the first post of this thread.

 Cool
Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Emil Weiss
Guest
« Reply #23 on: October 29, 2008, 12:22:43 AM »

Then add a few more shortcuts  Grin

...

Hmm i think a Dockbar has no effect when paste many Icons on my Desktop
i'm use a Dockbar that i have a clean Desktop with no Icons

greets Emil
Logged
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #24 on: October 29, 2008, 09:01:42 AM »

Emil,

If you have a clean desktop, i mean with only "Arbeitsplatz, Netzwerk, Papierkorb" (poste de traval, réseau, corbeille), then you don't need "AERO DockBar", because this one will no find anything to populate the bar with icons.

In such a case i could display a message like this one:
"You have a neat clear desktop, "AERO DockBar" is unable to clean it up"  Wink

By the way I did not find yet the best way to detect, and use those special shortcuts matching "computer, network, tray, etc.", it is on my "todo list".

 Cool



Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #25 on: October 29, 2008, 08:39:43 PM »

The shortcut detection has been enhanced to resolve missing virtual lnk files.

Code:
FUNCTION ResolveShortcutName(zLnk AS ASCIIZ) AS STRING
    LOCAL sUseIcon AS STRING

    IF zLnk = ShortCutDisplayName(%CSIDL_BITBUCKET) THEN sUseIcon = "RecycleBin.png":          GOTO ExitLnk
    IF zLnk = ShortCutDisplayName(%CSIDL_DRIVES)    THEN sUseIcon = "MyComputer.png":          GOTO ExitLnk
    IF zLnk = ShortCutDisplayName(%CSIDL_NETWORK)   THEN sUseIcon = "NetworkNeighborhood.png": GOTO ExitLnk
    IF zLnk = ShortCutDisplayName(%CSIDL_PERSONAL)  THEN sUseIcon = "MyDocuments.png":         GOTO ExitLnk
    IF zLnk = ShortCutDisplayName(%CSIDL_MYVIDEO)   THEN sUseIcon = "MyVideo.png":             GOTO ExitLnk
    IF zLnk = ShortCutDisplayName(%CSIDL_MYMUSIC)   THEN sUseIcon = "MyMusic.png":             GOTO ExitLnk
    EXIT FUNCTION

ExitLnk:
    FUNCTION = sUseIcon
END FUNCTION

You can even change the related icons and use your own as a replacement for those provided in the resource folder, the only mandatory is to respect the file name for the PNG files, or to edit the ResolveShortcutName function to use the new name.

I have also added .cpl file extension detection because the ISHellFolder interface is unable to handle them correctly.

Now Emil, you should see something...

 Shocked

« Last Edit: October 29, 2008, 08:42:51 PM by Patrice Terrier » Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #26 on: October 30, 2008, 06:46:42 PM »

This new version introduces a new flare effect and some new menu options

The shorcut firing has been also reworked for better differentiation between EXE and virtual links.

The latest version is attached to the first post of this thread.

 Cool

Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #27 on: October 31, 2008, 08:44:00 PM »

"Of The Bay" is the successor of the DockBar project with these new features:
- Enhanced flare effect.
- Hability to change the layer being used to display the icons.
- And further CPU % reduction.

The new ZIP file is attached to the first post of this thread
Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Petr Schreiber
Sr. Member
****

Karma: 9
Offline Offline

Posts: 420


« Reply #28 on: November 02, 2008, 03:01:09 PM »

Hi Patrice,

great job as usual - works well on my PC ( AMD Sempron 3400+, 1GB RAM, GeForce 6150LE, WinXP SP2+Updates CZ ).
One thing - it would be nice if I could drag some file on the dockbar ( document, program, ... ) from Windows Explorer for example.

This way it would not double desktop and it would add new dimension of usability.

The CPU usage is exemplary - 0 to 2%.


Thanks,
Petr
Logged

AMD Sempron 3400+ | 1GB RAM @ 533MHz | GeForce 6200 / GeForce 9500GT | 32bit Windows XP SP3

psch.thinbasic.com
Patrice Terrier
Global Moderator
Hero Member
*****

Karma: 36
Offline Offline

Gender: Male
Posts: 1353


WWW
« Reply #29 on: November 02, 2008, 05:20:48 PM »

Quote
it would be nice if I could drag some file on the dockbar
Hi Petr,

That's a good suggestion.

Here are a few guidances if anybody wants to do it Grin

Step 1: declaration section
Code:
%WM_DROPFILES = &H233
DECLARE SUB DragAcceptFiles LIB "SHELL32.DLL" ALIAS "DragAcceptFiles" (BYVAL hwnd AS DWORD, BYVAL fAccept AS LONG)
DECLARE SUB DragFinish LIB "SHELL32.DLL" ALIAS "DragFinish" (BYVAL hDrop AS DWORD)
DECLARE FUNCTION DragQueryFile LIB "SHELL32.DLL" ALIAS "DragQueryFileA" (BYVAL hDrop AS DWORD, BYVAL uiFile AS DWORD, lpStr AS ASCIIZ, BYVAL cch AS DWORD) AS DWORD

Step 2 To put in the main code section before entering the message pump
Code:
          CALL DragAcceptFiles(hMain, %TRUE)

Step 3 To put in the window proc
Code:
    CASE %WM_DROPFILES '// Drag & drop
         nFilesDropped = DragQueryFile(wParam, -1, "", 0)
         szFileName = ""
         nCount = 0
         IF nFilesDropped > 0 THEN
'            Put your code there
         END IF
         CALL DragFinish(wParam)
Logged

Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com
Pages: « 1 2 3 4 5 »   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC

IMPRESSUM
Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.086 seconds with 19 queries.