<div>If you want something less idyllic and a quick (and hopefully not nasty) solution . . .</div>
<div>&nbsp;</div>
<div>you might train the user to Crtl+Click or double click the components they want to copy. Declare a global&nbsp;Tstringlist, and create in the form FormCreate event,&nbsp;&nbsp;(free it in the form's ondestroy I think), attach to the copyable components' onmousedown a method (common for components of common descent) to test the mouse down for a CRTL presence or just use the ondoubleclick.
</div>
<div>&nbsp;</div>
<div>Once fired, in the chosen method add to the Tstringlist the caption or text property contents.</div>
<div>&nbsp;</div>
<div>Add a popup menu item for the form, &quot;Copy Chosen&quot; or something, and put the text held in the Tstringlist onto the clipboard, or write&nbsp;it to stream, or&nbsp;send a wm_CopyData message,&nbsp;and always clear the Tstringlist for the next round.
</div>
<div>&nbsp;</div>
<div>As I said not idyllic but good enough sometimes.</div>
<div>&nbsp;</div>
<div>Paul</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 25/10/05, <b class="gmail_sendername">Paul McKenzie</b> &lt;<a href="mailto:paul@smss.org.nz">paul@smss.org.nz</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Have you looked into converting the Form (Selected area) to a canvas.<br>I can't remember how to do this (many years since I looked into this area) - I think you can print
<br>the form to a file that may give the canvas or there are functions to convert the form to a canvas -<br>It may be as easy as just looking at the Form.Canvas.<br><br>HTH<br><br>This may give some new direction or ideas...
<br><br>Regards<br>Paul McKenzie<br>Wellington<br>New Zealand<br><br><br>John Bird wrote:<br>&gt; Even if I use one of the copy/paste aware controls, ideally what I want to<br>&gt; do is to allow users to drag and select over a range of the screen.&nbsp;&nbsp;That is
<br>&gt; give the user the freedom to select and copy whatever they want as though<br>&gt; they were in a text document/email/word document etc...<br>&gt;<br>&gt; eg to pick up a name and 3 address lines in one selection.
<br>&gt; These are in 4 different controls, so I don't think I can do that anyway<br>&gt; with any normal components....<br>&gt;<br>&gt; John<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: Rohit Gupta [mailto:<a href="mailto:rohit@cfl.co.nz">
rohit@cfl.co.nz</a>]<br>&gt; Sent: Tuesday, 25 October 2005 10:18 a.m.<br>&gt; To: <a href="mailto:johnkbird@paradise.net.nz">johnkbird@paradise.net.nz</a>; NZ Borland Developers Group - Delphi List<br>&gt; Subject: Re: [DUG] Copy and Paste
<br>&gt;<br>&gt;<br>&gt; For Data, you should be using StaticText.&nbsp;&nbsp;Labels are not for<br>&gt; dynamic information.&nbsp;&nbsp;I still dont know if Copy/Paste will work... but it<br>&gt; is the more appropriate component for your purpose.
<br>&gt;<br>&gt; From: &quot;John Bird&quot; &lt;<a href="mailto:johnkbird@paradise.net.nz">johnkbird@paradise.net.nz</a>&gt;<br>&gt; To:&nbsp;&nbsp; &quot;'NZ Borland Developers Group - Delphi List'&quot; &lt;<a href="mailto:delphi@ns3.123.co.nz">
delphi@ns3.123.co.nz</a>&gt;<br>&gt; Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[DUG]&nbsp;&nbsp;Copy and Paste<br>&gt; Date sent:&nbsp;&nbsp;&nbsp;&nbsp;Fri, 21 Oct 2005 16:02:46 +1300<br>&gt; Organization: John Bird Consulting<br>&gt; Send reply to:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:johnkbird@paradise.net.nz">
johnkbird@paradise.net.nz</a>,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; NZ Borland Developers Group - Delphi List &lt;<a href="mailto:delphi@ns3.123.co.nz">delphi@ns3.123.co.nz</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:delphi-request@ns3.123.co.nz">
delphi-request@ns3.123.co.nz</a>?subject=unsubscribe&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:delphi-request@ns3.123.co.nz">delphi-request@ns3.123.co.nz</a>?subject=subscribe&gt;<br>&gt;<br>&gt;<br>&gt; With data displayed in labels on a form or data displayed in
<br>&gt; stringlists (read only) there seems no way to use the clipboard to<br>&gt; copy and paste data. Is there a way around this, or to allow a copy<br>&gt; and paste option do I have to either (i) put the data in the clipboard
<br>&gt; programmatically or (ii) use a different control to display data.<br>&gt;<br>&gt; John<br>&gt;<br>&gt;<br>&gt; Regards<br>&gt;<br>&gt; Rohit<br>&gt;<br>&gt; ====================================================<br>
&gt; ==================<br>&gt; CFL - Computer Fanatics Ltd.&nbsp;&nbsp;21 Barry's Point Road, AKL, New<br>&gt; Zealand<br>&gt; PH&nbsp;&nbsp;&nbsp;&nbsp;(649) 489-2280<br>&gt; FX&nbsp;&nbsp;&nbsp;&nbsp;(649) 489-2290<br>&gt; email <a href="mailto:rohit@cfl.co.nz">rohit@cfl.co.nz
</a>&nbsp;&nbsp;or&nbsp;&nbsp;<a href="mailto:r.gupta@xtra.co.nz">r.gupta@xtra.co.nz</a><br>&gt; ====================================================<br>&gt; ==================<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________
<br>&gt; Delphi mailing list<br>&gt; <a href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</a><br>&gt; <a href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a><br>&gt;<br>
&gt;<br><br>_______________________________________________<br>Delphi mailing list<br><a href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</a><br><a href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi
</a><br></blockquote></div><br>