I'm either not understanding something, or not getting the results according to what I'm reading with the command GRAPHIC COLOR. I read:
What am I not seeing / doing?
GRAPHIC COLOR statement
So I set up my graphic control:Purpose
Set the foreground color and optionally the background color for various statements.
RemarksThe graphic target must first be selected with GRAPHIC ATTACH. If either parameter is -1, the default foreground/background color is used. If the background parameter is -2, the background is not painted, allowing the content behind to become visible. Otherwise, the specified RGB color is used.
CONTROL ADD GRAPHIC, CB.HNDL, idGraphic + 1000, "", 10, 10, 80, 60, _
%WS_CHILD OR %WS_VISIBLE OR %SS_NOTIFY
Attach it:%WS_CHILD OR %WS_VISIBLE OR %SS_NOTIFY
GRAPHIC ATTACH CB.HNDL, idGraphic + 1000
Then apply the following attempts:GRAPHIC COLOR %RED, -2
GRAPHIC ELLIPSE (5,5)-(75,55)
GRAPHIC COLOR %RED, RGB(Colors(95).rgbRed, Colors(95).rgbGreen, Colors(95).rgbBlue)
GRAPHIC ELLIPSE (5,5)-(75,55)
(Colors is an internal RGB array.) But in either case, the background is default dialog gray. With a red Ellipse drawn on it.GRAPHIC ELLIPSE (5,5)-(75,55)
GRAPHIC COLOR %RED, RGB(Colors(95).rgbRed, Colors(95).rgbGreen, Colors(95).rgbBlue)
GRAPHIC ELLIPSE (5,5)-(75,55)
What am I not seeing / doing?
Comment