Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Thread Tools Display Modes
Old 04-23-2001, 08:32 AM
Beardawg Beardawg is offline
Join Date: Mar 2001
Posts: 75
Default 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?!?

Reply With Quote
Old 04-24-2001, 11:20 PM
Verence Verence is offline
Senior Member
Join Date: Feb 2001
Posts: 435
Default 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

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT. The time now is 04:01 AM.

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