How to set IStatic control transparent? | developer.brewmp.com How to set IStatic control transparent? | developer.brewmp.com

Developer

How to set IStatic control transparent?

Forums:

So I can see the picture under the IStatic control.

It is not possible with IStatic control, use Customized control for the same.

It is not possible with IStatic control, use Customized control for the same.

Hi Sparkler,
Could you elaborate a bit about the customized technique?
I tried this ICONTROL per API doc but it did not work. The static text is still drawn non-trasparently, over the image. IDF_TEXT_TRANSPARENT is used only in IDISPLAY_DrawText() but we don't use IDISPLAY_DrawText(). Similarly, we use IMENUCTL_xxx() to draw menu item. So, a little tweak as followed:
dwProps = ICONTROL_GetProperties((IControl *) mypIStatic)
ICONTROL_SetProperties((Icontrol *) mypIStatic,(dwProps | IDF_TEXT_TRANSPARENT));
ISTATIC_SetTextEx(mypIStatic, buf, NULL, append)
ISTATIC_Redraw(mypIStatic);
Your pointer is greatly appreciated.

Hi Sparkler,
Could you elaborate a bit about the customized technique?
I tried this ICONTROL per API doc but it did not work. The static text is still drawn non-trasparently, over the image. IDF_TEXT_TRANSPARENT is used only in IDISPLAY_DrawText() but we don't use IDISPLAY_DrawText(). Similarly, we use IMENUCTL_xxx() to draw menu item. So, a little tweak as followed:
dwProps = ICONTROL_GetProperties((IControl *) mypIStatic)
ICONTROL_SetProperties((Icontrol *) mypIStatic,(dwProps | IDF_TEXT_TRANSPARENT));
ISTATIC_SetTextEx(mypIStatic, buf, NULL, append)
ISTATIC_Redraw(mypIStatic);
Your pointer is greatly appreciated.

now,can you see the picture under the text now?
can you give me some pointer?
thanks.... :)

now,can you see the picture under the text now?
can you give me some pointer?
thanks.... :)