Change Text Colour of a Text Field?

BlitzMax Forums/BlitzMax Beginners Area/Change Text Colour of a Text Field?

SebHoll(Posted 2006) [#1]
Hi,

Quick question: is it possible to change the text colour of a Text Field (not Text Area)? I would use a text area it's just I don't want the users to be able to have multiple lines in the text box.

Thanks

Seb


Triforce Guardian(Posted 2006) [#2]
i will help soon. Im still reading begginners guide to blitz max


Triforce Guardian(Posted 2006) [#3]
here this should work
Rem
Here ya go!
End Rem
Graphics 640,480,0

While Not KeyHit( KEY_ESCAPE )

Local X:Float=0
Local Y:Float=0

	Cls
	

	SetColor 0,0,100 'Backround Color
	DrawRect X,Y,20,20
	SetColor 105,50,100 'Text Color
	DrawText "Hi",X,Y
	
	Flip

Wend
	



tonyg(Posted 2006) [#4]
Triforce Guardian, I think this relates to MaxGUI.
Seb, I had a quick look and couldn't find a way to do it
with textfield. Might be a workaround but I didn't check that close.


Triforce Guardian(Posted 2006) [#5]
oo muh bad. im still learning thank you for correcting me without flamming me


SebHoll(Posted 2006) [#6]
OK thanks. If anyone finds a way, please could you post it here?

Seb


Gavin Beard(Posted 2006) [#7]
i presumed setgadgettextcolor would have worked but....nope


Perturbatio(Posted 2006) [#8]
There isn't an option for it in the code as far as I can see, but it looks like it might be possible to add (certainly for win32) with WM_CTLCOLOREDIT