View unanswered posts | View active topics It is currently Fri Sep 10, 2010 10:02 pm



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 135 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 9  Next
 BBIcons 
Author Message
Moderator

Joined: Tue Jan 25, 2005 1:13 am
Posts: 595
Reply with quote
Post 
Beautiful!


Mon Sep 26, 2005 8:14 am
Report this post
Profile
Sponsored Links
Google Adsense


Moderator
User avatar

Joined: Mon Dec 06, 2004 12:06 am
Posts: 405
Location: Kungsbacka, Sweden
Reply with quote
Post 
psy4meuh wrote:
qwilk> I think you can upload it to the plugin page... thx

Excellent - done! :D

BR//Karl -> qwilk


Mon Sep 26, 2005 6:29 pm
Report this post
Profile WWW
Moderator
User avatar

Joined: Mon Dec 06, 2004 12:06 am
Posts: 405
Location: Kungsbacka, Sweden
Reply with quote
Post 
Feature request - quote from the xoblite bb2 changes.txt (see http://xoblite.net/docs/changes_bb2.txt):

Quote:
[changed Desk.cpp, BBApi.h 10/28/2004 qwilk]
- A new API message BB_DRAGTODESKTOP (10510) is now sent when something is dropped on the desktop
- The LPARAM specifies the full path of the dropped file (i.e. relay of the WM_DROPFILES WPARAM)
- A plugin could subscribe to this message to get notified when something is dropped on the desktop, e.g. a desktop icons plugin could create new shortcut icons for dropped files with extension .exe (thanks for the brainstorming session frantic!)

...something for BBIcons 2.06 perhaps? ;)

BR//Karl -> qwilk

PS. The default icon size for a drag'n'drop-created icon could either be the 32x32 pixels Windows default, or the same as the first or the latest created BBIcon.


Wed Sep 28, 2005 8:55 am
Report this post
Profile WWW
BBWise
User avatar

Joined: Thu Mar 31, 2005 6:28 am
Posts: 47
Location: France
Reply with quote
Post 
OK qwilk... i register that feature request

I'll take a look on how to do it, and probably include it in next release...


Wed Sep 28, 2005 10:04 am
Report this post
Profile
BBWise
User avatar

Joined: Thu Mar 31, 2005 6:28 am
Posts: 47
Location: France
Reply with quote
Post 
... still working on it ...

.... about the BB_DRAGTODESKTOP message, this is a 'Drag' message, not a 'Drop' message, so i think you will need to press a key to create the new icon while draging a file over the desktop...

To other devs : I'm i right? Actually i do something like that :
Code:
      case BB_DRAGTODESKTOP:
      {
         if (GetAsyncKeyState(VK_RETURN))          {
              POINT pos;
              GetCursorPos(&pos);
              InsertMyIcon((char *)lParam, pos.x, pos.y);
            
         }
      }
      break;

I didn't found anything to create the icon on 'mouse_button_up', because if the mouse button is released, i don't receive the BB_DRAGTODESKTOP message anymore... can any dev confirm it... or if you have any ideas...

I'm also working on specific CD-ROM functions :
- Any icon pointing to a drive root (ie: 'd:\', 'f:\') will be definable as a 'CD-ROM Manager'... if this option is checked, the icon will have 2 pictures depending on CD presence on the drive, and a command to eject the drive...

[NEXT VERSION IN PROGESS... STAY TUNED]


Mon Oct 03, 2005 12:58 pm
Report this post
Profile
BBWise
User avatar

Joined: Sat Jul 09, 2005 3:04 am
Posts: 55
Location: Neverwhere
Reply with quote
Post 
What you might have to do is while dragging over it the plugin, detect the drag parameter eg. the filename. Cache it, store it in a string. If the plugin then detects a mouseup, then it will use that little string containing the filename or other info.

That's the way I'd do it with the info you gave here, there may be a simpler way. :)

Hope I helped a little at least.


Mon Oct 03, 2005 1:17 pm
Report this post
Profile YIM
BBWise
User avatar

Joined: Thu Mar 31, 2005 6:28 am
Posts: 47
Location: France
Reply with quote
Post 
Why not...

But if i do like that, i'll only be able to detect the 'MOUSE_UP' event if it occurs over an existing icon... because the BB_DRAGTODESKTOP message is relayed by the blackbox desktop... and it doesn't relay 'MOUSE_UP' event...


Mon Oct 03, 2005 1:33 pm
Report this post
Profile
BBWise
User avatar

Joined: Thu Mar 31, 2005 6:28 am
Posts: 47
Location: France
Reply with quote
Post 
Hello again,

here i am with a new version...

:?: What's new?
- Drag to desktop : You can now add a new icon by pressing the 'return' key while dragging a file or folder to the desktop.
- CD-ROM functions : As i said before, when an Icon points to a drive root (ie: 'd:\', 'f:\'), you have a new menu called 'CD-ROM' that allows you to define this icon as a CD-ROM drive icon (by checking 'Manage as CD-ROM'), and then have some specific functions for this icon :
-----> Open CD-ROM : it opens the drive (eject the media), in the menu or by [SHIFT]-Right Click on the icon
-----> Define Empty Icon : Choose an Icon to display when the cdrom drive is empty (when a disk is in the drive, normal icon is displayed)

Here is how this new menu looks :
Image

Todo :
- Find a coolest way to directly drop the file on the desktop to create the new icon... [please help]
- Autodetect if the 'drive root' icon points to an optical drive [almost done]
- Add a command to close the cd-rom drive. [almost done]
- Rewrite the CD-ROM menu to something like 'Optical drive'-->'Eject...' [easy]
- Expand the 'CD-ROM' functions to removable medias (USB keys, External drives...)
- When 'DropToDesktop' & 'CD-ROM' commands will be finished, update the helpfile & example RC to releas the plugin...

[ATTACHMENT DELETED -> SEE FIRST POST]


Last edited by psy4meuh on Tue Oct 18, 2005 8:44 am, edited 1 time in total.



Mon Oct 03, 2005 4:06 pm
Report this post
Profile
BBSage
User avatar

Joined: Wed Sep 21, 2005 10:29 pm
Posts: 132
Reply with quote
Post 
I love you.

Err...

No, but thank you. BBIcons is right up there with BBInterface in my list of plugins I love!

_________________
-Elric


Mon Oct 03, 2005 4:11 pm
Report this post
Profile ICQ YIM
Moderator

Joined: Tue Jan 25, 2005 1:13 am
Posts: 595
Reply with quote
Post 
Kudos, psy4... One more excellent job... And I hope u got my e-mails... :)


Mon Oct 03, 2005 4:41 pm
Report this post
Profile
BBSage

Joined: Sun Dec 05, 2004 11:14 pm
Posts: 122
Location: Pennsylvania
Reply with quote
Post 
Wow... that's just... wow.

Now I feel silly for dumping BBIcons in favor of using BBInterface for all my 32x32 px application launching buttons. :D

I can't believe, that after all this time, I want to try another BBIcons build!


Mon Oct 03, 2005 5:02 pm
Report this post
Profile YIM
Moderator
User avatar

Joined: Mon Dec 06, 2004 12:06 am
Posts: 405
Location: Kungsbacka, Sweden
Reply with quote
Post 
Psy4: You may want to look at the BBInterface source code as this plugin already supports drag to desktop (which may of course interfere with BBIcons, so you should probably consider adding a toggling bool for the feature in the global settings for BBIcons and possibly also BBInterface).

BR//Karl -> qwilk


Mon Oct 03, 2005 9:45 pm
Report this post
Profile WWW
BBWise
User avatar

Joined: Thu Mar 31, 2005 6:28 am
Posts: 47
Location: France
Reply with quote
Post 
elricfate, pitkon, Xavier-DL > :oops: :oops: :oops: Thx for these feedbacks, I did not expect that it would be so tender... thx for it.

Qwilk > I'll take a look at BBInterface code, and see if i can do the same...


One more thing, i've seen that when this version of BBIcons is slitted or inserted into BBInterface the '[SHIFT] Right-click thingy doesen't work, anyone know if i can register BBInterface to forward this command to BBIcons... any advice would be welcome.

Saa ya!


Wed Oct 05, 2005 6:49 am
Report this post
Profile
BBChild

Joined: Thu Oct 06, 2005 6:39 pm
Posts: 7
Reply with quote
Post 
i first tried out both bbinterface and bbicons205b to see the differences, everything worked out fine. when i loaded bbicons206 nothing showed up on the desktop. i even tried out putting in the following in the rc file as REVEREND suggested to aryan in http://www.lostinthebox.com/viewtopic.php?t=134&postorder=asc&start=15

bbicons.transparency.enabled: false
bbicons.transparency.level: 60
bbicons.dblclick: false
bbicons.snapicons: false
bbicons.snapicons.distance: 8
bbicons.icon1.cmd: c:\windows\explorer.exe
bbicons.icon1.arguments: /e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
bbicons.icon1.ico: c:\windows\explorer.exe
bbicons.icon1.size: medium
bbicons.icon1.caption:
bbicons.icon1.captionfont: nu
bbicons.icon1.captionsize: 8
bbicons.icon1.captionweight: 0
bbicons.icon1.caption.display: 0
bbicons.icon1.caption.italic: 0
bbicons.icon1.caption.under: 0
bbicons.icon1.caption.strike: 0
bbicons.icon1.caption.angle: 0
bbicons.icon1.caption.color: 0
bbicons.icon1.x: 2
bbicons.icon1.y: 2
bbicons.icon1.alwaysontop: false
bbicons.icon1.snapwindow: false
bbicons.icon1.transback: false
bbicons.icon1.inslit: true

i even tried changing medium to 32 but nothing happens.

as soon as i unload then reload bbicons the code dissapears.

what gives?


Thu Oct 06, 2005 8:08 pm
Report this post
Profile
Moderator
User avatar

Joined: Sat Dec 11, 2004 12:06 am
Posts: 1310
Location: Violent Paradise
Reply with quote
Post 
Only thing I can see is:
Code:
bbicons.icon1.inslit: true

Do you have the slit plugin loaded?
Does bbIcons path stament in plugins.rc begin with an "&"?
Is the slit set to autohide in blackbox.rc?:
Code:
session.screen0.slit.autoHide:          true


Thu Oct 06, 2005 10:22 pm
Report this post
Profile
Sponsored Links
Google Adsense


Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 135 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 9  Next


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.