Hi Mick

As I mentioned earlier, my program uses a richededit and barcode fonts.
There is a button that creates the relevant barcode data and a checkbox
that allows copy to clipboard. It is the user's choice whether to copy this
data or not. The idea being that user can then paste the generated barcode
data directly into other programs such as Word or Wordpad etc.

>I'd get pretty irked if an application removed data from my clipboard :)

Not if you need formatted barcode data on the clipboard. :)
The alternative was to create a bitmap, save and retrieve this bitmap
into the RE2, which semmed a little messy to me!!

regards
Neil 

----- Original Message -----
From: "Mick Arundell" <m...@macomputer.biz>
To: <delphi@elists.org>
Date: Thu, 28 May 2009 21:56:16 +0930
Subject: Re: RichEdit - copying formatted text from/to

> 
> > Date: Thu, 28 May 2009 07:42:02 +0100
> > From: n...@nrbs.com
> > Subject: Re: RichEdit - copying formatted text from/to
> > To: "Borland's Delphi  Discussion List" <delphi@elists.org>
> > Message-ID: <20090528.064202.25...@nrb-xp-pro>
> >
> > Hi Stan
> >
> > I just use the richedit copy and paste functions.
> >
> > use RE1 sellength to select required text on RE1
> > then use copytoclipboard.
> >
> > Now paste clipboard data into RE2
> >
> > I use this for generating barcode data using fonts drawn
> > into rich edit. The select richedit contents and copy to the
> > clipboard.
> >
> > Now pasting clipboard data into any richedit based control
> > will produce the required data including formatting.
> >
> > Hope this helps
> >
> > regards
> > Neil
> >   
> Neil,
> How do you save the existing Clipboard contents in case your user has 
> something on it? I'd get pretty irked if an application removed data 
> from my clipboard :)
> Is it possible to make a clipboard replacement to use in an application?
> 
> 
> Mick
> _______________________________________________
> Delphi mailing list -> Delphi@elists.org
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
> 
_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to