| View previous topic :: View next topic |
| Author |
Message |
Dave Heck Valued Newbie

Joined: 02 Mar 2002 Posts: 34 Location: Union, CT USA
|
Posted: Thu Sep 26, 2002 1:31 am Post subject: Format Clipboard Text |
|
|
Does anyone know if there is a way to "force" a certain font/font size on text in the Clipboard. I need to have the clipboard data be forced to a non-truetype font (Courier for instance) if possible. If it's not then when it's pasted into an email message or document the columns don't line up. The clipboard is loaded from a variable as follows:
CLIPBOARD SET,%%Information
The information is first loaded from a text file into a list using the LIST LOADFILE command, then looped through to remove blank lines and inserted into the %%Information variable using the @STRINS function.
Thanks. _________________ Dave Heck
dheck1961@cox.net
Union, Connecticut USA |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Thu Sep 26, 2002 2:29 am Post subject: |
|
|
There is probably another way but I used my dll vdsobj.dll in this example. Please note that it is shareware, you can DOWNLOAD IT HERE.
| Code: |
external vdsobj.dll
DIALOG CREATE,New Dialog,-1,0,255,191,CLASS MyWindow
DIALOG SHOW
%%information = hello world@cr()how are you today?@cr()@cr()great and you?
OBJECT CLASS,MyWindow
OBJECT ADD,RICHEDIT,RICHEDIT1,10,10,230,170
rem You can change the above to > OBJECT ADD,RICHEDIT,RICHEDIT1,0,0,0,0
rem so the richedit is not visible.
OBJECT SET,RICHEDIT1,%%information
OBJECT FORMAT,RICHEDIT1,CLIPBOARD,SELECTALL
OBJECT FORMAT,RICHEDIT1,SETFONT,Courier,12,BLACK
OBJECT FORMAT,RICHEDIT1,CLIPBOARD,SELECTALL
OBJECT FORMAT,RICHEDIT1,CLIPBOARD,COPY
rem ALL DONE, you can now paste to you're email program!
:evloop
wait event
goto @event()
:close
OBJECT REMOVE,RICHEDIT1
exit
|
|
|
| Back to top |
|
 |
Dave Heck Valued Newbie

Joined: 02 Mar 2002 Posts: 34 Location: Union, CT USA
|
Posted: Thu Sep 26, 2002 1:49 pm Post subject: |
|
|
Excellent...I'll download the vdsobj.dll and give it a shot. Thanks for your quick response.
Dave _________________ Dave Heck
dheck1961@cox.net
Union, Connecticut USA |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri Sep 27, 2002 4:44 pm Post subject: |
|
|
Maybe you can even do it by useing a hidden edit... Of course, you must use a style with Courier or something, but I think it may work...
| Code: |
dialog set,hiddenedit1,%%information
clipboard set,@dlgtext(hiddenedit1)
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|