Posted by: Jeff Luther
This should do it. Text app saved in v4. The 'secret' is to first:
Set bStaticsAsWindows = TRUE ! TD sys. var.
!get a handle to any text
Set hWndBkText = SalGetFirstChild( hWndForm, TYPE_BkgdText )
! then to change background color...
Call SalColorSet( hWndBkText, COLOR_IndexWindow, COLOR_Red )
I added a little code to show how to find which bk. text handle you have, in
case there's > 1 on your form. In that case, you'd need to loop through the
form's text children using SalGetNextChild( hWndBkText, TYPE_BkgdText )
until you found the one you wanted to change.
Jeff Luther/PC Design