My program is putiing a string onto the clipboard, which is then pasted by
the user into a text field in another application.

I would like part of it to be displayed in bold when pasted.

In the DOS days, didn't we used to do this with an "escape sequence"?
CHR(27) + ....?

I can't see a way to do it now. Any suggestions would be appreciated.

TIA
Andrew McGurk

Re: Escape sequences by Fred

Fred
Sun Sep 16 23:17:45 PDT 2007

That will depend on how the application that you are pasting to requires a
field to be formatted for bold. For example, if it accepts html sequences,
you'd use "<b>your bold text</b>".

--
Fred
Microsoft Visual FoxPro MVP


"Andrew McGurk" <zermattbs@hotmail.com> wrote in message
news:uA%233v$O%23HHA.4568@TK2MSFTNGP02.phx.gbl...
> My program is putiing a string onto the clipboard, which is then pasted by
> the user into a text field in another application.
>
> I would like part of it to be displayed in bold when pasted.
>
> In the DOS days, didn't we used to do this with an "escape sequence"?
> CHR(27) + ....?
>
> I can't see a way to do it now. Any suggestions would be appreciated.
>
> TIA
> Andrew McGurk
>
>



Re: Escape sequences by Aaron

Aaron
Mon Sep 17 00:30:25 PDT 2007

You can try using a rich text control.

"Andrew McGurk" <zermattbs@hotmail.com> skrev i meddelandet
news:uA%233v$O%23HHA.4568@TK2MSFTNGP02.phx.gbl...
> My program is putiing a string onto the clipboard, which is then pasted by
> the user into a text field in another application.
>
> I would like part of it to be displayed in bold when pasted.
>
> In the DOS days, didn't we used to do this with an "escape sequence"?
> CHR(27) + ....?
>
> I can't see a way to do it now. Any suggestions would be appreciated.
>
> TIA
> Andrew McGurk
>
>


Re: Escape sequences by Dan

Dan
Mon Sep 17 08:48:18 PDT 2007

You're thinking of *printer* escape sequences. In the DOS era, to get bold
in an xBase app you'd use SET COLOR.

There is no "universal code" that means bold to every app. Your answer will
depend on the receiving app, which may not accept formatting from the
clipboard at all.

Dan

Andrew McGurk wrote:
> My program is putiing a string onto the clipboard, which is then
> pasted by the user into a text field in another application.
>
> I would like part of it to be displayed in bold when pasted.
>
> In the DOS days, didn't we used to do this with an "escape sequence"?
> CHR(27) + ....?
>
> I can't see a way to do it now. Any suggestions would be appreciated.
>
> TIA
> Andrew McGurk



Re: Escape sequences by Andrew

Andrew
Mon Sep 17 18:57:09 PDT 2007

What I'm doing in VFP, is this:

_CLIPTEXT = "Job Closed " + CHR(13) +"** JobNo:
"+ALLTRIM(THISForm.JobNo)+"** "

Then in the other app. I'm doing a paste into what looks like an RTF. The
carriage return works OK, but I would like the text "Job Closed ", to be
automatically Bold. Currently they select it and click on the Bold icon
above the field.

Thought I had done this in the past. No?

Andrew McG



"Dan Freeman" <spam@microsoft.com> wrote in message
news:%23WEqqIU%23HHA.1168@TK2MSFTNGP02.phx.gbl...
> You're thinking of *printer* escape sequences. In the DOS era, to get bold
> in an xBase app you'd use SET COLOR.
>
> There is no "universal code" that means bold to every app. Your answer
> will depend on the receiving app, which may not accept formatting from the
> clipboard at all.
>
> Dan
>
> Andrew McGurk wrote:
>> My program is putiing a string onto the clipboard, which is then
>> pasted by the user into a text field in another application.
>>
>> I would like part of it to be displayed in bold when pasted.
>>
>> In the DOS days, didn't we used to do this with an "escape sequence"?
>> CHR(27) + ....?
>>
>> I can't see a way to do it now. Any suggestions would be appreciated.
>>
>> TIA
>> Andrew McGurk
>
>



Re: Escape sequences by Dan

Dan
Tue Sep 18 09:20:41 PDT 2007

There's no way for me to know what you've done in the past. <s> But if
you're talking "escape codes" you're talking printers.

You'd have to know what "codes" mean bold to the remote app.

Dan

Andrew McGurk wrote:
> What I'm doing in VFP, is this:
>
> _CLIPTEXT = "Job Closed " + CHR(13) +"** JobNo:
> "+ALLTRIM(THISForm.JobNo)+"** "
>
> Then in the other app. I'm doing a paste into what looks like an RTF.
> The carriage return works OK, but I would like the text "Job Closed
> ", to be automatically Bold. Currently they select it and click on
> the Bold icon above the field.
>
> Thought I had done this in the past. No?
>
> Andrew McG
>
>
>
> "Dan Freeman" <spam@microsoft.com> wrote in message
> news:%23WEqqIU%23HHA.1168@TK2MSFTNGP02.phx.gbl...
>> You're thinking of *printer* escape sequences. In the DOS era, to
>> get bold in an xBase app you'd use SET COLOR.
>>
>> There is no "universal code" that means bold to every app. Your
>> answer will depend on the receiving app, which may not accept
>> formatting from the clipboard at all.
>>
>> Dan
>>
>> Andrew McGurk wrote:
>>> My program is putiing a string onto the clipboard, which is then
>>> pasted by the user into a text field in another application.
>>>
>>> I would like part of it to be displayed in bold when pasted.
>>>
>>> In the DOS days, didn't we used to do this with an "escape sequence"?
>>> CHR(27) + ....?
>>>
>>> I can't see a way to do it now. Any suggestions would be
>>> appreciated. TIA
>>> Andrew McGurk