| View previous topic :: View next topic |
| Author |
Message |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Fri Mar 21, 2003 3:52 pm Post subject: Text Color Help |
|
|
Hi,
Can VDS4 some how make text a different color in edit boxes or lists?
I want to make VDS highlight certain text in an edit box or list box.
like;
This is a test line of text, it is cool.
I would like say the string "line" to be say blue and the string "cool" to be something like red, can this be done???
Thank you, I hope you can understand my question. |
|
| Back to top |
|
 |
Rubes_sw Valued Contributor


Joined: 11 Jun 2001 Posts: 625 Location: Northern Ireland
|
Posted: Fri Mar 21, 2003 3:57 pm Post subject: |
|
|
You can set elements to use a style:
eg.
dialog add,style,style1,Times New Roman,10,BI,RED,YELLOW
dialog add,text,text1,10,10,100,20,This line is cool,,,style1
Nathan |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri Mar 21, 2003 4:10 pm Post subject: |
|
|
Maybe look at this:
http://www.vdsworld.com/forum/viewtopic.php?t=1149
BTW. This doesn't work with EDIT boxes or LISTS... Only normal text will work. To use it with editboxes, you might take a search on VDSWORLD for VDSOBJ... |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Fri Mar 21, 2003 4:26 pm Post subject: |
|
|
Hi, thank you for the quick replies.
I know how to use sytles i got that out of the help files but i need to change text within an edit or list box.
can VDSOBJ change the text how i need?
If it can, do i have to pay $30 to buy the VDSOBJ to use it or can I use it for free and buy it if i can use it? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri Mar 21, 2003 4:44 pm Post subject: |
|
|
| You may use it for free to try it out, but if you want to use it for a program which you want to publish, you'll have to buy it... Please note that you'll get pop-ups which are removed once you'll registrate the DLL. |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Fri Mar 21, 2003 4:51 pm Post subject: |
|
|
Thank you, I will test it to see if it works.
One more question before I download it. Im on 56k and its really slow so i cant download loads of things.
If I buy VDS4 do I have to buy VDSOBJ or does it come with it? |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri Mar 21, 2003 4:53 pm Post subject: |
|
|
| Visual DialogScript is made by S.A.D.E. s.a.r.l. The VDSOBJ extension however, is made by PGWARE, so you'll have to buy a license for that one too... |
|
| Back to top |
|
 |
DW Contributor

Joined: 21 Mar 2003 Posts: 175 Location: UK
|
Posted: Fri Mar 21, 2003 4:55 pm Post subject: |
|
|
| I understand, thank you. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri Mar 21, 2003 4:59 pm Post subject: |
|
|
No problem...  |
|
| Back to top |
|
 |
ACE Valued Newbie

Joined: 05 Sep 2002 Posts: 34
|
Posted: Fri Mar 21, 2003 5:41 pm Post subject: |
|
|
Not ony VDS but any application that use standard created controls ( not owner drawn) cant change the text attributes of individual items/words in these controls, for this you need to use a RichEdit control that is contained in the dll mentioned (VDSOBJ.dll) from PGWARE, in VDS5 you will be able to use RichEdit controls (if they are not yet added to the VDS language) via LoadLib functions, but these will be more difficult as you have to create it, mantain it and message it and so with a lot of API calls.
So its better, easy and cheap to buy VDSOBJ
Lioric |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Mar 21, 2003 8:35 pm Post subject: |
|
|
| DW wrote: | | If I buy VDS4 do I have to buy VDSOBJ or does it come with it? |
Before you buy VDS 4 you should probably wait for the VDS 5 release.
Just an opinion, because then you won't have to pay for both VDS 5 and
VDS 4. VDS 5 should be coming out in the near future.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Robert Switz Newbie
Joined: 07 Dec 2002 Posts: 6
|
Posted: Fri Mar 21, 2003 9:46 pm Post subject: |
|
|
| I down loaded the VDS 4.5 as a trial and it allows the use of styles at least for the combo list, I was able to change the color of the text to red. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Mar 22, 2003 10:19 am Post subject: |
|
|
Robert, what you say is true, but every word must have a different color...
| DW wrote: | "This is a test line of text, it is cool. "
I would like say the string "line" to be say blue and the string "cool" to be something like red, can this be done??? |
|
|
| Back to top |
|
 |
|