How do I get the height of a populated MEMO field?
How do I get the height of a populated MEMO field?
====================================
I have a Memo field printing in a group header. I want to paint a box
(TppShape) around it. In order to do so, I need to gather the height of the
Memo field.
ppMemoNotes.Lines.Clear;
ppMemoNotes.Lines.Add('Hello World');
ppShapeNotesBox.Height := ppMemoNotes.Height;
ppMemoNotes.Lines.Clear;
ppMemoNotes.Lines.Add(OraDS1.FieldByName('NOTE').AsString);//
Results in about 20 lines of text
ppShapeNotesBox.Height := ppMemoNotes.Height;
Regardless of when I look at ppShapeNotesBox.Height, it is set at 0.13.....
It appears not to be set based on the contents of the memo field.
What do I need to do to determine the true height of a memo field once it
has been populated.
Joe Bibbo
joe@computrition.com
====================================
I have a Memo field printing in a group header. I want to paint a box
(TppShape) around it. In order to do so, I need to gather the height of the
Memo field.
ppMemoNotes.Lines.Clear;
ppMemoNotes.Lines.Add('Hello World');
ppShapeNotesBox.Height := ppMemoNotes.Height;
ppMemoNotes.Lines.Clear;
ppMemoNotes.Lines.Add(OraDS1.FieldByName('NOTE').AsString);//
Results in about 20 lines of text
ppShapeNotesBox.Height := ppMemoNotes.Height;
Regardless of when I look at ppShapeNotesBox.Height, it is set at 0.13.....
It appears not to be set based on the contents of the memo field.
What do I need to do to determine the true height of a memo field once it
has been populated.
Joe Bibbo
joe@computrition.com
This discussion has been closed.
Comments
region is able to stretch as the memo inside of it grows. Set the region's
color and be sure that the memo is transparent.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
However, I can't seem to fugure out how to set the parent of my memo to the
region (this is all done in code, not the designer).
Also, can a region have rounded corners?
==========================================================================
ppMemo1.Region := ppRegion1;
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
vertical line to the left and right of the memo, and (soemtimes) a
horozintal line afterwards. Piece of cake if I know the height of the
generated memo.
stretch with parent.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com