 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Elizabeth Guest
|
Posted: Wed Jun 29, 2005 12:50 pm Post subject: Table in TRichEdit component |
|
|
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
|
Posted: Wed Jun 29, 2005 7:24 pm Post subject: Re: Table in TRichEdit component |
|
|
"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
|
Posted: Wed Jun 29, 2005 9:33 pm Post subject: Re: Table in TRichEdit component |
|
|
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
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 |
|
 |
|
|
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
|
|