drawText() in color?

new topic     » goto parent     » topic index » view thread      » older message » newer message

posted by: a.admin at myway.it

  Previous Message All Messages Next Message   
 
Don't know. It works just fine for me. As a test, and this ...

setTextColor(theWin, Red)

to the demo program 'drawtext.exw', just prior to the drawText() call.


-- 
Derek 

------------------------

To me also text color doesn't work, using EditText and setText. Please, try add
these two lines to the 'drawtext.exw':

constant 
    theWin = create( Window, "Resizable Text Window", 0, 0, 0, 400, 400, 0 ),
fTextArea =
    createEx(EditText,"",theWin,35,25,300,130,{WS_CHILD,WS_VISIBLE,WS_VSCROLL,ES_MULTILINE},3
    ),
    SB     = create( StatusBar, "", theWin, 0, 0, 0, 0, 0)
	setTextColor(fTextArea, Yellow)
	setText(fTextArea, "THIS TEXT SHOULD BE YELLOW. WHY NOT?")

Do you see yellow colored text?

(I have tried sendMessage too, but nothing changes;)

Antonio

P. S. - I meet problems with certain keystrokles

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu