[DUG] graphics in memo box
Vikas...
vikas.image at gmail.com
Tue Jan 15 00:05:12 NZDT 2008
well Harris i came up with oen work around which i think can fix it
i used the code somethign like this
var
H :thandle
C :tcanvas
begin
c:= tcanvas.create;
h:=getdc(memo1.handle);
c.handle := h.
c.brush.colur:clred;
c.ellippse or c.rect
end;
i think this somehow gave me xcat idea to enhance my requirement i was just
doing reseach on it figured out this will be better way to expand my
requirement
thanks for your help anyways
i do apreciate it very much
Regards
Vikas
On 1/14/08, Kyley Harris <kyleyharris at gmail.com> wrote:
>
> 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
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20080114/df004b33/attachment.html
More information about the Delphi
mailing list