Hi all. I'm having a bit of a problem with my code. It does NOT need tested by any of you except me, because I'm the only one with beta test access to the X Plugin. If you would like more information on the X Plugin, be sure to visit
http://axiaentertainment.com/ for more details.
Now the thing is, I would like my program to generate a "splash.xt" file.
and read from splash.xt the colors of each part of the window.
here's the code:
if file exist("splash.xt")
delete file "splash.xt"
endif
if file exist("splash.xt")=0
splash=find free file()
open to write splash, "splash.xt"
write string splash, "0xFFFF0000"
write string splash, "0xFF00FF00"
tl1$="0xFF000000"
tr1$="0xFF0000FF"
bl1$="0xFF333333"
br1$="0xFF0000BB"
bstring1$=tl1$+tr1$+bl1$+br1$
write string splash, bstring1$
tl4$="rgb(255,0,0)"
tr4$="rgb(0,255,0)"
bl4$="rgb(0,0,255)"
br4$="rgb(255,0,255)"
bstring4$=tl4$+tr4$+bl4$+br4$
write string splash, bstring4$
write string splash, "0xFFFFFFFF"
tl$="0xFFFF0000"
tr$="0xFF00FF00"
bl$="0xFF0000FF"
br$="0xFFFF00FF"
bstring$=tl$+tr$+bl$+br$
write string splash, bstring$
tl2$="rgb(255,0,0)"
tr2$="rgb(0,255,0)"
bl2$="rgb(0,0,255)"
br2$="rgb(255,0,255)"
bstring2$=$tl2$+tr2$+bl2$+br2$
write string splash,bstring2$
close file splash
open to read splash, "splash.xt"
read string spash, str$(closebutton)
read string splash, str$(minimizebutton)
read string splash, str$(maximizebutton)
read string splash, str$(captiontextcolor)
X Set Close Button Color closebutton
X Set Minimize Button Color minimizebutton
X Set Maximize Button Color maximizebutton
X Set Caption Color tl$,tr$,bl$,br$
X Set Caption Color tl2$,tr2$,bl2$,br2$
X Set Caption Text Color captiontextcolor
tl3$ = "0xFFFFFFFF"
tr3$ = "0xFFBBBBBB"
bl3$ = "0xFFFFFFFF"
br3$ = "0xFF00BBBB"
X Set Background Color tl3$,tr3$,bl3$,br3$
close file splash
endif
The functions are:
X Set Close Button Color color
X Set Minimize Button Color color
X Set Maximize Button Color color
X Set Caption Color topleft,topright,bottomleft,bottomright
X Set Caption Color topleft,topright,bottomleft,bottomright
X Set Caption Text Color color
X Set Background Color topleft,topright,bottomleft,bottomright
basically, i need it to read and write all the colors from splash.xt, line by line.
if 1 line has 4 seperate colors for topleft,topright,bottomleft, and bottomright, i need it to reach each color on that line 1 at a time.
Thanks!
P.S. The colors can be either rgb or hex
CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD AT Amazon.com!