[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Transparent Window, or event carcher
From: |
Pascal Bourguignon |
Subject: |
Re: Transparent Window, or event carcher |
Date: |
Sat, 9 Feb 2002 22:46:22 +0100 (CET) |
> From: Luis Garcia Alanis <luis@sogrp.com>
>
> I am implementig GNUDock.app
>
> andI have a problem, I need to detect the drags to the dock space of
> docking. but there is no way of doing this cleanly.
>
> 1) modify the Desktop of GWorkspace: Works but dragging has to be on the
> desktop. It works by sending a notification from GWorkspace to the Dock
> in order to see the Drag type and if its correct create the dock leaf.
>
> 2) Invisible window goinf from top to bottom of the screen. Width of the
> dock. and catch the drags like a normal app. (not posible, because there
> is no way of creating an invisible window)
>
> 3)define a windowless event rect for catching events. (no idea of how
> to do this)
>
> 4) have some sort of permanent method checking every time for mouse pos,
> and stuff..... not clean, CPU consuming, ugly hack.
>
> Any ideas of how should I adress this problem?
> How can I know when to dock something If I don't know that its time, and
> something is being dragged.
IIRC, on NeXT, the dock is managed by the WorkspaceManager.app. It's
not a separate application. The WorkspaceManager is the application
that handle the drag-and-drop of icons. Therefore, it's easy for it to
check if an icon is moved over a dock position.
Personnaly, I don't see any reason why the dock should be a separate
application. (If we wanted to change the behavior of the dock or of
GWorkspace, we have the sources to do it and subclass their
implementation).
> Fiend solves this problem by dragging stuff to the Fiend main icon. but
> I don't want a dock to have a dock that you need to drag icons to the
> dock head in order to dock them.
>
> help! :S
>
> thanks :)
>
--
__Pascal_Bourguignon__ (o_ Software patents are endangering
() ASCII ribbon against html email //\ the computer industry all around
/\ and Microsoft attachments. V_/ the world http://lpf.ai.mit.edu/
1962:DO20I=1.100 2001:my($f)=`fortune`; http://petition.eurolinux.org/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT d? s++:++(+++)>++ a C+++ UB+++L++++$S+X++++>$ P- L+++ E++ W++
N++ o-- K- w------ O- M++$ V PS+E++ Y++ PGP++ t+ 5? X+ R !tv b++(+)
DI+++ D++ G++ e+++ h+(++) r? y---? UF++++
------END GEEK CODE BLOCK------
Re: Transparent Window, or event carcher, Dan Grillo, 2002/02/11
Re: Transparent Window, or event carcher, Lars Sonchocky-Helldorf, 2002/02/11