Article View: comp.lang.pascal.delphi.databases
Article #223Re: Help with TRichEdit and DBGrid
From: Reid Roman
Date: Sat, 26 Dec 1998 00:00
Date: Sat, 26 Dec 1998 00:00
48 lines
2195 bytes
2195 bytes
"Carlos Izquierdo GarοΏ½a" wrote:
>
> I need to know how to:
>
> - Insert a end of page (EOP) in a TRichEdit
> - Change the distance between lines in a TRichEdit
> - Draw lines or other objects in a TRichEdit.
>
> - Change the heigth of the rows in a TDBGrid
>
> Thanks
You might consider creating a New component based on TRichEdit that
makes it's canvas accessable. Once you have a handle to the canvas, you
can draw lines or about anything else from there.
You could set a property reresenting it's page size, and monitor the
cursor position. If it has reached the length of a new page, inc the
Page count, and insert another Page Break.
(Just send a control L (FF character) into the flow. When it
prints, it will kick out the current page on this character.)
Don't know how to go about increaseing the leading ... (line spacing)
HTH
Rkr
--
\|||/
/'^'\
( 0 0 )
--------------oOOO--(_)--OOOo--------------
. Reid Roman .
. Delphi Programmer .
. TVisualBasic:=class(None) .
. May the Source be With You .
-------------------------------------------
. Auto-By-Tel (http://www.autobytel.com) .
. Irvine, CA U.S.A .
. E-Mail : rkroman (at) home (dot) com .
-------------------------------------------
Technical Details
Message-ID:
<3685076F.5ED51BC6@home.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7616n4$h76$1@talia.mad.ibernet.es>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: ffff5,c6dc15b7dd0be35b X-Google-Attributes: gidffff5,public X-Google-Thread: 109585,c6dc15b7dd0be35b X-Google-Attributes: gid109585,public From: Reid Roman <rkroman@home.com> Subject: Re: Help with TRichEdit and DBGrid Date: 1998/12/26 Message-ID: <3685076F.5ED51BC6@home.com> X-Deja-AN: 425933737 Content-Transfer-Encoding: 8bit References: <7616n4$h76$1@talia.mad.ibernet.es> X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: abuse@home.net X-Trace: news.rdc2.occa.home.com 914687562 24.1.179.123 (Sat, 26 Dec 1998 07:52:42 PDT) Organization: @Home Network MIME-Version: 1.0 NNTP-Posting-Date: Sat, 26 Dec 1998 07:52:42 PDT Newsgroups: comp.lang.pascal.delphi.databases,es.comp.lenguajes.delphi