
-----------------------------------
Bob565656
Mon May 24, 2004 3:45 pm

checkbox help
-----------------------------------
sups, i want 2 make a checkbox on a black background, but the prob is that the chekbox boarder is black, and so it blends in with the b/g and u cant see it.  is there sonething i can do 2 avoid this problem, thx

-----------------------------------
Paul
Mon May 24, 2004 3:48 pm


-----------------------------------
Change the color of the checkbox  :lol:

-----------------------------------
Bob565656
Mon May 24, 2004 3:50 pm

re:
-----------------------------------
how :O

-----------------------------------
Paul
Mon May 24, 2004 3:59 pm


-----------------------------------
post ur code.

-----------------------------------
Bob565656
Mon May 24, 2004 4:17 pm

code:
-----------------------------------
var cb1 := int

proc cb_proc1

end cb_proc1

GUI.SetBackgroundColor (black)
cb1 := GUI.CreateCheckBox (48, 338, "One", cb_proc1)

-----------------------------------
guruguru
Mon May 24, 2004 4:37 pm


-----------------------------------
You cannot change the color of a check box in Turing at the moment. You'll just have to change the background color. Or you can use


colorback(black)
cls

instead of...

GUI.SetBackgroundColor (black) 


This will give you a white box. (Mine crashed when I included the GUI.ProcessEvent!?!?!?! Ideas?!?!)

-----------------------------------
Bob565656
Mon May 24, 2004 4:59 pm


-----------------------------------
im not getting you.  if u cls, it clears the whole screen.  I have a whole display active that I dont want cls'ed.  I just wanna be able to create a visible chekbox on a black background.

-----------------------------------
Cervantes
Mon May 24, 2004 5:15 pm


-----------------------------------
thing is, you can't have a visable checkbox on a black background, if what guruguru says is true.  unless of course you use some crazy whatdotcolouring to search for a black pixel before you initialize the background colour, and when it finds a black pixel it changes it to brightgreen or whatever.  but that's besides the point.  
regarding cls, you do the 
colourback (#) 
cls

before you draw any of those pictures that you say you want to keep on the screen, so it draws the pictures above the background.

-----------------------------------
Bob565656
Mon May 24, 2004 5:43 pm


-----------------------------------
is that wat he meant? lol, that was kinda obvious.  is there no other way i can have any selection clicking thing on a black b/g?

-----------------------------------
guruguru
Mon May 24, 2004 6:24 pm


-----------------------------------
Nope.

Well, I guess you can have a selection thingy on a black bg. Use buttons  :P . You can change the color of those  8) 
