Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

Drag and Drop Component Find similar branches


avr555   (2001-12-17 19:54) [0]

I have this question:
I want to make a component that could be “dragged” in shape.
As such component decided to use VirtualTreeView
I use three events for dragging: OnMouseDown, OnMouseMove, OnMouseUp.

When I used CheckListBox as a draggable component, in order for the component not to fail, I called the SetCapture (self.Handle) function and everything worked.
And when switching to VirtualTreeView after calling SetCapture (self.Handle), the component stops moving. If you do not call SetCapture (self.Handle), then everything works, only the component is "dropped" from the pointer when you drag.

What to do?



DK   (2001-12-19 02:16) [1]

Try inserting into the OnMouseDown handler:
var Control: TControl; begin try Control: = Sender as TControl; ReleaseCapture; Control.Perform (WM_SYSCOMMAND, $ F012, 0); finally end;
end;



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top





Memory: 0.54 MB
Time: 0.025 c
7:22430
AlexK
2001-09-21 12:28
2002.01.08
key lock


1:22193
T2
2001-12-14 03:17
2002.01.08
DLL


1:22180
Nathan
2001-12-21 11:07
2002.01.08
Problem!


7:22431
Pasha
2001-09-21 15:58
2002.01.08
How to remove from the sound card, the waveform.


1:22147
vinni2000
2001-12-20 12:59
2002.01.08
Need advice on RichEdit !!!!!!!!





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish