From: Jürgen Knauf on
Hi,

I want to copy a text into the clipboard, as a formated and as unformated
text.

How can I copy the text to the clipboard without clearing the old content?

Juergen



From: Geoff Schaller on
Jurgen,

The simplest way is to retrieve the current string, append to the
string, separate items with a CRLF and put it back.

oClipboard:RetreiveString()
oCLipboard:Insert()

Internally this is GetClipboarddata(1) but you can use the SDK code here
to manipulate the contents. There are quite a few C# apps that go more
into the API and it is a lot easier with Dot Net classes of course. See
the API sdk for further info. Look at SetClipboardData() for the
different formats possible.

Geoff


"J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message
news:487dbc04$1(a)news.arcor-ip.de:

> Hi,
>
> I want to copy a text into the clipboard, as a formated and as unformated
> text.
>
> How can I copy the text to the clipboard without clearing the old content?
>
> Juergen

From: Jürgen Knauf on
Hi Geoff,

do i get then two different Clipboard entries.

Thats want I want:
I want to put a formated and unformated text to the clipboard, so that this
texts can be pasted intto MS Word and into other Windowsprograms , which do
only support plain text.

When I only put RTF-formated text into Clipboard, I can only paste it into
MS Word and Outlook, but not in notpad other applications.

Juergen



"Geoff Schaller" <geoffx(a)softxwareobjectives.com.au> schrieb im Newsbeitrag
news:487dcd03$1(a)dnews.tpgi.com.au...
> Jurgen,
>
> The simplest way is to retrieve the current string, append to the string,
> separate items with a CRLF and put it back.
>
> oClipboard:RetreiveString()
> oCLipboard:Insert()
>
> Internally this is GetClipboarddata(1) but you can use the SDK code here
> to manipulate the contents. There are quite a few C# apps that go more
> into the API and it is a lot easier with Dot Net classes of course. See
> the API sdk for further info. Look at SetClipboardData() for the different
> formats possible.
>
> Geoff
>
>
> "J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message
> news:487dbc04$1(a)news.arcor-ip.de:
>
>> Hi,
>>
>> I want to copy a text into the clipboard, as a formated and as unformated
>> text.
>>
>> How can I copy the text to the clipboard without clearing the old
>> content?
>>
>> Juergen
>

From: Geoff Schaller on
No, there is only one format at once.

The applications that have multiple clipboards are actually managing
that themselves but as far as an external application is concerned,
there is only one format and it needs to know how to retrieve the data.
You tell the receiving app that by setting the data content type.

Geoff



"J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message
news:487dd58b$1(a)news.arcor-ip.de:

> Hi Geoff,
>
> do i get then two different Clipboard entries.
>
> Thats want I want:
> I want to put a formated and unformated text to the clipboard, so that this
> texts can be pasted intto MS Word and into other Windowsprograms , which do
> only support plain text.
>
> When I only put RTF-formated text into Clipboard, I can only paste it into
> MS Word and Outlook, but not in notpad other applications.
>
> Juergen
>
>
>
> "Geoff Schaller" <geoffx(a)softxwareobjectives.com.au> schrieb im Newsbeitrag
> news:487dcd03$1(a)dnews.tpgi.com.au...
>
> > Jurgen,
> >
> > The simplest way is to retrieve the current string, append to the string,
> > separate items with a CRLF and put it back.
> >
> > oClipboard:RetreiveString()
> > oCLipboard:Insert()
> >
> > Internally this is GetClipboarddata(1) but you can use the SDK code here
> > to manipulate the contents. There are quite a few C# apps that go more
> > into the API and it is a lot easier with Dot Net classes of course. See
> > the API sdk for further info. Look at SetClipboardData() for the different
> > formats possible.
> >
> > Geoff
> >
> >
> > "J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message
> > news:487dbc04$1(a)news.arcor-ip.de:
> >
>
> >> Hi,
> >>
> >> I want to copy a text into the clipboard, as a formated and as unformated
> >> text.
> >>
> >> How can I copy the text to the clipboard without clearing the old
> >> content?
> >>
> >> Juergen
>
> >

From: Jürgen Knauf on
But how does Word manage the clipboard?
When I copy a RTF text snippet in MS Word into the clipboard, i can paste it
to every windows programm.
When I copy a RTF text snippet from my VO-App into the clipboard, I can only
paste it to windows programms that support RTF-Text.

Somebody told me, that Word puts different formated copies of the text into
the clipboard, so that the windows program in which I want to paste the
clipboard, takes only the supported copy.

Juergen



"Geoff Schaller" <geoffx(a)softxwareobjectives.com.au> schrieb im Newsbeitrag
news:487ddb21(a)dnews.tpgi.com.au...
> No, there is only one format at once.
>
> The applications that have multiple clipboards are actually managing that
> themselves but as far as an external application is concerned, there is
> only one format and it needs to know how to retrieve the data. You tell
> the receiving app that by setting the data content type.
>
> Geoff
>
>
>
> "J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message
> news:487dd58b$1(a)news.arcor-ip.de:
>
>> Hi Geoff,
>>
>> do i get then two different Clipboard entries.
>>
>> Thats want I want:
>> I want to put a formated and unformated text to the clipboard, so that
>> this
>> texts can be pasted intto MS Word and into other Windowsprograms , which
>> do
>> only support plain text.
>>
>> When I only put RTF-formated text into Clipboard, I can only paste it
>> into
>> MS Word and Outlook, but not in notpad other applications.
>>
>> Juergen
>>
>>
>>
>> "Geoff Schaller" <geoffx(a)softxwareobjectives.com.au> schrieb im
>> Newsbeitrag
>> news:487dcd03$1(a)dnews.tpgi.com.au...
>>
>> > Jurgen,
>> >
>> > The simplest way is to retrieve the current string, append to the
>> > string,
>> > separate items with a CRLF and put it back.
>> >
>> > oClipboard:RetreiveString()
>> > oCLipboard:Insert()
>> >
>> > Internally this is GetClipboarddata(1) but you can use the SDK code
>> > here
>> > to manipulate the contents. There are quite a few C# apps that go more
>> > into the API and it is a lot easier with Dot Net classes of course. See
>> > the API sdk for further info. Look at SetClipboardData() for the
>> > different
>> > formats possible.
>> >
>> > Geoff
>> >
>> >
>> > "J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message
>> > news:487dbc04$1(a)news.arcor-ip.de:
>> >
>>
>> >> Hi,
>> >>
>> >> I want to copy a text into the clipboard, as a formated and as
>> >> unformated
>> >> text.
>> >>
>> >> How can I copy the text to the clipboard without clearing the old
>> >> content?
>> >>
>> >> Juergen
>>
>> >
>

 |  Next  |  Last
Pages: 1 2 3 4
Prev: VO programmer in CZ (praha)
Next: Connect with TCP/IP