| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Feb 05, 2004 9:13 pm Post subject: Fonts |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Feb 05, 2004 9:21 pm Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Feb 05, 2004 9:51 pm Post subject: |
|
|
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 |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Feb 05, 2004 11:12 pm Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Thu Feb 05, 2004 11:33 pm Post subject: |
|
|
| 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:
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Fri Feb 06, 2004 12:03 am Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Feb 06, 2004 12:10 am Post subject: |
|
|
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 |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Fri Feb 06, 2004 12:43 am Post subject: |
|
|
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 |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Fri Feb 06, 2004 1:24 am Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Feb 06, 2004 1:30 pm Post subject: |
|
|
You can also look at:
http://developer.vdsworld.com/
for the VDS DLL developer forum, there's some good DLL discussion there.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|