Delphi Pages Forums

Delphi Pages Forums (http://www.delphipages.com/forum/index.php)
-   General (http://www.delphipages.com/forum/forumdisplay.php?f=2)
-   -   TMS StringGrid component? (http://www.delphipages.com/forum/showthread.php?t=23875)

Beardawg 04-23-2001 08:32 AM

TMS StringGrid component?
 
I am copying selected text from a StringGrid object. When I copy the text to the clipboard, the text is formatted such as: "'H'#9'E'#9'L'#9'L'#9'O'".

What is causing this? Has anyone delt with this, is there a way I can get the "HELLO" without the formatting(I assume) characters?!?

Thanks!

Verence 04-24-2001 11:20 PM

RE: TMS StringGrid component?
 
Well, now I'm just guessing:

The text comes from more than one cell of the stringgrid (rangeselect allowed) and when copied to the clipboard the grid inserts tabulator characters between the cells.

If this is true - well IMHO you have to live with it :-)
Or a) handle the WM_COPY event in the stringgrid yourself
b) when pasting in your own application remove the #9 characters befor using the text


HTH :o)
Verence


All times are GMT. The time now is 10:12 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.