BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Table in TRichEdit component

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Elizabeth
Guest





PostPosted: Wed Jun 29, 2005 12:50 pm    Post subject: Table in TRichEdit component Reply with quote



Hi All,

I want to insert/draw a table/grid with data filled, in TRichEdit control.
Is there any way to achieve it ?.

Thanks,


Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Jun 29, 2005 7:24 pm    Post subject: Re: Table in TRichEdit component Reply with quote




"Elizabeth" <vaab (AT) hcncjk (DOT) com> wrote


Quote:
I want to insert/draw a table/grid with data filled, in
TRichEdit control. Is there any way to achieve it ?.

That depends. TRichEdit implements the Win32 API RichEdit v1.0 control,
which does not support tables. Table support was not introduced until
RichEdit v3.0, and then later expanded in RichEdit v4.1. If you run your
application under an XP machine, however, RichEdit v1.0 is internally mapped
by the OS to RichEdit v3.0, so it is possible to use RichEdit v3.0 features
with TRichEdit in that scenerio. Offhand, I do not know how to work with
tables in RichEdit controls, other than to work at the RTF level directly.
According to MSDN, the PARAFORMAT2 structure of the EM_SETPARAFORMAT message
specifies table characteristics for a paragraph, but at the same time it
also says that they are only stored and not actually used to display the
text, so I don't know if that will actually do anything meaningful for you.

On the other hand, if you need to run your application on other OSs and
still use tables, then you cannot use TRichEdit for that. You will have to
use RichEdit v3.0 or v4.1 directly instead. Have a look at
http://home.att.net/~robertdunn/Yacs.html for details about using newer
RichEdit versions in BCB.


Gambit



Back to top
Pete Fraser
Guest





PostPosted: Wed Jun 29, 2005 9:33 pm    Post subject: Re: Table in TRichEdit component Reply with quote



I tried to use the table support in the MS Richedit and it is horrible so I
wouldn't even try
using it. The word wrapping inside cells was the first hurdle that could not
be overcome Sad
Sorry for the bad news, Pete

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote

Quote:

"Elizabeth" <vaab (AT) hcncjk (DOT) com> wrote in message
news:42c298a1$1 (AT) newsgroups (DOT) borland.com...

I want to insert/draw a table/grid with data filled, in
TRichEdit control. Is there any way to achieve it ?.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.