I'm unable to set background colors for SAY, RADIO and BITMAP controls.
I just tested it with latest xHarbour + latest FWH in Windows XP and Vista
Please try folowing sample:
- Code: Select all Expand view
#include "FiveWin.ch"
#define CLR_WHITE 16777215
Function wfMain()
LOCAL oDlg, oRadio, lRadio:=.F., oBitmap
DEFINE DIALOG oDlg NAME "TEST_DIALOG"
REDEFINE SAY ID 101 OF oDlg COLOR 0, CLR_WHITE
REDEFINE RADIO oRadio VAR lRadio ID 102 OF oDlg COLOR 0, CLR_WHITE
REDEFINE BITMAP oBitmap NAME "TERUG" ID 104 OF oDlg
oBitmap:SetColor(0, CLR_WHITE)
ACTIVATE DIALOG oDlg CENTERED
RETURN NIL
This is the RC:
- Code: Select all Expand view
TEST_DIALOG DIALOG 21, 51, 271, 121
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Test Dialog"
FONT 8, "MS Sans Serif"
{
LTEXT "Label on Dialog", 101, 12, 14, 78, 8
CONTROL "", 104, "TBitmap", 0 | WS_CHILD | WS_VISIBLE | WS_BORDER, 16, 66, 48, 48
CONTROL "Radio", 102, "BUTTON", BS_AUTORADIOBUTTON, 12, 35, 73, 12
}
TERUG BITMAP TERUG.BMP
I have Zipped test.prg, Test.RC and Terug.BMP in Test-Background.zip which you can download here:
http://www.WinFakt.be/Downloads/Test-Background.zip
Thank you.
Patrick Mast
http://www.WinFakt.be