🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Dragging from TEdit

#2437
From: Jos�
Date: Sat, 03 Mar 2007 20:51
29 lines
1845 bytes
On Thu, 01 Mar 2007 16:41:26 -0600, DreamChaser <jkofsky@No-Spam.net>
wrote in borland.public.cppbuilder.nativeapi:

>What does all this mean:
>
>Edit1OnMouseDown
>	Edit1->BeginDrag(true);
>
>Edit2DragOver
>	if (Source == Edit2) { Accept = true; }
>
>Edit2DragDrop
>	Edit2->Text = Edit1->Text;

Some things I discovered:
1. The Accept =true is not really needed.
2. It is up to me what to have in the DragDrop method.

In fact, I simply want to select a number of consecutive controls.
This happens in DradOver, and I do not really need DragDrop.

One problem has remained:
The DoubleClick method opens a dialogbox. When this box is closed, the
event MouseDown occurs again, and the system seems to think that the
mouse is down. IOW a drag operation has started although the mouse
button is up. I must click again to  tell the system that the mouse is
up.
-- 
Jos�
Technical Details
Message-ID: <8mnju2lbjc7v232jhpojftamopkh5pvct6@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <25fbu2tag6s8t0mseuqqh5qd87r8cppdus@4ax.com> <45e624ed$1@newsgroups.borland.com> <ui6du2d4vqgcebqbc44pbr4m3g11etujjh@4ax.com> <45e7568d@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: Sat, 03 Mar 2007 21:51:04 +0100
Message-ID: <8mnju2lbjc7v232jhpojftamopkh5pvct6@4ax.com>
References: <25fbu2tag6s8t0mseuqqh5qd87r8cppdus@4ax.com> <45e624ed$1@newsgroups.borland.com> <ui6du2d4vqgcebqbc44pbr4m3g11etujjh@4ax.com> <45e7568d@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 1172955087 82.75.17.140 (3 Mar 2007 12:51:27 -0800)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail