🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13623

Problem with mouse down and drag

#13623
From: Greg Stantin
Date: Tue, 30 Sep 2003 16:35
29 lines
2081 bytes
I have this code in my MouseDown() event, that tells the program
i am ready to drag.

    //Be sure Sender can be converted into a TListView
    if(!dynamic_cast<TListView*>(Sender)) return;

    //Convert Sender into a TListView
     TListView *DragListView = (TListView*)Sender;

    //Begin the dragging process
     DragListView->BeginDrag(0);

The problem is this, if i right-click and select an items from my
popup
menu, after the menu is dismissed the cursor has become a drag cursor.
I have to hit escape to get rid of it.  If i select multiple items and
and i
am unchecking a few (ctrl+left click), it thinks i am dragging.  What
do i have to do to make it only drag if i have the left mouse button
down?  There may be a few more things that need to be fixed that
i can't see right now, but i would appreciate any help in solving
them.

Also i noticed, that the mouse is ghosted when i drag a lot of items
to where its supposed to be dropped.  I see like 3 extra mouse
cursors there.  What do i have to do to fix some of these issues?


Thanks.
Technical Details
Message-ID: <3f79b0d9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e64522c9a2bc7f50,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-30 09:48:10 PST
Reply-To: "Greg Stantin" <gstantin@stantonassoc.com>
From: "Greg Stantin" <gstantin@stantonassoc.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Problem with mouse down and drag
Date: Tue, 30 Sep 2003 11:35:35 -0500
Lines: 31
Organization: Stantin Assoc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 66.140.14.224
Message-ID: <3f79b0d9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1064939737 66.140.14.224 (30 Sep 2003 09:35:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail