Board index » cppbuilder » scrolling while dragging

scrolling while dragging


2003-12-11 02:06:04 AM
cppbuilder84
Hello,
Does anyone know if it is possible to create dragging action while scrolling?. The drag and drop operation that I am creating involves an area that is larger than the screen, so I want to still be able to drag while I am positioning my cursor to the bottom/upper edge of my window to scroll up/down
any help would be greatly appreciated
thanks
 
 

Re:scrolling while dragging

Good Idea, I brought this into my actual project:
Insert something like this into the DragOver-Event of the TTreeView trvTree
or whatelse:
<clip>
// automatisch Scrollen
TMessage Msg;
if (Y < trvTree->Height/5)
{
Msg.Msg = WM_VSCROLL;
Msg.WParamLo = SB_LINEUP;
trvTree->Dispatch(&Msg);
trvTree->Invalidate();
}
if (Y>4*trvTree->Height/5)
{
Msg.Msg = WM_VSCROLL;
Msg.WParamLo = SB_LINEDOWN;
trvTree->Dispatch(&Msg);
trvTree->Invalidate();
}
</clip>
In the upper and lower fifth it fires Scroll-Messages.
HTH
-Hans-Arno
"alex" < XXXX@XXXXX.COM >schrieb im Newsbeitrag
Quote

Hello,
Does anyone know if it is possible to create dragging action while
scrolling?. The drag and drop operation that I am creating involves an area
that is larger than the screen, so I want to still be able to drag while I
am positioning my cursor to the bottom/upper edge of my window to scroll
up/down
Quote
any help would be greatly appreciated

thanks