I'm hoping to draw a rectangle into a GRAPHIC control with a transparent background so that it appears to frame the text contents of the control beneath it. Both the GRAPHIC and the LABEL beneath it are siblings and the parent dialog is of the same dimensions as the two controls The resulting GRAPHIC doesn't seem to be transparent:
Any ideas?
Code:
CASE %WM_EXITSIZEMOVE DIALOG GET SIZE CBHNDL TO W, H DIALOG GET LOC CBHNDL TO X, Y CONTROL SET SIZE CBHNDL, %IDC_LABEL, w, h CONTROL KILL CBHNDL, %IDC_GRAPHIC' in case dialog was resized CONTROL ADD GRAPHIC, CBHNDL, %IDC_GRAPHIC, "", 0, 0, W, H GRAPHIC ATTACH CBHNDL, %IDC_GRAPHIC GRAPHIC COLOR %RED, -2 GRAPHIC BOX (5,5) - (W-5, H-5),0,%RED,-2
Comment