1. drawText() in color?

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 it doesn't work: please, try add these two lines to the
'drawtext.exw'

Antonio

new topic     » topic index » view message » categorize

2. drawText() in color?

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 message » categorize

3. drawText() in color?

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 keystrokes, may be DEL, which send this
page without press [Send Now]

new topic     » goto parent     » topic index » view message » categorize

4. drawText() in color?

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu