Article View: borland.public.cppbuilder.nativeapi
Article #2409Re: Dragging from TEdit
From: DreamChaser
Date: Thu, 01 Mar 2007 00:57
Date: Thu, 01 Mar 2007 00:57
16 lines
1636 bytes
1636 bytes
Jos� wrote: > The events MouseUp and MouseDown are fired, but both are fired by the > TEdit where I started dragging, even if I release the button somewhere > else. (Appears to be a nasty bug) > > More events are fired if I set DragMode to dmAutomatic, but this makes > it impossible to focus a control to enter text. > It looks like you will need to set the drag manually. In the MouseDown of the Edit1 set the drag mode to true, in the MouseOver of Edit2 allow accepting, and in the DragDrop (I think) of Edit 2 do your data manipulation. This is off the top of my head, but I think it will get you looking in the right direction. DC
Technical Details
Message-ID:
<45e624ed$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<25fbu2tag6s8t0mseuqqh5qd87r8cppdus@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fc5357fd4c67f7bd X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII Date: Wed, 28 Feb 2007 18:57:25 -0600 From: DreamChaser <jkofsky@No-Spam.net> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Dragging from TEdit References: <25fbu2tag6s8t0mseuqqh5qd87r8cppdus@4ax.com> In-Reply-To: <25fbu2tag6s8t0mseuqqh5qd87r8cppdus@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 65.6.192.60 Message-ID: <45e624ed$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172710637 65.6.192.60 (28 Feb 2007 16:57:17 -0800) Lines: 16 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail