Thread View: borland.public.delphi.vcl.components.using.dotnet
1 messages
1 total messages
Started by Steve Wyatt
Sat, 31 Mar 2007 03:14
TImpRichTextBox
Author: Steve Wyatt
Date: Sat, 31 Mar 2007 03:14
Date: Sat, 31 Mar 2007 03:14
27 lines
2265 bytes
2265 bytes
(I apologize if this post is in the wrong news group. There are so many now
it's hard for me to tell).
I am evaluating a 3rd party component that (supposedly) works well with the
Winforms "RichTextBox" control, but does not work with the Delphi
"TRichEdit" control (I am using Delphi 2007 VCL.NET).
So...I decided to import the RichTextBox control into VCL.NET. At this
point I can place a TImpRichTextBox onto a VCL.NET form, but from that point
on it's behavior is a little wierd. For one thing, in the IDE I've set the
TImpRichTextBox properties: Height=150, Width=350, and it displays as such
in the IDE. However, when I run the project, the control is displayed with
Height=96 and Width=100. I tried doing this in the FormShow event handler:
ImpRichTextBox1.Height = 150;
ImpRichTextBox1.Width=350;
but the code has no effect; the control still shows as Height=96, Width=100.
I added a button to the form that explicitly sets the Height/Width of the
control -- and it works (huh?).
* Is there something I'm missing with imported Winforms controls?
* Am I likely to encounter further issues in which this control will not
"appear" as an actual RichTextBox control to the 3rd party component that
I'm attempting to evaluate?
I appreciate the input,
Steve Wyatt
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads