<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>
myOffice Email Message
</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="date" content="2002-11-01">
<style type="text/css">
</style>
</head>
<body>
<span style=
"color:#FF0000 "><b><span style=
"font-family:MS Sans Serif ">[Reply]</span></b></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">Hi Csaba,</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">Check out this Unicode editor that has it all ...</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">http://www.soft-gems.net:8080/browse/~raw,r=116/library/UniCodeEditor/Source/UniCodeEditor.pas</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">cheers</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">Gary</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">A</span><span style=
"color:#FF0000 "><b>t 04:32 on 10/09/2007 you wrote </b></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>To : delphi@delphi.org.nz</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>CC : </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>From: Csaba Gajo, csaba@enyem.com</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Content Type: text/plain</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Attached: </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Hi everyone!</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>I need to copy some text to the clipboard, using the TClipboard object. If </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>I use the old-fashioned way, I would do it like this:</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>clp := TClipboard.Create;</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>clp.SetTextBuf(PChar(MyText.Text));</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>clp.Free;</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>However, if I use Unicode components I will have to deal with WideString </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>and PWideChar. If I try to do</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>clp.SetTextBuf(PWideChar(MyText.Text));</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>I will get an error because the Clipboard expects an ordinary PChar.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>So how can I copy Unicode text to the clipboard?</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>I'm using Delphi 5 btw.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Thanks, Csaba</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>_______________________________________________</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>NZ Borland Developers Group - Delphi mailing list</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Post: delphi@delphi.org.nz</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Admin: http://delphi.org.nz/mailman/listinfo/delphi</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Unsubscribe: send an email to delphi-request@delphi.org.nz with Subject: unsubscribe</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span><p>
<font face=arial size = 1 color = Navy><DIV style="WIDTH: 260px; HEIGHT: 50px"><br>
<br>
<MARQUEE id=marquee1 style="WIDTH: 260px; HEIGHT: 200px" trueSpeed scrollAmount=5 scrollDelay=20 direction=right behavior=slide loop=1 border="2"><hr><br>
<br>
<br>
<table><br>
<tr><td><FONT color=black size=4 face = "helvetica,verdana,arial">Gary Benner </FONT></td></tr><tr><td><FONT face="arial, arial, helvetica, sans-serif" color=black size=2>e-Engineer, Lecturer, and Software Developer</FONT></td></tr><br>
<br>
<tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=#000099 size=2><B><A HREF="http://www.benner.co.nz" style="text-decoration:none; color:blue">Gary Benner & Associates</A></B></FONT></td></tr><br>
<br>
<tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=#000099 size=2><B><A HREF="http://www.123.net.nz" style="text-decoration:none; color:blue">123 Internet Limited</A></B></FONT></td></tr><br>
<br>
<tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=#000099 size=2><B><A HREF="http://www.waiariki.ac.nz" style="text-decoration:none; color:#993333">Waiariki Institute of Technology</A></B></FONT></td></tr><br>
<br>
<tr><td><font face = "helvetica,verdana,arial" size = 1>Mob: 021 966 992</font></td></tr><br>
<br>
<tr><td><font face = "helvetica,verdana,arial" size = 1>Skype: garybenner</font></td></tr><br>
<br>
<tr><td><font face = "helvetica,verdana,arial" size = 1>Email: <A href="mailto:gary@benner.co.nz" >gary@benner.co.nz</A> </font></td></tr></table><br>
<br>
</MARQUEE><br>
<br>
</DIV><br>
<br>
Ref#: 41006<br>
<br>
</body>
</html>