Board index » cppbuilder » Tray icon & darg 'n' drop

Tray icon & darg 'n' drop


2005-10-03 06:06:31 PM
cppbuilder59
Hi,
Can tray icon be setted to be the acceptor of the
text which I drag my mouse?
The actual problem:
I made a small handy dictionary which is placed
in tray area. The dictionary is a simple TEdit and
can be opened by click on it's tray icon. I already
made a drag'n'drop for TEdit and that works fine.
I wanted to by-pass to first open the dictionary
and to drop the selected text *directly* to the tray
icon, and so speed-up the process of passing
data (text and phrases) to the dictionary...
--
Best regards,
Vladimir Stefanovic
 
 

Re:Tray icon & darg 'n' drop

Correction:
Quote
text which I drag my mouse?
[...] text which I drag by mouse?
--
Best regards,
Vladimir Stefanovic
 

Re:Tray icon & darg 'n' drop

"Vladimir Stefanovic" < XXXX@XXXXX.COM >wrote in message
Quote
Can tray icon be setted to be the acceptor of
the text which I drag my mouse?
No. Drag&Drop requires registering an HWND so the OS knows which window to
work with. Although it is simple enough to determine the HWND of the System
Tray, the tray has no concept of D&D operations and would not know what to
do with them, let alone know which window to forward them to based on the
icon being dropped onto.
Quote
The actual problem:
The only way I can think of getting around that is to have the tray icon
detect the WM_MOUSEMOVE message, and if the mouse button is currently held
down then automatically dispay the TEdit so that the user can then drop the
text onto the TEdit every time.
Gambit
 

{smallsort}

Re:Tray icon & darg 'n' drop

Quote
The only way I can think of getting around that is to have
the tray icon detect the WM_MOUSEMOVE message,
and if the mouse button is currently held down then
automatically dispay the TEdit so that the user can then
drop the text onto the TEdit every time.
Thank you! I'll check that definitely...
P.S.
I haven't forgotten my major problem with Indy sockets,
but I was too busy these days...
--
Best regards,
Vladimir Stefanovic