Article View: borland.public.cppbuilder.nativeapi
Article #2411Re: Dragging from TEdit
From: Jos�
Date: Thu, 01 Mar 2007 09:19
Date: Thu, 01 Mar 2007 09:19
21 lines
1852 bytes
1852 bytes
On Wed, 28 Feb 2007 18:57:25 -0600, DreamChaser <jkofsky@No-Spam.net> wrote in borland.public.cppbuilder.nativeapi: >> 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. The compiler complains if I set DragMode to a Boolean. Besides, it makes it impossible to edit data. But worse, your suggestion seems to imply that the program must know in advance whether the user intends to drag from Edit1 to Edit2 or the other way around. -- Jos�
Technical Details
Message-ID:
<ui6du2d4vqgcebqbc44pbr4m3g11etujjh@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<25fbu2tag6s8t0mseuqqh5qd87r8cppdus@4ax.com> <45e624ed$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fc5357fd4c67f7bd X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: Jos� <jose@127.0.0.1> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Dragging from TEdit Date: Thu, 01 Mar 2007 10:19:54 +0100 Message-ID: <ui6du2d4vqgcebqbc44pbr4m3g11etujjh@4ax.com> References: <25fbu2tag6s8t0mseuqqh5qd87r8cppdus@4ax.com> <45e624ed$1@newsgroups.borland.com> X-Newsreader: Forte Agent 4.2/32.1117 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 82.75.17.140 X-Trace: newsgroups.borland.com 1172740807 82.75.17.140 (1 Mar 2007 01:20:07 -0800) Lines: 21 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail