Skip to main content
klaszlo2004
Participant
September 17, 2015
Answered

In the EmptyPanel plug-in the static text has a gray background in illustrator. How can i change to be transparent ?

  • September 17, 2015
  • 1 reply
  • 528 views

Hi everybody.

I'm new in the Illustrator SDK, and I don't know how can I change the background of STATIC control in the EmptyPanel plug-in to be transparent.

If I make a Check box or a Radio box, the text background is transparent but not for the Static control.

Neither if I put the TRANSPARENT flag.

Thanks for your help.

This topic has been closed for replies.
Correct answer LeoTaro

This is a Win32 api issue rather than anything to do with the Illustrator SDK, see for example:

http://stackoverflow.com/questions/13748831/is-it-possible-to-make-a-static-control-transparent

1 reply

LeoTaroCorrect answer
Inspiring
September 17, 2015

This is a Win32 api issue rather than anything to do with the Illustrator SDK, see for example:

http://stackoverflow.com/questions/13748831/is-it-possible-to-make-a-static-control-transparent

klaszlo2004
Participant
September 18, 2015

Thank you for your Reply and for your help, there was the answer.

CreateWindowEx(

  WS_EX_TRANSPARENT, L"STATIC",

  L"TEXT ",

  WS_VISIBLE | WS_CHILD | SS_SIMPLE,

  10,    

  60,    

  98,    

  13,      

  hDlg,  

  NULL,

  (HINSTANCE)GetWindowLongPtr(hDlg, GWLP_HINSTANCE),

  NULL);

case WM_CTLCOLORSTATIC:

  {

  SetBkMode((HDC)wParam, TRANSPARENT);

  return (LRESULT)GetStockObject(HOLLOW_BRUSH);

  }