SetTextAreaFont FileEdit, RequestFont()
This doesn't work. Not matter which font I select, it always comes out as the standard Arial font or whatever it is. A bug in Blitz+?
SetTextAreaFont FileEdit, RequestFont()
win=CreateWindow("Text Area - Font",50,150,407,184,Desktop(),1) textarea = CreateTextArea(18,20,361,96,win,1) bt_changefont=CreateButton("Change Font",120,128,124,20,win) AddTextAreaText textarea,"Font test ABC123 !£$%^&*()" Repeat ev=WaitEvent() Select ev Case $401 ; gadget If EventSource()=bt_changefont SetTextAreaFont textarea,RequestFont() EndIf Case $803,$103 ; close window / keystoke Exit End Select Forever End
fnt=RequestFont() SetTextAreaFont textarea,fnt??
SetTextAreaColor textarea, 255, 255, 255 SetTextAreaColor textarea, 0, 0, 0, True