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 


Fonts

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


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Feb 05, 2004 9:13 pm    Post subject: Fonts Reply with quote

Hi
Anyone know how to change fonts and(or) styles within 1 sentence, to make like a ADD TEXT, line look more coloerful?
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Feb 05, 2004 9:21 pm    Post subject: Reply with quote

You would have to use something like the VDS OBJECT dll which has a
RICHEDIT control in it. The vds EDIT control just isn't capable of doing
such a thing.

You can find the dll on the main VDS World site.

Wait! I think you can also use Mac's VDSUG.DLL and the RICHEDIT
example from CodeScript... You can find those also listed somewhere
on the Main site here also.

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Thu Feb 05, 2004 9:28 pm    Post subject: Reply with quote

Here's a link to the VDSUG.DLL site:
http://www.mclainsoftware.netfirms.com/vdsug.html
(I think this is freeware)

Here's a link to the example from Codescript:
http://codescript.vdsworld.com/Webpages/SourceCodes.htm
(scroll down to near the bottom and look for "Rich Text Element in VDS")

Or you can check out the vds object extension:
http://www.vdsworld.com/index.php?page=pgware&extend=1
(look for vdsobj.dll on that page, Price: $100.00 US Dollar)

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Feb 05, 2004 9:51 pm    Post subject: Reply with quote

If you are looking to work with the text element, you can try something like:
Code:

OPTION SCALE,120
Title Text Color
  DIALOG CREATE,Colorful Text,-1,0,240,160
  DIALOG ADD,STYLE,STYLE1,Arial,8,B,,RED
  DIALOG ADD,STYLE,STYLE2,Arial,8,B,,BLUE
  DIALOG ADD,TEXT,TEXT1,73,56,85,,Colorful Line,,STYLE1
  DIALOG ADD,TEXT,TEXT2,73,140,85,,of Text.,,STYLE2
  DIALOG SHOW
:Evloop
  wait event
  goto @event()
:Close
  exit

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Thu Feb 05, 2004 11:12 pm    Post subject: Reply with quote

No the DLL way is all I have'nt dealy with yet as far as fonts, thanks anyway.
But DLLs is another one of those box of worms I might be afraid to open??? hehe
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Thu Feb 05, 2004 11:33 pm    Post subject: Reply with quote

vtol777 wrote:
No the DLL way is all I have'nt dealy with yet as far as fonts, thanks anyway.
But DLLs is another one of those box of worms I might be afraid to open??? hehe


VDS DLLs like the VDSOBJ and most of the other ones offer syntax exactly
like VDS itself, and they extend the possibilities of VDS.

You might like to download a few and just look at the demo scripts that
come with them, it would help you a lot.

The only thing you need to do to load a VDS DLL is use:

Code:
EXTERNAL <dllname>

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Feb 06, 2004 12:03 am    Post subject: Reply with quote

cool
But would you have to package the DLL with the program to run, and if so are they heavy in fileweight?
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Feb 06, 2004 12:10 am    Post subject: Reply with quote

Yes, you would have to include it with your program if you plan to distribute
your program.

Most VDS DLL's relatively small in size. You could essentially have your
exe, the vdsrun dll and a couple of extension dlls and keep your overall
file size under 700 kb.

Grab something like Alloy or UPX, and you can cut some of that file size
down. Sometimes using these you can cut the sizes in half.

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
vtol
Valued Contributor
Valued Contributor


Joined: 05 Feb 2004
Posts: 656
Location: Eastern Indiana

PostPosted: Fri Feb 06, 2004 12:43 am    Post subject: Reply with quote

That forces me to ask this next question, lol.
Are DLLs written with VB, C++ or Asembly -etc., and would it be hard to write small ones when needed. I would think people have the rights to the single Functions contained in there own written DLLs.
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Fri Feb 06, 2004 1:24 am    Post subject: Reply with quote

Most VDS DLLs are written in Delphi, making them slightly large.
There are a few written in C/C++ though.
VDSUG for example is written in C and is only 29k.
Depending on what you need, I imagine someone around here could write you a custom DLL..most likely for a fee.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Feb 06, 2004 1:30 pm    Post subject: Reply with quote

You can also look at:

http://developer.vdsworld.com/

for the VDS DLL developer forum, there's some good DLL discussion there. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
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