[DUG] graphics in memo box
Kyley Harris
kyleyharris at gmail.com
Mon Jan 14 22:09:36 NZDT 2008
Ok,
You may be able to override the paint method of a tmemo, and after a call to
inherited do the drawing.
It will probably be easier to Overlay the TMemo with a TPaintbox and draw
onto that.. TMemo is not good enough if you are talking about MS Word, or
Rich edit style highlighting, and Object drawing. in that case you have a
lot of work ahead of you.
regards.
Kyley
On Jan 14, 2008 9:57 PM, Vikas... <vikas.image at gmail.com> wrote:
> Hi Harris
>
> what i ment here is the background say i have to show soemthing in memo
> particular text so i colur then or draw cirlces on thm thats what i mean
> sorry my previous querry wa slitle unclear
>
> Regards
> Vikas
>
>
> On 1/14/08, Kyley Harris <kyleyharris at gmail.com> wrote:
> >
> > Do you mean as a background to the text?
> >
> > Do you need to edit the text? you could use a label, on top of an image?
> >
> >
> > you need to be more clear on what you want to achieve.
> >
> > TMemo is a wrapper for a Windows API Edit control, so, while its
> > achieveable to draw stuff in the background, it takes effort and may not be
> > what you actually need.
> >
> > Typically, I would create a transparent TMemo by subclassing the Windows
> > control via a new TMemo. I cant remember exactly how to do it, (its been a
> > while) but it is related to the Control Opacity when you create the window
> > handle class at the api level.
> >
> > On Jan 14, 2008 8:10 PM, Vikas... <vikas.image at gmail.com > wrote:
> >
> > >
> > > Hi
> > >
> > > Is there any way to draw picture opn memo box like circles or lines or
> > > rectangles. Any idea?
> > >
> > > Regards
> > > Vikas
> > > Solution consultant
> > > National Cash register USA
> > >
> > > _______________________________________________
> > > NZ Borland Developers Group - Delphi mailing list
> > > Post: delphi at listserver.123.net.nz
> > > Admin: http://delphi.org.nz/mailman/listinfo/delphi
> > > Unsubscribe: send an email to delphi-request at listserver.123.net.nzwith Subject: unsubscribe
> > >
> >
> >
> >
> > --
> > Kyley Harris
> > Harris Software
> > +64-21-671-821
> > _______________________________________________
> > NZ Borland Developers Group - Delphi mailing list
> > Post: delphi at listserver.123.net.nz
> > Admin: http://delphi.org.nz/mailman/listinfo/delphi
> > Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> > Subject: unsubscribe
> >
>
>
>
> --
> vikas
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi at listserver.123.net.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
> Subject: unsubscribe
>
--
Kyley Harris
Harris Software
+64-21-671-821
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20080114/7ddf013b/attachment-0001.html
More information about the Delphi
mailing list