forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Format Clipboard Text

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Dave Heck
Valued Newbie


Joined: 02 Mar 2002
Posts: 34
Location: Union, CT USA

PostPosted: Thu Sep 26, 2002 1:31 am    Post subject: Format Clipboard Text Reply with quote

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
View user's profile Send private message Send e-mail
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Thu Sep 26, 2002 2:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Dave Heck
Valued Newbie


Joined: 02 Mar 2002
Posts: 34
Location: Union, CT USA

PostPosted: Thu Sep 26, 2002 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Fri Sep 27, 2002 4:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group