Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / text getting darker on screen

Author
Message
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Feb 2005 03:55
Hi All

Have a prog going that has to up date the printed data on the screen, each time you choses a new item on the list.

using the text command and a for next loop, it prints the first line on the screen, as a dark grey, then when its adds the next item to the list like so:

Item 1

updated

[b]item 1
item 2

hope that works for looks first one should now be darker that the second, this is what I get on my screen, trying to get all printed text the same look.

will give a screen shot if some can tell me how to do it, picture are worth a 1000 words.

if the code will help, will post on here if need.

In Space No One can Hear You Scream! (When your comm Line is cut?)
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 13th Feb 2005 05:15
You need to show your code, as it seems to be a coding error.


HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Feb 2005 05:34
Here the code, see if you can spot what I've wrong.

you will have to make a small text file saved as item.txt

Item 1
item 2
item 3
*

can be anything text wise in the list

eg
bolts
nuts
screws

In Space No One can Hear You Scream! (When your comm Line is cut?)
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 13th Feb 2005 05:39
opps line 33 should read like this


load array "C:\Program Files\Dark Basic Software\Dark Basic Professional\Projects\item.txt",item$() ` -this loads all the data in the array


items.txt instead of list.txt

In Space No One can Hear You Scream! (When your comm Line is cut?)

Login to post a reply

Server time is: 2024-11-27 22:35:04
Your offset time is: 2024-11-27 22:35:04